Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)
Chapter 4, Creating and Administering Disk Groups
Deporting a Disk Group
139
You can remove a disk on which some subdisks are defined. For example, you can
consolidate all the volumes onto one disk. If you use vxdiskadm to remove a disk, you
can choose to move volumes off that disk. To do this, run vxdiskadm and select item 2
(Remove a disk) from the main menu.
If the disk is used by some subdisks, this message is displayed:
VxVM ERROR V-5-2-369 The following volumes currently use part of disk
mydg02:
home usrvol
Subdisks must be moved from mydg02 before it can be removed.
Move subdisks to other disks? [y,n,q,?] (default: n)
If you choose y, then all subdisks are moved off the disk, if possible. Some subdisks may
not be movable. The most common reasons why a subdisk may not be movable are as
follows:
◆ There is not enough space on the remaining disks.
◆ Plexes or striped subdisks cannot be allocated on different disks from existing plexes
or striped subdisks in the volume.
If vxdiskadm cannot move some subdisks, you may need to remove some plexes from
some disks to free more space before proceeding with the disk removal operation.
Deporting a Disk Group
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.
To deport a disk group, use the following procedure:
1. 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.
Note Deportation fails if the disk group contains volumes that are in use (for
example, by mounted file systems or databases).
2. Use the following command to stop the volumes in the disk group:
# vxvol -g diskgroup stopall