Veritas volume and filesystem commands

Click on the headings to sort

CommandCommon Arguments & DescriptionCommand Description
vxassist-g appdg maxsize (Reports the maximum size a volume in the diskgroup appdg could be created with, and therefore how much disk space is left in the diskgroup, given the free storage available)Reports how much space is left in the diskgroup
vxassist-g appdg maxgrow appvol (Reports how big the volume appvol can get (current size + available space) by utilizing any free space in the disk group appdg. (The reported Mb figure in brackets is the max size the volume can grow to)Reports the maximum growth of a volume in a diskgroup
vxconfigd-k (Kills the vxconfigd daemon, useful for recovering from a hung vxconfigd process)Volume Manager configuration daemon
vxdgdeport appdg (Disables the disk group appdg but does not remove it)Disable a disk group
vxdgimport appdg (Reverse of vxdg deport - Enables local access to diskgroup appdg)Enable a disk group
vxdisklist (Display detailed disk information for all disk access records known to the system)Perform basic admin operations on Volume Manager disks
vxdisklist SAN_VC0_1 (Display hostid, disk, group, pubpaths, udid, mutipathing info etc for daname "SAN_VC0_1" (daname found from vxdisk path). Also match udid with vdisk_UID from "svcinfo lshostvdiskmap" SVC command to find associated SVC vdisk)Perform basic admin operations on Volume Manager disks
vxdiskpath (Display paths to a disk)Show multipathing information for metadevices
vxdiskrm san_vc4 (Remove the disk san_vc4 (disk name is the device name found from "vxdisk list"))Remove the specified disk access records, by disk access name
vxdiskscandisks new (Discovers new disks not known to VxVM)Initiates rescanning of devices in the OS device tree by VxVM
vxdiskadmpath (Interactively performs tasks such as add or initialise disks, remove disks, mirror volumes on a disk, enable access to (import) a disk group etc)Menu-driven Veritas Volume Manager (VxVM) disk administrator
vxdmpadmdisable path=c3t5015078801405179d1s2 (Disable I/O on a specified path)Interface to the Dynamic Multipathing (DMP) facility
vxdmpadmenable path=c3t5015078801405179d1s2 (Enable I/O on a previously disabled path)Interface to the Dynamic Multipathing (DMP) facility
vxeepromdevalias (List existing devalias lines)Manipulate nvramrc variables stored in the solaris EEPROM for Veritas Volume Manager
vxprint(No arguments - Displays type, name, assoc, kstate etc for all active (imported) disk groups)Display records from the Volume Manager configuration
vxprint-AQqdF "%publen" | awk 'BEGIN {s = 0} {s += $1} END {print s/2097152, "GB"}' (Displays the total amount of disk space (free + used) for all the disk groups)Display the total amount of disk space for all disk groups
vxprint-g appdg -dF "%publen" | awk 'BEGIN {s = 0} {s += $1} END {print s/2097152, "GB"}' (Displays the total amount of disk space (free + used) in the disk group appdg)Display the total amount of disk space in a disk group
vxprint-l appdg01 | grep publen | awk -F= '{print $2}'| awk '{print $1/2097152, "GB"}' (Displays the size of the veritas disk appdg01 (the disk is found using vxdisk list))Display the size of a veritas disk
vxresize-g appdg vol1 +10g (Grows the volume vol1 in the appdg disk group by 10GB)Grow or shrink a filesystem and the underlying volume
vxvol-g appdg startall (Attempt to start all disabled volumes in disk group appdg)Attempt to start all volumes that are disabled
vxvol-g appdg stopall (Attempt to stop all enabled volumes in disk group appdg)Attempt to stop all volumes that are enabled