欢迎 on
it
road
问题
如何在服务器取消映射 LUN 后,删除多路径设备?
例如,下面输出中的“mpath4”未使用,需要删除。
# multipath -ll sda: checker msg is "tur checker reports path is down" sdd: checker msg is "tur checker reports path is down" 1_oracle_index ( Unique WWID ) dm-10 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=0][active] _ 0:0:1:13 sdc 8:32 [active][ready] _ 1:0:1:13 sdf 8:80 [active][ready] 1_oracle_data ( Unique WWID ) dm-9 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=0][active] _ 0:0:1:12 sdb 8:16 [active][ready] _ 1:0:1:12 sde 8:64 [active][ready] mpath4 ( Unique WWID ) dm-8 HP,MSA2012fc 《 --------------- 未删除 [size=1.0G][features=0][hwhandler=0][rw] _ round-robin 0 [prio=0][enabled] _ 0:0:1:10 sda 8:0 [failed][faulty] _ 1:0:1:10 sdd 8:48 [failed][faulty]
按照下面概述的步骤从多路径中删除故障/故障设备。
- 如果与别名不同,则刷新多路径设备“mpath4”或者 wwid。
在这个例子中,别名是“mpath4”。
使用“-f”刷新多路径映射。
# multipath -f mpath4
- 再次运行 multipath 命令进行确认。
# multipath -ll sda: checker msg is "tur checker reports path is down" sdd: checker msg is "tur checker reports path is down" 1_oracle_index ( Unique WWID ) dm-10 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=0][active] _ 0:0:1:13 sdc 8:32 [active][ready] _ 1:0:1:13 sdf 8:80 [active][ready] 1_oracle_data ( Unique WWID ) dm-9 HP,MSA2012fc [size=1.4T][features=1 queue_if_no_path][hwhandler=0][rw] _ round-robin 0 [prio=0][active] _ 0:0:1:12 sdb 8:16 [active][ready] _ 1:0:1:12 sde 8:64 [active][ready]
从上面的输出可以看出,多路径设备 mpath4 现在已从服务器中删除。
日期:2020-09-17 00:13:47 来源:oir作者:oir