# 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的更多相关文章

  1. 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 ...

  2. EntityFramework Core 1.1 Add、Attach、Update、Remove方法如何高效使用详解

    前言 我比较喜欢安静,大概和我喜欢研究和琢磨技术原因相关吧,刚好到了元旦节,这几天可以好好学习下EF Core,同时在项目当中用到EF Core,借此机会给予比较深入的理解,这里我们只讲解和EF 6. ...

  3. [LeetCode] Remove K Digits 去掉K位数字

    Given a non-negative integer num represented as a string, remove k digits from the number so that th ...

  4. [LeetCode] Remove Duplicate Letters 移除重复字母

    Given a string which contains only lowercase letters, remove duplicate letters so that every letter ...

  5. [LeetCode] Remove Invalid Parentheses 移除非法括号

    Remove the minimum number of invalid parentheses in order to make the input string valid. Return all ...

  6. [LeetCode] Remove Linked List Elements 移除链表元素

    Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 -- ...

  7. [LeetCode] Remove Duplicates from Sorted List 移除有序链表中的重复项

    Given a sorted linked list, delete all duplicates such that each element appear only once. For examp ...

  8. [LeetCode] Remove Duplicates from Sorted List II 移除有序链表中的重复项之二

    Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numb ...

  9. [LeetCode] Remove Duplicates from Sorted Array II 有序数组中去除重复项之二

    Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? For exampl ...

随机推荐

  1. 112. Path Sum

    Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all ...

  2. Android加载网络图片的工具类

    ImageView加载网络的图片 HttpUtil.java package com.eiice.httpuimagetils; import java.io.ByteArrayOutputStrea ...

  3. 顺序表及其多种实现方式 --- C/C++

    所谓顺序表,即线性表的顺序存储结构.下面给出的是数据结构---线性表的定义. ADT List{ 数据对象: 线性表的数据对象的集合为{a1,a2,a3,...,an},每个元素的类型为ElemTyp ...

  4. 解决Ubuntu下vbox的(rc=-1908)

    在Ubuntu下用虚拟机VBOX的时候总是遇到 Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (v ...

  5. (转)一文学会用 Tensorflow 搭建神经网络

    一文学会用 Tensorflow 搭建神经网络 本文转自:http://www.jianshu.com/p/e112012a4b2d 字数2259 阅读3168 评论8 喜欢11 cs224d-Day ...

  6. SqlServer中quotename用法与实例

    语法 QUOTENAME ( 'character_string' [ , 'quote_character' ] ) 参数 'character_string' Unicode 字符数据构成的字符串 ...

  7. 配置 Hdp 4 Window 中的一些问题

    1,E0508: User [?] not authorized for WF job [-- jobid] 很明显验证问题, 修改 oozie-site.xml中节点为 <property&g ...

  8. bash feature

    bash调用-启动文件-交互式shell-条件表达式-shell算术-别名-数组-目录栈-提示符控制-受限shell-posix模式 受限shell bash --restricted 它用来建立一个 ...

  9. unity, monodevelop 不安全的代码只会在使用/unsafe编译的情况下出现

    http://blog.sina.com.cn/s/blog_6b3661a90102wx2g.html

  10. mov视频转gif

    在mac上用quicktime录屏,得到一个mov视频,想转成gif,试了几个工具,感觉下面这个最好用: http://ezgif.com/video-to-gif 支持重新指定尺寸和帧率,转完gif ...