0% found this document useful (0 votes)
114 views

VXVM Cmds

This document provides a quick reference to common Veritas Volume Manager commands organized by operation type. It includes disk commands for initializing, listing, and reserving disks. Disk group commands for creating, importing, deporting, and modifying disk groups. Plex commands for creating, attaching, detaching and listing plexes. Subdisk commands for creating, removing and associating subdisks. Finally, volume commands for creating, deleting, resizing, mirroring, snapshotting and more.

Uploaded by

Manoj M
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views

VXVM Cmds

This document provides a quick reference to common Veritas Volume Manager commands organized by operation type. It includes disk commands for initializing, listing, and reserving disks. Disk group commands for creating, importing, deporting, and modifying disk groups. Plex commands for creating, attaching, detaching and listing plexes. Subdisk commands for creating, removing and associating subdisks. Finally, volume commands for creating, deleting, resizing, mirroring, snapshotting and more.

Uploaded by

Manoj M
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Veritas Volume manager Command quick

reference
Disk commands
Operation Command Example
Initialise Disk vxdisksetup vxdisksetup -i c1t9d0
Uninitialise 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 vxedit -g my-dg set reserve=on my-disk
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 otherdg
Deport diskgroup vxdg deport vxdg deport my-dg
List diskgroups vxdg list  
List free space vxdg free vxdg -g my-dg free
vxassist -g my-dg maxsize layout=concat
List total free space vxassist

Plex commands
Operation Command Example
Create a plex vxmake vxmake -g my-dg plex my-plex sd=my-sd
Associate a plex vxplex vxplex -g my-dgatt my-vol my-plex
Dis-associate a plex vxplex vxplex -g my-dg dis my-plex
Attach a plex vxplex vxplex -g my-dg att my-vol my-plex
Detach a plex vxplex 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
vxassist make my-vol 1G layout=stripe
Delete a volume vxedit vxedit -g my-dg -r rm my-vol
Display volume info vxprint vxprint -g my-dg -vt
Display volume info vxinfo vxinfo -g my-dg my-vol
vxassist -g my-dg growto my-vol 2G 
Resize a volume vxassist
vxassist -g my-dg growby my-vol 600M
Start a volume vxvol vxvol -g my-dg start my-vol
Stop a volume vxvol vxvol -g my-dg stop my-vol
Initialise a volume vxvol vxvol -g my-dg init active my-vol
Recover a volume vxrecover vxrecover -g my-dg my-vol
Mirror a volume vxassist vxassist -g my-dg mirror my-vol
Add log to a volume vxassist vxassist -g my-dg addlog my-vol
vxassist -g my-dg snapstart my-vol 
Snapshot a volume vxassist
vxassist -g my-dg snapshot my-vol my-snap
Change volume layout vxassist vxassist -g my-dg relayout my-vol layout=stripe
vxassist -g my-dg convert my-vol layout=stripe-
Convert volume type vxassist
mirror
stripe-mirror layout is RAID
0 + 1 is striped
NOTES:   
pro......layered volume with
subvolumes
mirror-stripe layout is RAID
 
1+0

You might also like