VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Displaying Subdisk Information
140 VERITAS Volume Manager Administrator’s Guide
Displaying Subdisk Information
The vxprint command displays information about VxVM objects. To display general
information for all subdisks, use this command:
# vxprint -st
The -s option specifies information about subdisks. The -t option prints a single-line
output record that depends on the type of object being listed.
The following is example output:
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
sd disk01-01 vol1-01 disk01 0 102400 0 c0t10d0 ENA
sd disk02-01 vol2-01 disk02 0 102400 0 c0t10d0ENA
You can display complete information about a particular subdisk by using this command:
# vxprint -l subdisk
For example, the following command displays all information for subdisk disk02-01:
# vxprint -l disk02-01
This command provides the following output:
Disk group: rootdg
Subdisk: disk02-01
info: disk=disk02 offset=0 len=205632
assoc: vol=mvol plex=mvol-02 (offset=0)
flags: enabled
device: device=c2t0d1c0t10d0 path=/dev/vx/dmp/c2t0d1c0t10d0
diskdev=32/68
Moving Subdisks
Moving a subdisk copies the disk space contents of a subdisk onto one or more other
subdisks. Ifthe subdisk being movedis associated with aplex, then the datastored onthe
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 mv old_subdisk new_subdisk [new_subdisk ...]
For example, if disk03 is to be evacuated and disk22 has enough room on two of its
subdisks, use the following command:
# vxsd mv disk03-01 disk22-01 disk22-02