Você está na página 1de 1

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 C E

Advanced VxVM Commands

SUBDISK OPERATIONS BENCHMARKING OPERATIONS


Action Command Line Action Command Line
vxmake -g diskgroup sd subdisk_name Count and size of VxVM disk vxstat -g diskgroup [-i interval]
Create a subdisk I/Os completed per sample
diskname offset length [-c count] –d vol_name
time slice to a volume
Remove a subdisk vxedit -g diskgroup rm subdisk_name
vxtrace -g diskgroup [–t duration]
vxprint –st VxVM I/O trace information—
–d [filename] –o dev,disk vol_name;
Display subdisk information dump to file and read from file
vxprint -l subdisk_name vxtrace –l –f /tmp/tracedata | pg
Associate a subdisk to a plex vxsd assoc plex_name subdisk_name Sample I/O load with vxbench –w {read|write} –i
statistics—sequential iosize=size,iocount=count filename
Dissociate a subdisk vxsd dis subdisk_name
vxbench –w {rand_read|rand_write}
Sample I/O load with
–i iosize=size,iocount=count,
PLEX AND VOLUME OPERATIONS statistics—random
maxfilesize=size filename
Action Command Line
vxmake -g diskgroup plex plex_name
Create a plex TUNING OPERATIONS
sd=subdisk_name,…
Action Command Line
vxplex –g diskgroup att vol_name
Associate a plex (to a volume)
plex_name Example: View the current setting for the kernel
View currently set VxVM parameter vol_max_vol:
Unmirror a volume (remove a kernel parameters
vxplex –o rm dis plex_name
plex) # echo ‘vol_max_vol/D’ | adb –k
Start/stop volumes vxvol {start|stop} vol_name Example: Change the VxVM kernel parameter
Start/stop all volumes vxvol {startall|stopall} vol_max_vol from the current value to a new
Change VxVM kernel
value of 2048 by adding the parameter to the
Recover a volume vxrecover -sn vol_name /etc/system file:
parameters
Detach a plex vxplex –g diskgroup det plex_name # set vxio: vol_max_vol=2048
vxplex –g diskgroup att vol_name Then, reboot the system.
Attach a plex
plex_name
vxmend fix {active|clean|stale}
Change state flags on plex
plex_name
Turn plex online/offline vxmend {on|off} plex_name
Set FastResync flag on a
vxvol set fastresync=on vol_name
volume

1
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.

Você também pode gostar