Difference between revisions of "Multipath: remove multipath device unpresented to host"
Jump to navigation
Jump to search
(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | * Review disk status: <code>multipath -ll</code> | + | <code>[[multipath]]</code>: https://linux.die.net/man/8/multipath |
+ | |||
+ | |||
+ | * Review disk status: <code>[[multipath]] -ll</code> | ||
<pre> | <pre> | ||
mpath10 (350002ac01bde0e96) | mpath10 (350002ac01bde0e96) | ||
Line 9: | Line 12: | ||
\_ 1:0:2:2 sdx 65:112 [failed][faulty] | \_ 1:0:2:2 sdx 65:112 [failed][faulty] | ||
</pre> | </pre> | ||
− | |||
− | <code> | + | * <code>multipath -f mpath10</code> or <code>multipath -F</code> to flush all unused multipath device maps |
− | multipath - | ||
− | |||
− | </code> | ||
+ | <pre> | ||
+ | multipath -f 3600a09803831416c592b4f566453774e | ||
+ | Jan 16 08:59:52 | 3600a09803831416c592b4f566453774e: map in use | ||
+ | </pre> | ||
+ | Try to remove PV: [[pvremove]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <pre> | ||
+ | multipath -w 3600a09803831417a5a244f5665797a48 | ||
+ | wwid '3600a09803831417a5a244f5665797a48' removed | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <code>multipath -W </code> | ||
+ | : -W Reset the WWIDs file to only include the current multipath devices. | ||
+ | |||
+ | |||
+ | echo .../... or <code>[[rescan-scsi-bus.sh|rescan-scsi-bus.sh --remove]]</code> | ||
* <code>echo 1 > /sys/block/sdf/device/delete</code> | * <code>echo 1 > /sys/block/sdf/device/delete</code> | ||
* <code>echo 1 > /sys/block/sdk/device/delete</code> | * <code>echo 1 > /sys/block/sdk/device/delete</code> | ||
Line 22: | Line 43: | ||
+ | Related commands: <code>[[rescan-scsi-bus.sh|rescan-scsi-bus.sh --remove]]</code> <code>[[vgremove]]</code> | ||
+ | |||
+ | == Related activities == | ||
+ | * [[Resize size of your LUN and check operating systems messages]] | ||
== See also == | == See also == | ||
− | * <code>[[pvcreate]]</code> | + | * <code>[[pvcreate]]</code> <code>[[LUN]]</code> |
+ | * {{multipath}} | ||
+ | * {{scsi}} | ||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 12:05, 17 December 2019
multipath
: https://linux.die.net/man/8/multipath
- Review disk status:
multipath -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]
multipath -f mpath10
ormultipath -F
to flush all unused multipath device maps
multipath -f 3600a09803831416c592b4f566453774e Jan 16 08:59:52 | 3600a09803831416c592b4f566453774e: map in use
Try to remove PV: pvremove
multipath -w 3600a09803831417a5a244f5665797a48 wwid '3600a09803831417a5a244f5665797a48' removed
multipath -W
- -W Reset the WWIDs file to only include the current multipath devices.
echo .../... or rescan-scsi-bus.sh --remove
echo 1 > /sys/block/sdf/device/delete
echo 1 > /sys/block/sdk/device/delete
echo 1 > /sys/block/sdp/device/delete
echo 1 > /sys/block/sdx/device/delete
Related commands: rescan-scsi-bus.sh --remove
vgremove
Related activities[edit]
See also[edit]
Advertising: