[linux-lvm] bug in lvs reporting -- version 2.02.07 Debian

ben scott benscott at nwlink.com
Mon Apr 9 05:23:41 UTC 2007


I have found a couple of times in testing that lvs will sometimes report the 
same logical volume 2 or more times when output options are used. It seems to 
happen with volumes that are a large percentage of the total group size. 
Below I give an example. Notice how "lvs" with no options works fine but with 
options doesn't.


~/benscott/myprog# vgs
  VG    #PV #LV #SN Attr   VSize   VFree
  test2   4   6   0 wz--n-  14.29G 328.00M
  vg1     2   1   0 wz--n- 147.18G   1.18G

~/benscott/myprog# lvs
  LV       VG    Attr   LSize    Origin Snap%  Move Log Copy%
  bigtest1 test2 -wi-a-  900.00M
  bigtest2 test2 -wi-a-  100.00M
  bigtest3 test2 -wi-a- 1000.00M
  bigtest4 test2 -wi-a-    1.27G
  bigtest5 test2 -wi-a- 1000.00M
  bigtest6 test2 -wi-a-    9.77G
  lv1      vg1   -wi-ao  146.00G

~/benscott/myprog# lvs  -o +stripes,stripesize
  LV       VG    Attr   LSize    Origin Snap%  Move Log Copy%  #Str Stripe
  bigtest1 test2 -wi-a-  900.00M                                  1     0
  bigtest2 test2 -wi-a-  100.00M                                  1     0
  bigtest3 test2 -wi-a- 1000.00M                                  1     0
  bigtest4 test2 -wi-a-    1.27G                                  1     0
  bigtest5 test2 -wi-a- 1000.00M                                  1     0
  bigtest6 test2 -wi-a-    9.77G                                  1     0
  bigtest6 test2 -wi-a-    9.77G                                  1     0
  bigtest6 test2 -wi-a-    9.77G                                  1     0
  bigtest6 test2 -wi-a-    9.77G                                  1     0
  lv1      vg1   -wi-ao  146.00G                                  2 32.00K

# lvs  --version
  LVM version:     2.02.07 (2006-07-17)
  Library version: 1.02.12 (2006-10-13)
  Driver version:  4.7.0

These are the physical volumes involved:
  /dev/hdh1  test2 lvm2 a-   952.00M 328.00M
  /dev/hdh2  test2 lvm2 a-     1.39G      0
  /dev/hdh5  test2 lvm2 a-     7.18G      0
  /dev/hdh6  test2 lvm2 a-     4.79G      0




More information about the linux-lvm mailing list