Sunteți pe pagina 1din 1
VERITAS EDUCATION QUICK REFERENC E
VERITAS
EDUCATION
QUICK
REFERENC E

Basic VxVM Commands

DISK OPERATIONS VOLUME OPERATIONS Action Command Line Action Command Line Initialize a disk vxdisksetup -i
DISK OPERATIONS
VOLUME OPERATIONS
Action
Command Line
Action
Command Line
Initialize a disk
vxdisksetup -i device
List disks owned by local
and remote hosts
vxdisk –o alldgs list
Create a volume
vxassist -g diskgroup make vol_name size
layout=format diskname
List disk header
vxdisk list diskname|device
vxedit -g diskgroup -rf rm vol_name
Evacuate a disk
vxevac -g diskgroup from_disk to_disk
or
Remove a volume
Rename a disk
vxedit -g diskgroup rename oldname newname
vxassist -g diskgroup remove volume
vol_name
Set spare, no hot relocation,
or reserved space on a disk
vxedit -g diskgroup set
{spare|nohotuse|reserve}=on|off diskname
vxprint -g diskgroup -vt vol_name
Display a volume
Unrelocate a disk
vxunreloc -g diskgroup original_diskname
vxprint -g diskgroup –l vol_name
vxvol -g diskgroup rdpol round vol_name
DISK GROUP OPERATIONS
Action
Command Line
Change volume read
policy
vxvol -g diskgroup rdpol prefer vol_name
preferrred_plex_name
Create a disk group
vxdg init diskgroup diskname=device
vxvol -g diskgroup rdpol select vol_name
Mirror an existing plex
vxassist -g diskgroup mirror vol_name
Add a disk to disk group
vxdg -g diskgroup adddisk diskname=device
Remove a disk from disk
group
vxdg –g diskgroup rmdisk diskname
vxassist –g diskgroup -b snapstart
vol_name
Deport, import or destroy a
disk group
vxdg {deport|import|destroy} diskgroup
Create a snapshot
volume
vxassist –g diskgroup snapshot vol_name
new_volume
List disk groups
vxdg list [diskgroup]
Abort a snapshot
Show free/spare space pool
vxdg –g diskgroup {free|spare}
vxassist -g diskgroup snapabort
orig_vol_name
Upgrade disk group version
vxdg [-T version] upgrade diskgroup
Reassociate a
snapshot
vxassist -g diskgroup snapback
snapshot_vol
Rewrite disk headers,
configuration copies, and
kernel log copies in a disk
group.
vxdg flush diskgroup targetdg object
or
Dissociate a snapshot
vxassist -g diskgroup snapclear
snapshot_vol
vxdctl enable (for all disk groups)
Print snapshot
Move an object between
disk groups
vxassist -g diskgroup snapprint vol_name
vxdg move sourcedg targetdg object
information
vxassist -g diskgroup relayout vol_name
Split objects between disk
groups
vxdg split sourcedg targetdg object
Relayout a volume
layout=new_layout [attributes
]
Join disk groups
vxdg join sourcedg targetdg
Convert to or from a
layered layout
vxassist -g diskgroup convert vol_name
layout=new_layout [attributes
]
List objects affected by a
disk group move operation
vxdg listmove sourcedg targetdg object
Add a log to a volume
vxassist –g diskgroup addlog vol_name

http://us.training.veritas.com

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.

VERITAS Education

800-327-2232 (option 2)

1