Comandi VxVM

Il Veritas Volume Manager (VxVM) e' un diffuso e flessibile sistema per la gestione dello storage. L'elenco dei comandi e delle funzionalita' e' molto ampio... Nel documento Volume Manager su Unix sono riportati i concetti e le funzionalita' principali. Questo documento invece riporta l'elenco e le opzioni dei principali comandi.

L'elenco dei principali comandi e':

vxadm           vxddladm        vxdump          vxmemstat                       vxsnap          vxtranslog
vxassist        vxdg            vxedit          vxmend          vxrelayout      vxsnptadm       vxtune
vxcache         vxdisk          vxexport        vxnetd          vxrestore       vxspcshow       vxusertemplate
vxclust         vxdiskadd       vxibc           vxnotify        vxrlink         vxstart_vvr     vxvol
vxcmdlog        vxdiskadm       vxinfo          vxplex          vxrsync         vxstat          vxvoladm
vxconfigd       vxdiskconfig    vxinstall       vxpool          vxrvg           vxtask          vxvoladmtask
vxdco           vxdiskpr        vxiod           vxprint         vxscriptlog     vxtemplate      vxvset
vxdctl          vxdmpadm        vxmake          vxrecover       vxsd            vxtrace

I comandi piu' utilizzati hanno le seguenti opzioni:

vxdg - manage disk groups

    Usage: vxdg  keyword arg ...
Recognized keywords:
    [-T version] [-s] [-o verify|override] init groupname [[disk=]device ...] [nconfig=default|all|ncopies] [nlog=default|all|ncopies] [cds=on|off] [minor=base-minor]
    [-tsfC] [-n newname] [-o clearreserve] [-o groupreserve=fencekey] [-o selectcp=diskid] [-o noreonline] import diskgroup
    [-n newname] [-h new-host-id] deport diskgroup ...
    [-o verify|override] destroy diskgroup ...
    [-g diskgroup] [-o verify|override] [-pk] adddisk [disk=]device ...
    [-g diskgroup] [-o verify|override] [-k] rmdisk disk ...
    [-g diskgroup] [-f] reminor [diskgroup] new-minor-number
    [-q] list [diskgroup ...]
    [-qa] [-g diskgroup] free [disk ...]
    [-q] [-g diskgroup] spare [disk ...]
    [-q] [-g diskgroup] nohotuse [disk ...]
    flush [diskgroup ...]
    [-g diskgroup] [-k] repldisk unassocdm=repldm ...
    [-T version] upgrade diskgroup
    -g diskgroup set attr=value ...
    [-o verify|override] join src_diskgroup dst_diskgroup
    [-o expand] listmove src_diskgroup dst_diskgroup objects ...
    [-o verify|override] [-o expand] move src_diskgroup dst_diskgroup objects ...
    [-o verify|override] [-o expand] split src_diskgroup dst_diskgroup objects ...
    [-o clean|remove] recover diskgroup
    bootdg
    defaultdg


vxvol - Perform Volume Manager volume operations

    Usage: vxvol [-g diskgroup] [-U usetype] [-f]  [-o useopt] [-t tasktag] [-Vq] keyword arg ...
Recognized keywords:
    init what vol object ...
    rdpol policy vol [plex]
    set var=value ... vol ...
    startall
    stopall
    start vol ...
    stop vol ...
    resync vol ...
    recover vol [sd ...]
    maint vol ...
    noderecover vol ...
    [-c ch_addopt] [-r rvg] assoc rvg|vset vol [primary_datavol] [index]
    [-r rvg] aslog rvg vol
    [-c ch_rmopt] dis vol [vset]
    snapsync vol


vxplex - Perform Volume Manager plex operations

    Usage: vxplex [-g diskgroup] [-U usetype] [-o useopt] [-t tasktag] [-T taskid] [-fV] [-v vol] keyword arg ...
Recognized keywords:
    [-d default_file] [-s srcplex] att vol plex1 plex2 ...
    det plex ...
    dis plex ...
    cp vol plex ...
    snapstart vol snapplex
    [-c checkpoint_version] snapshot snapplex [newvol]
    snapback origvol plex
    mv oldplex newplex
    snapabort plex
    convert state=SNAPDONE|ACTIVE plex1 plex2 ...


vxsd - Perform Volume Manager subdisk operations

    Usage: vxsd [-g diskgroup] [-U utype] [-o uopt] [-t tasktag] [-V] [-v vol] [-p plex] keyword arg ...
Recognized keywords:
    [-l [column/]offset] assoc plex sd...
    aslog plex sd
    dis sd ...
    [-s size] split sd newsd [newsd2]
    join sd1 sd2 ... newsd
    mv oldsd newsd


vxdisk - manage disks controlled by the Volume Manager

    Usage: vxdisk [-f] keyword arg ...
Recognized keywords:
    init accessname [attribute ...]
    define accessname [attribute ...]
    online accessname ...
    offline accessname ...
    -a online
    [-g diskgroup] check disk ...
    rm accessname ...
    [-g diskgroup] [-o alldgs] [-o listreserve] [-bqs] list [disk ...]
    clearimport accessname ...
    [-g diskgroup] addregion region-type disk offset length
    [-g diskgroup] rmregion region-type disk offset [length]
    [-g diskgroup] set disk [attribute ...]
    getctlr da_name
    scandisks [device=...|ctlr=...|pctlr=...|new|fabric]
    verify accessname ...
    destroy accessname ...
    flush accessname ...
    -o clearkey=key clearhost ...
    checklvmdisk
    listguid
    [-g diskgroup] resize disk [length=]
    path


vxdmp - manage disks controlled by the Volume Manager

    Usage: vxdisk [-f] keyword arg ...
Recognized keywords:
Topics for the vxdmpadm help command:
Usage: vxdmpadm help 
usage           Usage of the vxdmpadm command
enable          Enabling of a specific controller or path
disable         Disabling of a specific controller or path
listctlr        Listing of controllers
getctlr         Listing of the logical and physical names of controllers
getsubpaths     Getting all subpaths of a controller/dmp node/TPD metanode
getdmpnode      Getting the dmp nodes for a path/enclosure
setattr         Setting attributes for enclosures, paths, arrays or arraytypes
getattr         Get attributes for enclosures, arrays or arraytypes
listenclosure   Displaying attributes of enclosures
start restore   Start the DMP Restore Daemon
stop restore    Stop the DMP restore daemon
stat            Gives statistics of the specified type of DMP daemon
cfgapm          Configuring of a specific APM
listapm         Listing of APMs
iostat          Manage and print DMP io statistics
getlungroup     Print all the dmpnodes in the same lungroup
gettpdnode              Getting the TPD metanode for a subpath of TPD


vxrlink - Perform Volume Manager rlink operations

    Usage: vxrlink [-g diskgroup] [-r rvg] keyword arg ...
Recognized keywords:
    assoc rvg rlink
    dis rlink
    [-a|-c checkpoint|-f] att rlink
    det rlink
    [-c checkpoint|-w] pause rlink
    resume rlink
    -c checkpoint restore rlink
    recover rlink
    [-i interval [-t timestamp_freq]] [-T] status rlink
    [-i interval [-t timestamp_freq]] [-e] stats rlink
    verify {rlink|rvg}
    cplist rlink
    [-T] updates rlink
    -c checkpoint checkdelete rlink


vxrvg - Perform Volume Manager rvg operations

    Usage: vxrvg [-g diskgroup] [-fr] [-F | -M | -N] [-c checkpoint] [-S|-F] [-P prefix | -a] [-p] [-1] [-i interval [-t timestamp_freq] [-C count]] [-o keepcache] keyword arg ...
Recognized keywords:
    [-f] [-g diskgroup] recover rvg
    [-f] [-g diskgroup] start rvg
    [-f] [-g diskgroup] stop rvg
    [-f] [-g diskgroup] -c checkpoint checkstart rvg
    [-f] [-g diskgroup] checkend rvg
    [-f] [-g diskgroup] -c checkpoint checkdelete rvg
    [-g diskgroup] resync rvg
    [-g diskgroup] cplist rvg
    [-g diskgroup] {-F [-r] | -M | -N} makeprimary rvg [rlink]
    [-g diskgroup] makesecondary rvg [rlink]
    [-g diskgroup] [-S|-F] [-P prefix] snapshot rvg
    [-g diskgroup] [-p] [-P prefix | -a] [-f] snapback rvg
    [-g diskgroup] [-f] [-P prefix] snaprestore rvg
    [-g diskgroup] snapprint rvg
    [-g diskgroup] [-P prefix] snaprefresh rvg
    [-g diskgroup] [-P prefix] [-o keepcache] snapdestroy rvg
    [-g diskgroup] set logowner=on|off rvg
    [-g diskgroup] [-i interval [-t timestamp_freq] [-C count]] [-z] stats rvg
    [-g diskgroup] [-1] getdatavols rvg
    [-g diskgroup] [-1] getrlinks rvg


vxrsync -h[elp]
vxrsync [-noreport] [-reportinterval ] \
         [-full] [-blocksize|-bs ] \
         [-timeout ] [-blockgroupcount|-bc ] \
         [-bandwidth_limit ]\
         [-use ] -to  [[]...] [-nomt]\
         -for|-g 
vxrsync -verify|-quick[verify] [-noreport] \
         [-reportinterval ] [-blocksize|-bs ] \
         [-timeout ] [-blockgroupcount|-bc ] \
         [-bandwidth_limit ]\
         [-use ] -with  [[]...] [-nomt]\
         -for|-g 


vxassist - Perform simple volume administration

    Usage: vxassist [-g diskgroup] [-U usetype] [-t taskid] [-d file] [-E lang_spec_file] [-nbf] [-o verify | override | ordered ]... keyword arg ...
Recognized keywords:
    make volume-name len [attrs...]
    relayout {volume-name|plex-name} [attrs...]
    convert volume-name [attrs...]
    mirror volume-name [attrs...]
    addlog volume-name [attrs...]
    move volume-name storage-spec ... [attrs...]
    growto volume-name new-length [attrs...]
    growby volume-name length-change [attrs...]
    shrinkto volume-name new-length [attrs...]
    shrinkby volume-name length-change [attrs...]
    snapstart [nmirror=] volume-name [attrs...]
    snapwait volume-name
    snapshot [comment=] [nmirrors=N] volume-name [snapshot-name]
    snapback [nmirrors=N] replica-volume
    snapprint [volume-name]
    snapclear volume-name [ snap-name ]
    snapabort volume-name
    remove {volume|mirror|log} volume-name [storage-spec ...] [attrs...]
    [-p] maxsize [attrs...]
    [-p] maxgrow volume-name [attrs...]

Testo: Comandi VxVM
Data: 14 Febbraio 2008
Versione: 1.0.1 - 14 Febbraio 2008
Autore: mail@meo.bogliolo.name