Veritas Volume Manager Quick Reference Disk Commands Operation Command Example Initialize disk vxdisksetup vxdisksetup -i c1t9d0 Uninitialize disks vxdiskunsetup vxdiskunsetup -C c1t9d0 List disks vxdisk list List disk header vxdisk list vxdisk list disk01 List disk private region vxprivutil list vxprivutil list /dev/rdsk/c1t9d0s2 Reserve a disk vxedit set vxedit -g my-dg set reserve=on my-disk Rename a disk vxedit rename vxedit -g my-dg rename my-disk new-disk Rescan all disks vxdctl enable Disk Group Commands Operation Command Example Create disk group vxdg init vxdg init my-dg disk01=c1t9d0 Remove disk group vxdg destroy vxdg destroy my-dg Add disk vxdg adddisk vxdg -g my-dg adddisk disk02=c1t8d0 Remove disk vxdg rmdisk vxdg -g my-dg rmdisk disk02 Import diskgroup vxdg import vxdg import my-dg Deport diskgroup vxdg deport vxdg deport my-dg List diskgroups vxdg list vxdg -o alldgs -e list List free space vxdg free vxdg -g my-dg free List total free space vxassist vxassist -g my-dg maxsize layout=concat Rename diskgroup on deport vxdg deport vxdg -n new-dg deport old-dg Rename diskgroup on import vxdg import vxdg -n new-dg import old-dg Evacuate data from a disk vxevac vxevac -g my-dg fromdisk todisk(s) Plex Commands Operation Command Example Create a plex vxmake plex vxmake -g my-dg plex my-plex sd=my-sd Associate a plex vxplex att vxplex -g my-dg att my-vol my-plex Dis-associate a plex vxplex dis vxplex -g my-dg dis my-plex Attach a plex vxplex att vxplex -g my-dg att my-vol my-plex Detach a plex vxplex det vxplex -g my-dg det my-plex List plexes vxprint vxprint -lp Remove a plex vxedit vxedit -g my-dg rm my-plex Subdisk Commands
Operation Command Example Create a subdisk vxmake sd vxmake -g my-dg my-sd disk1,1,5000 Remove subdisk vxedit rm vxedit -g my-dg rm my-sd Display subdisk info vxprint -st Associate subdisk to plex vxsd assoc vxsd -g my-dg assoc my-plex my-sd Disassociate subdisk vxsd dis vxsd -g my-dg dis my-sd Volume Commands Operation Command Example vxassist -g my-dg make my-vol 1G Create a volume vxassist make vxassist make my-vol 1G layout=stripe Delete a volume vxedit rm vxedit -g my-dg -r rm my-vol Display volume info vxprint -vt vxprint -g my-dg -vt Display volume info vxinfo vxinfo -g my-dg my-vol vxassist growto vxassist -g my-dg growto my-vol 2G Resize a volume vxassist growby vxassist -g my-dg growby my-vol 600M Start a volume vxvol start vxvol -g my-dg start my-vol Stop a volume vxvol stop vxvol -g my-dg stop my-vol Initialise a volume vxvol init active vxvol -g my-dg init active my-vol Recover a volume vxrecover vxrecover -g my-dg my-vol Mirror a volume vxassist mirror vxassist -g my-dg mirror my-vol Add log to a volume vxassist addlog vxassist -g my-dg addlog my-vol vxassist snapstart vxassist -g my-dg snapstart my-vol Snapshot a volume vxassist snapshot vxassist -g my-dg snapshot my-vol my-snap Change volume layout vxassist relayout vxassist -g my-dg relayout my-vol layout=stripe vxassist -g my-dg convert my-vol layout=stripeConvert volume type vxassist convert mirror vxassist maxsize Estimate max volume vxassist -g my-dg maxsize layout=... disk1 diskn vxassist size vxassist -g my-dg maxgrow my-vol maxgrow Remove a volume vxassist remove vxassist -g my-dg remove my-vol vxvol stop vxvol -g my-dg stop my-vol Remove a volume vxedit -r rm vxedit -g my-dg -r rm my-vol vxdg rmdisk vxdg -g my-dg rmdisk my-disk Help on layout vxassist help vxassist help layout Multipathing Commands Operation Command Example Display vxdmpadm vxdmpadm listenclosure all enclusres listenclosure
Display controllers
vxdmpadm listctlr vxdmpadm listctlr all
Display subpaths
vxdmpadm getsubpaths
Miscellaneous Commands Operation Enable Enclosure Based Naming Disable Enclosure Based Naming
vxdmpadm getsubpaths ctlr=c3 vxdmpadm getsubpaths dmpnodename=EMC_CLARiiON2_4 Command vxddladm set namingscheme vxddladm set namingscheme
Example vxddladm set namingscheme=ebn vxddladm set namingscheme=obn