Delete unmapped multipath drive: couldn’t get target port group

When we go to delete a lun that is no longer mapped, we may get this error sdXX: couldn’t get asymmetric access state
After unmapping the LUN from the SAN storage we get the following output for multipath -ll command.

mpathbx (290d6cc7b8f2301f06c9ce900c9ca8898) dm-83 Nimble ,Server
size=500G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| - 0:0:0:66 sdu 65:64 active ready running -+- policy='service-time 0' prio=1 status=enabled
`- 1:0:0:66 sdcq 69:224 active ghost running
Jul 22 07:35:46 | sdaw: couldn't get asymmetric access state
Jul 22 07:35:46 | sdds: couldn't get asymmetric access state



In order to get rid of this drive, first, delete the multipath drive

[[email protected] ~]# multipath -f mpathbx

Then, delete the block device :

[[email protected] ~]# echo 1 > /sys/block/sdaw/device/delete
[[email protected] ~]# echo 1 > /sys/block/sdds/device/delete

Leave a Reply

Your email address will not be published. Required fields are marked *