Method used to safely delete a LUN mapping from an AIX application server

Perform the following operations to delete a LUN mapping from an AIX application server:
On the storage device side, delete the LUN mapping with the AIX application server.
On the AIX application server side, run rmdev -dl diskName to delete the virtual disk of the mapped LUN.
For example, you can run rmdev -dl disk3 to delete the virtual disk disk3.
Note:
If the virtual disk is not deleted and a new LUN is mapped to the AIX application server, a fault occurs, indicating that the virtual disk path is missing. Rectify the fault as follows:
Unmount the file systems of the original LUN and the newly mapped LUN.
Close the volume group of the newly mapped LUN.
Delete the virtual disks of the original LUN and the newly mapped LUN.
Run cfgmgr to re-scan for disks.

Scroll to top