La commande 'readvgda' permet de consulter les informations présentes dans la VGDA d'un disque utilisé.
La syntaxe de base est la suivante :
Usage: readvgda [-hqldps | -t | -m <lv> [-c#] | -v# ] <file|disk>
-h header, print raw first block of the disk
-q queryvg, print 'lqueryvg' like data
-l lv, format vgda to show 'lslv' and 'lslv -m' data
-d (default) debug, print vgsa & vgda structures.
-p primary, only print info from and about primary MD areas
-s secondary, only print info from and about secondary MD areas
-m map, format vgda to print lv map for specified lv
-t timestamps, only print timestamps (overrides other options).
-c copy, for use with -m, only print map for this copy
-v verbosity #, print outputs for snap (primary areas only):
-o query ODM for PV names, VG names, and other ODM attributes.
file if file isn't found, will try /dev/file
En utilisant les différentes options, on obtient plus ou moins d'informations.
Exemple :
# readvgda -q hdisk0
.....
..... Wed Jan 8 22:16:13 CET:2014
..... readvgda -q hdisk0
..... readvgda_file: /dev/rhdisk0
..... readvgda_type: smallvg
..... readvgda_ver: 3
.....
============= B: QUERYVG /dev/rhdisk0 0 =============
VGID: 00ced5ca00004c00000001436825cf3b
Max LVs: 256
PP Size: 28
(
Les valeurs et correspondances de PP
30 = 1024 Mo (1gb)
29 = 512Mo
28 = 256Mo
27 = 128Mo
26 = 64Mo
25 = 32Mo
24 = 16Mo
23 = 8 Mo
22 = 4Mo
21 = 2Mo
20 = 1Mo
)
Free PPs: CALC
LV count: 12
PV count: 1
Total VGDAs: 2
Conc Allowed: 0
MAX PPs per PV: 1016
MAX PVs: 32
Quorum (disk): 1
Autovaryon: 1
Conc Autovaryon: 0
Varied on Conc: LVDD
Logical: LVID lvname state
00ced5ca00004c00000001436825cf3b.1 hd5 CALC
00ced5ca00004c00000001436825cf3b.2 hd6 CALC
00ced5ca00004c00000001436825cf3b.3 hd8 CALC
00ced5ca00004c00000001436825cf3b.4 hd4 CALC
00ced5ca00004c00000001436825cf3b.5 hd2 CALC
00ced5ca00004c00000001436825cf3b.6 hd9var CALC
00ced5ca00004c00000001436825cf3b.7 hd3 CALC
00ced5ca00004c00000001436825cf3b.8 hd1 CALC
00ced5ca00004c00000001436825cf3b.9 hd10opt CALC
00ced5ca00004c00000001436825cf3b.10 hd11admin CALC
00ced5ca00004c00000001436825cf3b.11 lg_dumplv CALC
00ced5ca00004c00000001436825cf3b.12 livedump CALC
Physical: PVID #vgdas pvstate stale
00ced5ca22fc1fa1 2 1 CALC
Total PPs: 149
LTG size (disk): 128
HOT SPARE: 0
AUTO SYNC: 0
VG PERMISSION: LVDD
SNAPSHOT VG: 0
IS_PRIMARY VG: 0
PSNFSTPP: CALC
VARYON MODE: LVDD
VG Type: 0
Max PPs: 32512
INFINITE RETRY: NO
VARYON STATE: 0
============= E: QUERYVG =============