Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009
sd mydg01-01 vol1-01 mydg01 0 102400 0 c2t0d1 ENA
sd mydg02-01 vol2-01 mydg02 0 102400 0 c2t1d1 ENA
You can display complete information about a particular subdisk by using this
command:
# vxprint [-g diskgroup] -l subdisk
For example, the following command displays all information for subdisk
mydg02-01 in the disk group, mydg:
# vxprint -g mydg -l mydg02-01
This command provides the following output:
Disk group: mydg
Subdisk: mydg02-01
info: disk=mydg02 offset=0 len=205632
assoc: vol=mvol plex=mvol-02 (offset=0)
flags: enabled
device: device=c2t1d1 path=/dev/vx/dmp/c2t1d1 diskdev=32/68
Moving subdisks
Moving a subdisk copies the disk space contents of a subdisk onto one or more
other subdisks. If the subdisk being moved is associated with a plex, then the data
stored on the original subdisk is copied to the new subdisks. The old subdisk is
dissociated from the plex, and the new subdisks are associated with the plex. The
association is at the same offset within the plex as the source subdisk. To move
a subdisk, use the following command:
# vxsd [-g diskgroup] mv old_subdisk new_subdisk [new_subdisk ...]
For example, if mydg03 in the disk group, mydg, is to be evacuated, and mydg12 has
enough room on two of its subdisks, use the following command:
# vxsd -g mydg mv mydg03-01 mydg12-01 mydg12-02
For the subdisk move to work correctly, the following conditions must be met:
■ The subdisks involved must be the same size.
■ The subdisk being moved must be part of an active plex on an active (ENABLED)
volume.
■ The new subdisk must not be associated with any other plex.
251Creating and administering subdisks
Moving subdisks