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
List total free space
vxassist
vxassist -g my-dg maxsize layout=concat
Plex commands
peration
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 Command
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
Create a volume
vxassist
vxassist -g my-dg make my-vol 1G
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
Resize a volume
vxassist
vxassist -g my-dg growto my-vol 2G
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
Snapshot a volume
vxassist
vxassist -g my-dg snapstart my-vol
vxassist -g my-dg snapshot my-vol my-snap
Change volume layout
vxassist
vxassist -g my-dg relayout my-vol layout=stripe
Convert volume type
vxassist
vxassist -g my-dg convert my-vol layout=stripe-mirror

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post