V E R I T A S
E D U C A T I O N
Q U I C K
R E F E R E N CE
Basic VxVM Commands DISK OPERATIONS Action
Command Line
Initialize a disk
vxdisksetup -i device
List disks owned by local and remote hosts
vxdisk –o alldgs list
List disk header
vxdisk list diskname|device
Evacuate a disk
vxevac -g diskgroup from_disk to_disk
Rename a disk
vxedit -g diskgroup rename oldname newname
Set spare, no hot relocation, vxedit -g diskgroup set or reserved space on a disk {spare|nohotuse|reserve}=on|off diskname Unrelocate a disk
vxunreloc -g diskgroup original_diskname
VOLUME OPERATIONS Action Create a volume
Command Line vxassist -g diskgroup make vol_name size layout=format diskname vxedit -g diskgroup -rf rm vol_name
Remove a volume
Display a volume
or
vxassist -g diskgroup remove volume vol_name vxprint -g diskgroup -vt vol_name vxprint -g diskgroup –l vol_name vxvol -g diskgroup rdpol round vol_name
DISK GROUP OPERATIONS Action
Command Line
Create a disk group
vxdg init diskgroup diskname=device
Add a disk to disk group
vxdg -g diskgroup adddisk diskname=device
Remove a disk from disk group Deport, import or destroy a disk group
vxdg –g diskgroup rmdisk diskname vxdg {deport|import|destroy} diskgroup
Change volume read policy
vxvol -g diskgroup rdpol prefer vol_name preferrred_plex_name vxvol -g diskgroup rdpol select vol_name
Mirror an existing plex Create a snapshot volume
vxassist -g diskgroup mirror vol_name vxassist –g diskgroup -b snapstart vol_name vxassist –g diskgroup snapshot vol_name new_volume
List disk groups
vxdg list [diskgroup]
Show free/spare space pool
vxdg –g diskgroup {free|spare}
Abort a snapshot
vxassist -g diskgroup snapabort orig_vol_name
Upgrade disk group version
vxdg [-T version] upgrade diskgroup
Rewrite disk headers, configuration copies, and kernel log copies in a disk group.
vxdg flush diskgroup targetdg object...
Reassociate a snapshot
vxassist -g diskgroup snapback snapshot_vol
Dissociate a snapshot
vxassist -g diskgroup snapclear snapshot_vol
vxdg move sourcedg targetdg object...
Print snapshot information
vxassist -g diskgroup snapprint vol_name
vxdg split sourcedg targetdg object...
Relayout a volume
vxassist -g diskgroup relayout vol_name layout=new_layout [attributes...]
Join disk groups
vxdg join sourcedg targetdg
List objects affected by a disk group move operation
vxdg listmove sourcedg targetdg object...
Convert to or from a layered layout
vxassist -g diskgroup convert vol_name layout=new_layout [attributes...]
Add a log to a volume
vxassist –g diskgroup addlog vol_name
Move an object between disk groups Split objects between disk groups
or
vxdctl enable (for all disk groups)
VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2) Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2002.
1