Deporting a disk group disables access to a disk group that is currently enabled (imported) by the system. Deport a disk group if you intend to move the disks in a disk group to another system. Also, deport a disk group if you want to use all of the disks remaining in a disk group for a new purpose.
Stop all activity by applications to volumes that are configured in the disk group that is to be deported. Unmount file systems and shut down databases that are configured on the volumes.
Deportation fails if the disk group contains volumes that are in use (for example, by mounted file systems or databases).
Use the following command to stop the volumes in the disk group:
# vxvol -g diskgroup stopall
Select Remove access to (deport) a disk group from the vxdiskadm main menu.
At the following prompt, enter the name of the disk group to be deported (in this example, newdg):
Enter name of disk group [<group>,list,q,?] (default: list) newdg
At the following prompt, enter y if you intend to remove the disks in this disk group:
Disable (offline) the indicated disks? [y,n,q,?] (default: n) y
At the following prompt, press Return to continue with the operation:
Continue with operation? [y,n,q,?] (default: y)
Once the disk group is deported, the vxdiskadm utility displays the following message:
VxVM INFO V-5-2-269 Removal of disk group newdg was successful.
At the following prompt, indicate whether you want to disable another disk group (y) or return to the vxdiskadm main menu (n):
Disable another disk group? [y,n,q,?] (default: n)
Alternatively, you can use the vxdg command to deport a disk group:
# vxdg deport diskgroup