Removing LUNs dynamically from an existing target ID
|Article:HOWTO74817|||||Created: 2012-03-26|||||Updated: 2012-03-27|||||Article URL http://www.symantec.com/docs/HOWTO74817|
In this case, a group of LUNs is unmapped from the host HBA ports and an operating system device scan is issued. To add subsequent LUNs seamlessly, perform additional steps to clean up the operating system device tree.
To remove LUNs dynamically from an existing target ID
# vxdmpadm gettune dmp_cache_open
# vxdmpadm settune dmp_cache_open=on
# vxdg -g diskgroup rmdisk da-name
If the data has not been evacuated and the LUN is part of a subdisk or disk group, enter the following command to remove the LUNs from the disk group. If the disk is part of a shared disk group, you must use the -k option to force the removal.
# vxdg -g diskgroup -k rmdisk da-name
# reducevg vgname pvname
Using the AVID or LUN index, use Storage Array Management to unmap or unmask the LUNs you identified in step 2.
# vxdisk rm da-name
Clean up the AIX SCSI device tree for the devices that you removed in step 6.
# vxddladm assign names
If the answer to any of these questions is "No," return to step 5 and perform the required steps.
Article URL http://www.symantec.com/docs/HOWTO74817