Contents
How do I remove a LUN?
Steps
- Ensure that the application or host is not using the LUN.
- Use the lun unmap to unmap the LUN from the igroup. Example. …
- Use the lun modify command to take the LUN offline. …
- Use the lun delete command to delete the LUN. …
- Use the lun show command to verify that you deleted the LUN.
How do I reclaim LUN in Linux?
Check in the output of `multipath -ll` for the WWID of the LUN to be deleted. Remove the WWID using `multipath -f <WWID>`. Remove the multipath device from ALL paths to the LUN, run `echo 1 > /sys/bus/scsi/devices/${H:B:T:L}/delete` (Where H = host:B = bus:T = target:L = lun) For example, 4:0:0:1.