Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
164 Creating and administering disk groups
Deporting a disk group
Once the disk has been removed from its disk group, you can (optionally) remove it from
VxVM control completely, as follows:
# vxdiskunsetup devicename
For example, to remove c1t0d0 from VxVM control, use these commands:
# vxdiskunsetup c1t0d0
You can remove a disk on which some subdisks of volumes 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 volumes, this message is displayed:
VxVM ERROR V-5-2-369 The following volumes currently use part of
disk mydg02:
home usrvol
Volumes must be moved from mydg02 before it can be removed.
Move volumes to other disks? [y,n,q,?] (default: n)
If you choose y, then all volumes are moved off the disk, if possible. Some volumes may
not be movable. The most common reasons why a volume 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 volumes, 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
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: