Dynamic Multi-Pathing (DMP) provides a Dynamic Reconfiguration tool to simplify the removal of LUNs from an existing target ID. Each LUN is unmapped from the host. DMP issues an operating system device scan and cleans up the operating system device tree.
Warning: |
Do not run any device discovery operations outside of the Dynamic Reconfiguration tool until the device operation is completed. |
In a cluster, perform the steps on all nodes in the cluster.
To remove LUNs dynamically from an existing target ID
For LUNs using AIX LVM over DMP devices, remove the device from the LVM volume group.
# reducevg vgname pvname
# vxdiskadm
The following shows an example output:
Select disk devices to remove: [<pattern-list>,all,list]: list LUN(s) available for removal: eva4k6k0_0 eva4k6k0_1 eva4k6k0_2 eva4k6k0_3 eva4k6k0_4 emc0_02b8
For example, enter emc0_02b8.
Select disk devices to Remove: [<pattern-list>,all,list, file=<filename>,q] (default:list): emc0_02b8
DMP removes the LUN from VxVM usage.
Remove Luns Menu: VolumeManager/Disk/DynamicReconfigurationOperations/RemoveLuns INFO: Removing Lun [emc0_02b8] from VxVM INFO: LUN [emc0_02b8] removed successfully from VxVM. ----------------------------------------------------- Enclosure=emc0 AVID=02B8 Device=emc0_02b8 Serial=22002B8000 PATH=hdisk12 ctlr=fscsi0 port=16c-0 [-] PATH=hdisk14 ctlr=fscsi0 port=16c-1 [-] ----------------------------------------------------- Please remove LUNs with Above details from array and press 'y' to continue removal or 'q' to quit :
# symmask -sid 822 -wwn 10000000c989e032 -dir 16c -p 0 remove devs 02b8 # symmask -sid 822 -wwn 10000000c989e032 -dir 16c -p 1 remove devs 02b8 # symmask -sid 822 refresh -nopr Symmetrix FA/SE directors updated with contents of SymMask Database 000290300822 When complete, enter "y" to continue now the storage activity is complete Please remove LUNs with Above details from array and press 'y' to continue removal or 'q' to quit : y
Remove Luns Menu: VolumeManager/Disk/DynamicReconfigurationOperations/RemoveLuns INFO: [emc0_02b8] removed Successfully from OS device Tree. INFO: Refreshing OS device Tree INFO: Updating VxVM device tree --------------------------------------------------------- Luns Removed --------------------------------------------------------- emc0_02b8 --------------------------------------------------------- Press <Enter> or <Return> to continue:
Specify Dynamic Reconfiguration Operation to be done: Menu: VolumeManager/Disk/DynamicReconfigurationOperations 1 Add Luns 2 Remove Luns 3 Replace Luns 4 Replace HBA ? Display help about menu ?? Display help about the menuing system q Exit
To exit the Dynamic Reconfiguration tool, enter: q