======================================================= VXVM: Command examples ======================================================= :Title: VXVM: Command examples :Author: Douglas O'Leary :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... :command:`vxdisksetup -i ${ctd} [ privlen = ${size} ]` Lays out the vxvm formatting on the disk. ${ctd} is specified w/o the /dev/dsk/ :command:`vxdg -g ${dg} free ${disk}` Identifies the amount of free space on that disk. :command:`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 :command:`vxdg -g ${dg} adddisk ${pv}=${pv}` Add disks to disk group ${dg} :command:`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... :command:`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 :command:`vxassist -g ${dg} remove mirror ${vol} !${subdisk}` Counterintuitively, this removes the mirror from ${subdisk} :command:`vxprint -lvp -g ${group} ${plex}` Displays plex information like whether or not it's striped. :command:`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. :command:`vxassist -g ${group} maxgrow ${vol}` Displays the maximum size you can grow the filesystem. :command:`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