# ocfs2_hb_ctl -I -d /dev/mapper/backup2-backup2
508C2154503344E78ACD6CD6B000000: 2 refs
#The previous step will list the amount of refs (references to heartbeat)
# ocfs2_hb_ctl -K -d /dev/mapper/backup2-backup2 UUID ( repeat until refs = 0)
# lvdisplay /dev/backup2/backup2
--- Logical volume ---
LV Name /dev/backup2/backup2
VG Name backup2
LV UUID vvv1e5-W2Is-FyAT-MCTk-KcFv-mn2X-000000
LV Write Access read/write
LV Status available
# open 1
LV Size 2.93 TB
Current LE 768000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:23
# vgdisplay backup2
--- Volume group ---
VG Name backup2
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 3.00 TB
PE Size 4.00 MB
Total PE 786431
Alloc PE / Size 768000 / 2.93 TB
Free PE / Size 18431 / 72.00 GB
VG UUID wRIeok-ZcMP-qJDV-0Qmz-KoDE-X8bv-000000
# vgchange -an backup2 (make sure that backup2 is listed as being deactivated)
# vgexport backup2 (make volume groups unknown to the system)
# vgdisplay backup2
# multipath -ll >/tmp/multipath.txt (check multipath disk status)
# more /tmp/multipath.txt
backup2 (360060e80104b493004f3239b00000000) dm-42 HITACHI,DF600F
[size=3.0T][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 4:0:0:23 sday 67:32 [active][ready]
\_ round-robin 0 [prio=0][enabled]
\_ 3:0:0:23 sdw 65:96 [active][ready]
# multipath -f backup2 (flush a multipath device map specified as parameter, if unused)
# vim /etc/multipath.conf (comment out and remove the WWID and alias for backup2)
multipath {
wwid 360060e80104b493004f3239b00000000
alias backup2
}
# echo 1 > /sys/class/scsi_disk/4:0:0:23/device/delete (remove scsi_disks)
# echo 1 > /sys/class/scsi_disk/3:0:0:23/device/delete (remove scsi_disks)
# dmesg |grep error
device-mapper: table: 253:15: multipath: error getting device
device-mapper: ioctl: error adding target to table
device-mapper: table: 253:15: multipath: error getting device
device-mapper: ioctl: error adding target to table
# multipath -ll |grep fail (remove one path from AMS one time, and check the all multipath device stats if active)
Remove LUN from OCFS2的更多相关文章
-
Linux: How to delete a disk or LUN reference from /dev
In AIX, there is rmdev command to remove a disk/LUN from /dev directory i.e to make the disk/LUN una ...
-
EntityFramework Core 1.1 Add、Attach、Update、Remove方法如何高效使用详解
前言 我比较喜欢安静,大概和我喜欢研究和琢磨技术原因相关吧,刚好到了元旦节,这几天可以好好学习下EF Core,同时在项目当中用到EF Core,借此机会给予比较深入的理解,这里我们只讲解和EF 6. ...
-
[LeetCode] Remove K Digits 去掉K位数字
Given a non-negative integer num represented as a string, remove k digits from the number so that th ...
-
[LeetCode] Remove Duplicate Letters 移除重复字母
Given a string which contains only lowercase letters, remove duplicate letters so that every letter ...
-
[LeetCode] Remove Invalid Parentheses 移除非法括号
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all ...
-
[LeetCode] Remove Linked List Elements 移除链表元素
Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 -- ...
-
[LeetCode] Remove Duplicates from Sorted List 移除有序链表中的重复项
Given a sorted linked list, delete all duplicates such that each element appear only once. For examp ...
-
[LeetCode] Remove Duplicates from Sorted List II 移除有序链表中的重复项之二
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numb ...
-
[LeetCode] Remove Duplicates from Sorted Array II 有序数组中去除重复项之二
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? For exampl ...
随机推荐
-
JavaMail发送邮件
发送邮件包含的内容有: from字段 --用于指明发件人 to字段 --用于指明收件人 subject字段 --用于说明邮件主题 cc字段 -- 抄送,将邮件发送给收件人的同时抄 ...
-
left join 多个表关联时,将表值置换
/****** Script for SelectTopNRows command from SSMS ******/ SELECT B.[GOODSID] ,A.INDUSTRY_CNAME ,C. ...
-
备忘录:hadoop技术一点积累
1.hbase的rowkey是按字典排序的,我看有的资料建议rowkey设计不应该是自增的,应该和这个字典排序相关吧 2.hbase的数据存储是按照region来的,region的设计前段时间在坐飞机 ...
-
Java_GC详解
Java -- GC 标签(空格分隔): Java 要想深入了解Java的GC(Garbage Collection),我们应该先探寻如下三个问题: What? -- 哪些内存需要回收? When? ...
-
.net利用本地播放器播放视频文件代码
前台点击按钮,执行js事件,跳转到后台代码: function funShowVideo(index) { var iTop = (window.screen.availHeig ...
-
pg_config executable not found
Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or ...
-
Elasticsearch文档查询
简单数据集 到目前为止,已经了解了基本知识,现在我们尝试用更逼真的数据集,这儿已经准备好了一份虚构的JSON,关于客户银行账户信息的.每个文档的结构如下: { , , "firstname& ...
-
记PHP面向对象编程
访问控制 public(公开的):可以在类中.子类中.类外访问. protected(受保护的):只能在类本身及子类中访问. private(私有的):只能在声明他们的类中进行访问,私有的类成员不能被 ...
-
CUDA学习,第一个kernel函数及代码讲解
前一篇CUDA学习,我们已经完成了编程环境的配置,现在我们继续深入去了解CUDA编程.本博文分为三个部分,第一部分给出一个代码示例,第二部分对代码进行讲解,第三部分根据这个例子介绍如何部署和发起一个k ...
-
java 中二维数组的定义和遍历
定义格式 * a 第一种定义格式: * int[][] arr = new int[3][4];// arr里面包含3个数组 每个数组里面有四个元素 * 上面的代码相当于定义了一个3*4的二维数组,即 ...