Vous êtes sur la page 1sur 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
Action
Create a subdisk Remove a subdisk Display subdisk information Associate a subdisk to a plex Dissociate a subdisk

BENCHMARKING OPERATIONS
Command Line vxmake -g diskgroup sd subdisk_name diskname offset length vxedit -g diskgroup rm subdisk_name vxprint st vxprint -l subdisk_name vxsd assoc plex_name subdisk_name vxsd dis subdisk_name Action
Count and size of VxVM disk I/Os completed per sample time slice to a volume VxVM I/O trace information dump to file and read from file Sample I/O load with statisticssequential Sample I/O load with statisticsrandom

Command Line vxstat -g diskgroup [-i interval] [-c count] d vol_name vxtrace -g diskgroup [t duration] d [filename] o dev,disk vol_name; vxtrace l f /tmp/tracedata | pg vxbench w {read|write} i iosize=size,iocount=count filename vxbench w {rand_read|rand_write} i iosize=size,iocount=count, maxfilesize=size filename

PLEX AND VOLUME OPERATIONS


Action
Create a plex Associate a plex (to a volume) Unmirror a volume (remove a plex) Start/stop volumes Start/stop all volumes Recover a volume Detach a plex Attach a plex Change state flags on plex Turn plex online/offline Set FastResync flag on a volume

Command Line vxmake -g diskgroup plex plex_name sd=subdisk_name, vxplex g diskgroup att vol_name plex_name vxplex o rm dis plex_name vxvol {start|stop} vol_name vxvol {startall|stopall} vxrecover -sn vol_name vxplex g diskgroup det plex_name vxplex g diskgroup att vol_name plex_name vxmend fix {active|clean|stale} plex_name vxmend {on|off} plex_name vxvol set fastresync=on vol_name
1

TUNING OPERATIONS
Action
View currently set VxVM kernel parameters

Command Line Example: View the current setting for the kernel parameter vol_max_vol: # echo vol_max_vol/D | adb k Example: Change the VxVM kernel parameter vol_max_vol from the current value to a new value of 2048 by adding the parameter to the /etc/system file: # set vxio: vol_max_vol=2048 Then, reboot the system.

Change VxVM kernel parameters

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.

Vous aimerez peut-être aussi