Remove LUN from OCFS2
# 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 ...
随机推荐
- hdu 5093 Battle ships
二分图匹配 #include<cstdio> #include<cstring> #include<iostream> #include<cmath> ...
- SQLITE SUBSTR
insert into t_user values(4,'u1234567890'); sqlite> select substr(username,1,1) from t_user where ...
- 在VS2010下配置OpenCV 2.3
一.下载OpenCV 2.3: http://www.opencv.org.cn/download/OpenCV-2.3.0-win-superpack.exe 二.解压 将下载的Op ...
- javascript判断浏览器的版本
在javascript中直接的使用navigator.userAgent就可以获取当前浏览器的版本等信息,以下是列出来的关于不同浏览器显示的值(Windows.Android.iPhone): IE6 ...
- CSS基础知识点(二)——居中
水平居中 (1) 对于块级元素,最常用的自适应水平居中为:margin:0px auto; (与 margin:auto; 效果相同) (2) 对于行内元素(a, img, input等),最常用的水 ...
- android 升级APK
Intent intent = new Intent(); //执行动作 intent.setAction(Intent.ACTION_VIEW); //执行完打开应用 intent.setFlags ...
- 关于xmlhttprequest的readystate属性的五个状态
http://www.cnblogs.com/jerry01/archive/2009/09/03/1559624.html 昨天做了一个利用 ajax实现页面无刷新的从服务器端获得时间的例子,当时对 ...
- JavaWeb学习记录(二十五)——权限管理总结
一.面向对象思想简化数据库操作 public List<Role> getObjectsByIds(List<AdminRole> adminRoles) { L ...
- hive权限管理之实践
一.实践心得 主要参考这个连接,里面说得也挺详细的.http://www.aboutyun.com/thread-12549-1-1.html 总结如下: 1.若赋予用户某个表的权限,查用户在该表所属 ...
- python 核心编程第5章(习题)
1.标准类型运算符. 写一段脚本,输入一个测验成绩,根据下面的标准,输出他的评分成绩(A-F). #coding:utf8 a = raw_input() a = int(a) if (a > ...