# 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. FHS目录配置下,常见的几个问题及解答

    请说明/bin与/usr/bin目录所放置的执行文件有何不同之处? /bin主要放置在开机时,以及进入单人维护模式后还能够被使用的指令,至于/usr/bin则是大部分软件提供的指令放置处. 请说明/b ...

  2. 选数 2002年NOIP全国联赛普及组

    题目描述 Description 已知 n 个整数 x1,x2,-,xn,以及一个整数 k(k<n).从 n 个整数中任选 k 个整数相加,可分别得到一系列的和.例如当 n=4,k=3,4 个整 ...

  3. scala言语基础学习七

    一.将函数赋值给变量 二.匿名函数 三.高阶函数 高阶函数好像调用不打印是看不到赋值 和普通函数区别 高阶函数的类型推断 reduce操作 相当于1*2*3*4*5*6*7*8*9 def getNa ...

  4. android中的Handler

    android的Handler   前言 学习android一段时间了,为了进一步了解android的应用是如何设计开发的,决定详细研究几个开源的android应用.从一些开源应用中吸收点东西,一边进 ...

  5. hihoCoder:#1079(线段树+离散化)

    题目大意:给n个区间,有的区间可能覆盖掉其他区间,问没有完全被其他区间覆盖的区间有几个?区间依次给出,如果有两个区间完全一样,则视为后面的覆盖前面的. 题目分析:区间可能很长,所以要将其离散化.但离散 ...

  6. ARM1138@库函数速查

    1. GPIO库函数 可实现的功能: 获得/设置指定管脚的方向(输入.输出)和模式(硬件控制) 获取/设置指定管脚的配置(驱动强度2/4/8/8_SCmA.管脚模式:推挽(弱上拉/弱下拉)/开漏(弱上 ...

  7. sellect、poll、epoll

    http://www.cnblogs.com/alex3714/p/4372426.html select select最早于1983年出现在4.2BSD中,它通过一个select()系统调用来监视多 ...

  8. Clr core

    http://hllvm.group.iteye.com/group/topic/43559

  9. ob_start()失效与phpunit的非正常结束

    在ob_clean();或ob_get_clean()之前有return或致命错误,从而结束了程序,会导致ob_start失效, 这和phpunit的非正常结束

  10. org.springframework.web.filter.CharacterEncodingFilter

    感谢:http://blog.csdn.net/heidan2006/article/details/3075730 很简单很实用的一个过滤器,当前台JSP页面和JAVA代码中使用了不同的字符集进行编 ...