Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

The operations are as follows:
Dynamic LUN removal from an existing target ID
See Removing LUNs dynamically from an existing target ID on page 200.
Dynamic new LUN addition to a new target ID
See Adding new LUNs dynamically to a new target ID on page 202.
Removing LUNs dynamically from an existing target ID
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 cleanup the operating system device tree.
To remove LUNs dynamically from an existing target ID
1
Identify which LUNs to remove from the host. Do one of the following:
Use Storage Array Management to identify the Array Volume ID (AVID)
for the LUNs.
If the array does not report the AVID, use the LUN index.
2
For LUNs under VxVM, perform the following steps:
Evacuate the data from the LUNs using the vxevac command.
See the vxevac(1M) online manual page.
After the data has been evacuated, enter the following command to remove
the LUNs from the disk group:
# 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
3
For LUNs using HP-UX LVM over DMP devices, remove the device from the
LVM volume group.
# vgreduce vgname devicepath
4
Using the AVID or LUN index, use Storage Array Management to unmap or
unmask the LUNs you identified in step 1.
Online dynamic reconfiguration
Reconfiguring a LUN online that is under DMP control
200