Veritas volume manager - Quick referrence



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
Create a volume
vxassist make
vxassist -g my-dg make my-vol 1G
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
Resize a volume
vxassist growto
vxassist growby
vxassist -g my-dg growto my-vol 2G
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
Snapshot a volume
vxassist snapstart
vxassist snapshot
vxassist -g my-dg snapstart my-vol
vxassist -g my-dg snapshot my-vol my-snap
Change volume layout
vxassist relayout
vxassist -g my-dg relayout my-vol layout=stripe
Convert volume type
vxassist convert
vxassist -g my-dg convert my-vol layout=stripe-mirror
Estimate max volume size
vxassist maxsize
vxassist maxgrow
vxassist -g my-dg maxsize layout=... disk1 diskn
vxassist -g my-dg maxgrow my-vol
Remove a volume
vxassist remove
vxassist -g my-dg remove my-vol
Remove a volume
vxvol stop
vxedit -r rm
vxdg rmdisk
vxvol -g my-dg stop my-vol
vxedit -g my-dg -r rm my-vol
vxdg -g my-dg rmdisk my-disk
Help on layout
vxassist help
vxassist help layout

Multipathing Commands

Operation
Command
Example
Display enclusres
vxdmpadm listenclosure
vxdmpadm listenclosure all
Display controllers
vxdmpadm listctlr
vxdmpadm listctlr all
Display subpaths
vxdmpadm getsubpaths
vxdmpadm getsubpaths ctlr=c3
vxdmpadm getsubpaths dmpnodename=EMC_CLARiiON2_4

Miscellaneous Commands

Operation
Command
Example
Enable Enclosure Based Naming
vxddladm set namingscheme
vxddladm set namingscheme=ebn
Disable Enclosure Based Naming
vxddladm set namingscheme
vxddladm set namingscheme=obn



0 comments:

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks