... | @@ -654,13 +654,13 @@ First, we'll need to gather a some information about the disk to remove. |
... | @@ -654,13 +654,13 @@ First, we'll need to gather a some information about the disk to remove. |
|
* The WWID of both the SAN and the virtual disk
|
|
* The WWID of both the SAN and the virtual disk
|
|
|
|
|
|
/usr/local/sbin/tpo-show-san-disks
|
|
/usr/local/sbin/tpo-show-san-disks
|
|
SMcli -n <san> -S -quick -c "show storageArray summary;" | grep "Storage array world-wide identifier"
|
|
SMcli -n chi-san-03 -S -quick -c "show storageArray summary;" | grep "Storage array world-wide identifier"
|
|
cat /etc/multipath/conf.d/<name>.conf
|
|
cat /etc/multipath/conf.d/test-01.conf
|
|
|
|
|
|
Second, remove the multipath config and reload:
|
|
Second, remove the multipath config and reload:
|
|
|
|
|
|
gnt-cluster command rm /etc/multipath/conf.d/test-01.conf
|
|
gnt-cluster command rm /etc/multipath/conf.d/test-01.conf
|
|
gnt-cluster command "multipath -r ; multipath -w <disk-wwid> ; multipath -r"
|
|
gnt-cluster command "multipath -r ; multipath -w {disk-wwid} ; multipath -r"
|
|
|
|
|
|
Then, remove the iSCSI device nodes. Running `iscsiadm --rescan` does not remove
|
|
Then, remove the iSCSI device nodes. Running `iscsiadm --rescan` does not remove
|
|
LUNs which have been deleted from the SAN.
|
|
LUNs which have been deleted from the SAN.
|
... | @@ -668,7 +668,7 @@ LUNs which have been deleted from the SAN. |
... | @@ -668,7 +668,7 @@ LUNs which have been deleted from the SAN. |
|
Be very careful with this command, it will delete device nodes without prejudice
|
|
Be very careful with this command, it will delete device nodes without prejudice
|
|
and cause data corruption if they are still in use!
|
|
and cause data corruption if they are still in use!
|
|
|
|
|
|
gnt-cluster command "find /dev/disk/by-path/ -name \*<san-wwid>-lun-<lun> -exec readlink {} \; | cut -d/ -f3 | while read -d $'\n' n; do echo 1 > /sys/block/\$n/device/delete; done"
|
|
gnt-cluster command "find /dev/disk/by-path/ -name \*{san-wwid}-lun-{lun} -exec readlink {} \; | cut -d/ -f3 | while read -d $'\n' n; do echo 1 > /sys/block/\$n/device/delete; done"
|
|
|
|
|
|
Finally, the disk group can be deleted from the SAN (all the virtual disks it
|
|
Finally, the disk group can be deleted from the SAN (all the virtual disks it
|
|
contains will be deleted):
|
|
contains will be deleted):
|
... | | ... | |