![多路径设备未呈现给主机。如何从 LVM 和系统中删除它?](https://linux22.com/image/616120/%E5%A4%9A%E8%B7%AF%E5%BE%84%E8%AE%BE%E5%A4%87%E6%9C%AA%E5%91%88%E7%8E%B0%E7%BB%99%E4%B8%BB%E6%9C%BA%E3%80%82%E5%A6%82%E4%BD%95%E4%BB%8E%20LVM%20%E5%92%8C%E7%B3%BB%E7%BB%9F%E4%B8%AD%E5%88%A0%E9%99%A4%E5%AE%83%EF%BC%9F.png)
操作系统:Red Hat Enterprise Linux AS 版本 4
存储人员取消了之前导出到系统的几个磁盘(有时会发生这种情况)。好吧,这没有问题,因为该磁盘是空的,数据已迁移到其他 PV。问题是设备被移除时没有在系统中执行先前的移除过程。
我如何从整个系统中删除丢失的磁盘?
多路径-ll:
mpath10 (350002ac01bde0e96)
[size=50 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [enabled]
\_ 0:0:1:2 sdf 8:80 [failed][faulty]
\_ 0:0:2:2 sdk 8:160 [failed][faulty]
\_ 1:0:0:2 sdp 8:240 [failed][faulty]
\_ 1:0:2:2 sdx 65:112 [failed][faulty]
pv显示:
/dev/dm-9: read failed after 0 of 4096 at 53687025664: Input/output error
/dev/dm-9: read failed after 0 of 4096 at 53687083008: Input/output error
/dev/dm-9: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-9: read failed after 0 of 4096 at 4096: Input/output error
/dev/dm-9: read failed after 0 of 4096 at 0: Input/output error
提前谢谢,请原谅我的英语
答案1
我不知道这是否适用于 RHEL4,因为我只在较新的操作系统上尝试过,但是
删除 mpath 设备;
multipath -f mpath10
要从 Linux 操作系统中删除块设备,请运行
echo 1 > /sys/block/sdf/device/delete
当 mpath 设备消失时,如果 pv 位于那里,则 pvdisplay 将不再抱怨。