Veritas Volume Manager (vxvm) for Solaris

Display all disks	vxdisk list
Display specific disk	vxdisk list {disk}
Display all components	vxprint
Display specific component	vxprint {component}
Display all disk groups	vxdg list
Display specific disk groups	vxdg list {diskgroup}
Display volume status (rootdg)	vxinfo
Display volume status (other)	vxinfo -g {diskgroup}
Display task information	vxtask list
Create disk group	vxdb init {diskgroup} {diskname}={device}
Change disk group name	vxdg -n {newname} {oldname}
Remove disk group	vxdg destroy {diskgroup}
Create subdisk	vxmake sd {name} {disk},{offset},{length}
Remove subdisk	vxedit rm {subdisk}
Create plex (mirror)	vxmake plex {name} sd={subdisk},{subdisk}
Clean plex	vxmend fix clean {plex}
Copy one plex to another	vxplex cp {volume} {new plex}
Remove plex	vxedit -r rm {plex}
Create volume	vxassist make {volume} {length}
Start volume	vxvol start {volume}
Stop volume	vxvol stop {volume}
Make filesystem	mkfs -F vxfs {device} {size}
Report free blocks/inodes	df -F vxfs {mountpoint}
Check filesystem	fsck -F vxfs {device}

Howto: Recover diskgroup

- Do this for all failed volumes in rootdg

vxmend -g diskgroup fix stale {plex_name}
vxmend -g diskgroup fix clean {plex_name}
vxvol -g diskgroup start {volume}

- Reboot server

Howto: Grow a volume

- Find available space

vxassist -g {diskgroup} maxgrow {volume} {disks}

- Grow volume

vxassist -g {diskgroup} growto {volume} {length} {disks}

- Use vxtask to monitor progress

vxtask list

- Grow filesystem (ufs)

mkfs -F ufs -M {mountpoint} /dev/vx/rdsk/{diskgroup}/{volume} {length}

- Grow filesystem (vxfs)

fsadm -b {length} -f /dev/vx/rdsk/{diskgroup}/{volume} {mountpoint}