4.12 Interrogation des objets EVMS
Aller à la navigation
Aller à la recherche
On peut interroger tous les objets EVMS avec la commandes Query.
Interrogation des segments :
query:Segments Segment Name: cciss/c1d1p1 Major: 253 Minor: 36 Active: TRUE Segment Size: 135.00 GB Starting LBA: 63 Segment Type: Data
Recherche du segment constituant le users2vol
EVMS: q:chi,/dev/evms/users2vol
Segment Name: cciss/c0d22 Major: 254 Minor: 42 Active: TRUE Segment Size: 34.84 GB Starting LBA: 69204960 Segment Type: Data
Recherche du logical disk (lun) constituant le segment cciss/c0d22
EVMS: q:chi,cciss/c0d22
Logical Disk Name: cciss/c0d2 Major: 104 Minor: 32 Active: TRUE Logical Disk Size: 67.84 GB Logical Disk Geometry: 17434 Cylinders, 255 Heads, 32 Sectors per Track, 512 Bytes per Sector LBA of the 1024 Cylinder Limit: 8347680
==> on a donc la moitié de la lun utilisée par users2vol
Recherche des segments hébergés par la lun cciss/c0d2
EVMS: q:par,cciss/c0d2
Segment Name: cciss/c0d2_mbr Major: 0 Minor: 0 Active: FALSE Segment Size: 16.00 KB Starting LBA: 0 Segment Type: Metadata
br> Segment Name: cciss/c0d21 Major: 254 Minor: 40 Active: TRUE Segment Size: 33.00 GB Starting LBA: 32 Segment Type: Data
Segment Name: cciss/c0d22 (le user2vol précedent) Major: 254 Minor: 42 Active: TRUE Segment Size: 34.84 GB Starting LBA: 69204960 Segment Type: Data
quoi est dédié le segment cciss/c0d21
EVMS: q:par,cciss/c0d21
Volume Name: /dev/evms/usersvol Major: 254 Minor: 41 Active: TRUE Volume Size: 33.00 GB Minor Number: 41 Mount Point: /users Filesystem: ReiserFS Max Filesystem Size: 16.00 TB Min Filesystem Size: 10.87 GB
Liste des volumes d’un container
evms_query volumes -a <container>
Liste des régions d’un container
evms_query regions -a <container>
Une belle sortie formattée proprement avec la commande evms_query
evms_query objects -i |sed ‘s/^.*: //’| paste - - - - - - -| column -t
cciss/c0d0 Disk Data 104,0 143305920 LocalDskMgr cciss/c0d1 Disk Data 104,16 143305920 LocalDskMgr cciss/c0d2 Disk Data 104,32 143305920 LocalDskMgr mpath0 Disk Data 253,15 62914560 LocalDskMgr mpath1 Disk Data 253,16 62914560 LocalDskMgr mpath2 Disk Data 253,17 62914560 LocalDskMgr mpath3 Disk Data 253,18 62914560 LocalDskMgr mpath4 Disk Data 253,19 62914560 LocalDskMgr mpath5 Disk Data 253,20 62914560 LocalDskMgr mpath6 Disk Data 253,21 62914560 LocalDskMgr mpath7 Disk Data 253,22 62914560 LocalDskMgr cciss/c0d0_mbr Segment Metadata 0,0 63 DosSegMgr cciss/c0d0p1 Segment Data 253,0 273042 DosSegMgr cciss/c0d0p2 Segment Data 253,2 100036755 DosSegMgr cciss/c0d0p3 Segment Data 253,13 42989940 DosSegMgr cciss/c0d0_freespace1 Segment Freespace 0,0 6120 DosSegMgr lvm2/system/crashvol Region Data 253,3 50331648 LVM2 lvm2/system/homevol Region Data 253,4 262144 LVM2 lvm2/system/optvol Region Data 253,5 4194304 LVM2 lvm2/system/rootvol Region Data 253,6 2097152 LVM2 lvm2/system/sharevol Region Data 253,7 999424 LVM2 lvm2/system/softvol Region Data 253,8 17924096 LVM2 lvm2/system/swapvol Region Data 253,9 4194304 LVM2 lvm2/system/tmpvol Region Data 253,10 4997120 LVM2 lvm2/system/usrvol Region Data 253,11 10002432 LVM2 lvm2/system/varvol Region Data 253,12 4997120 LVM2 lvm2/system/Freespace Region Freespace 0,0 32768 LVM2 lvm2/users/usersvol Region Data 253,14 42967040 LVM2 lvm2/users/Freespace Region Freespace 0,0 16384 LVM2 lvm2/linuxbox/system Region Data 253,23 62898176 LVM2 lvm2/linuxbox/users2 Region Data 253,24 62898176 LVM2 lvm2/linuxbox/Freespace Region Freespace 0,0 0 LVM2 lvm2/linuxbox/system Region Data 253,25 62898176 LVM2 lvm2/linuxbox/users Region Data 253,26 62898176 LVM2 lvm2/linuxbox/Freespace Region Freespace 0,0 0 LVM2