VXVM: Command examples¶
- Title:
VXVM: Command examples
- Author:
Douglas O’Leary <dkoleary@olearycomputers.com>
- Description:
VXVM: Command examples
- Date created:
08/2008
- Date updated:
09/2009
- Disclaimer:
Standard: Use the information that follows at your own risk. If you screw up a system, don’t blame it on me…
- vxdisksetup -i ${ctd} [ privlen = ${size} ]
Lays out the vxvm formatting on the disk. ${ctd} is specified w/o the /dev/dsk/
- vxdg -g ${dg} free ${disk}
Identifies the amount of free space on that disk.
- vxprivutil scan ${rdsk}| grep group
IDs the group to which a disk belongs:
# vxprivutil scan /dev/rdsk/c8t7d3 | grep ^group group: name=MJPdg id=1228148230.1267.usilap35
- vxdg -g ${dg} adddisk ${pv}=${pv}
Add disks to disk group ${dg}
- vxplex -g ${dg} -o rm dis ${plex}
Disassociate and remove a mirrored plex from a volume. Not sure what this would do if it were the only plex in a volume…
- vxassist -g ${dg} mirror ${vol} ctrl:c##
Mirrors volume ${vol} onto any available disk on controller c##. Other storage attributes are available as well; see the admin guide for details
- vxassist -g ${dg} remove mirror ${vol} !${subdisk}
Counterintuitively, this removes the mirror from ${subdisk}
- vxprint -lvp -g ${group} ${plex}
Displays plex information like whether or not it’s striped.
- vxdg -g ${group} free
Displays the amount of free space on each disk in the disk group - measured in sectors so divide by 2048 to get megs.
- vxassist -g ${group} maxgrow ${vol}
Displays the maximum size you can grow the filesystem.
- vxresize -F vxfs -g ${group} ${vol} [+/-]${size}[kmg]
Grows the volume by the amount specified in size. Size can be specified in k’s, m’s or g’s. no space between +/- and the number