Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

81Administering application volumes
Evacuating a volume
Removing support for DRL and snapshots from a volume
To remove support for DCO-based DRL and instant snapshots from a volume,
use the following command to remove the DCO and DCO volume that are
associated with the volume:
# vxassist [-g diskgroup] [-P
storage_pool
] removeall log \
volume logtype=dco
Note: This command fails if the volume is part of a snapshot hierarchy.
Evacuating a volume
If you need to remove or disable a disk, you must first move any data off the disk
by evacuating it. Similarly, if the whole or parts of a volume are configured on
disks that are needed for other purposes, or which are not optimal or
appropriate for use by the volume, you can evacuate these.
To evacuate certain disks on which a volume is configured, use either of the
following commands to specify these:
# vxassist [-g
diskgroup
] [-b] evacuate disk
volume
\
!
dmname
... [use_storage=
rule
[,...]] [
attributes
...]
# vxassist [-g
diskgroup
] [-b] evacuate disk
volume
\
evac_storage=
rule
[,...] [use_storage=
rule
[,...]] \
[
attributes
...]
The disk media names of the disks that are to be evacuated are specified as
!dmname where dmname is a disk media name. Alternatively, you can also use
the storage specification attribute, evac_storage, to specify rules for
evacuating currently used storage. The -b option may be specified to run the
evacuation as a background task. ISP allocates suitable storage according to the
autogrow policy of the storage pool, or you can use the storage specification
attribute,
use_storage, to specify rules for allocating new storage.
For example, the following command evacuates disks mydg01 and mydg02 on
which volume, vol01, is configured, and specifies disks mydg03 and mydg04 as
destination disks:
# vxassist -g mydg evacuate disk vol01 !mydg01 !mydg02 \
use_storage=’allof("DM"="mydg03","DM"="mydg04")’
Not only disks can be evacuated. You can also specify subdisks, columns, logs,
mirrors or entire volumes to be evacuated. In these cases, you can use the
evac_storage attribute to specify which storage is to be evacuated. In the
following example, all columns of the volume are evacuated that have disks on
controller c1:
# vxassist -g mydg evacuate column vol01 \
evac_storage=’"Controller"="c1"’