[linux-lvm] lvdisplay

John Cheng john_cheng71 at yahoo.com
Mon Dec 8 07:24:04 UTC 2003


hi all guru:

  Just writing a script now and confused by the output from different option.
first LVM is striped over 2 PV, lvdisplay -v report a size of 500M and -c option
report 1032192 kb. and second LVM is a linear LVM, while -v report size of 300M
and -c report 614400 kb. read through MAN page a few rounds and google over the net,
did not get too much detail of the formula for the computation. seek help from any
one here. thanks

-------------------first lvm output
-v option
--- Logical volume ---
LV Name                /dev/vg01/lvol1
VG Name                vg01
LV Write Access        read/write
LV Status              available
LV #                   1
# open                 0
LV Size                504 MB
Current LE             126
Allocated LE           126
Stripes                2
Stripe size (KByte)    4
Allocation             next free
Read ahead sectors     1024
Block device           58:0

   --- Distribution of logical volume on 2 physical volumes  ---
   PV Name                  PE on PV     reads      writes
   /dev/hdb1                63           0          2
   /dev/hdb2                63           0          0

   --- logical volume i/o statistic ---
   0 reads  2 writes

   --- Logical extents ---
   LE    PV                        PE     reads      writes
   00000 /dev/hdb1                 00000  0          2
   00001 /dev/hdb1                 00001  0          0
   00002 /dev/hdb1                 00002  0          0
   .....................................
  
-c option
/dev/vg01/lvol1:vg01:3:1:0:0:1032192:126:126:0:1024:58:0

---------------------------second LVM
--- Logical volume ---
LV Name                /dev/vg45/lv45
VG Name                vg45
LV Write Access        read/write
LV Status              available
LV #                   1
# open                 0
LV Size                300 MB
Current LE             75
Allocated LE           75
Allocation             next free
Read ahead sectors     1024
Block device           58:1

   --- Distribution of logical volume on 1 physical volume  ---
   PV Name                  PE on PV     reads      writes
   /dev/hdb4                75           0          2

   --- logical volume i/o statistic ---
   0 reads  2 writes

   --- Logical extents ---
   LE    PV                        PE     reads      writes
   00000 /dev/hdb4                 00000  0          2
   00001 /dev/hdb4                 00001  0          0
   00002 /dev/hdb4                 00002  0          0
   00003 /dev/hdb4                 00003  0          0
...................................................
-c option output
/dev/vg45/lv45:vg45:3:1:0:0:614400:75:75:0:1024:58:1


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/




More information about the linux-lvm mailing list