Bug#354733: lvm2 doesn't recognize second volume group after update

Berthold Cogel cogel at rrz.uni-koeln.de
Tue Feb 28 15:47:37 UTC 2006


Package: lvm2
Version: 2.02.02-1
Severity: important

After updating lvm2 a second volume group is not recognized after
reboot. System hangs because of mount failure. This bug can render a
system useless.

The problem can be reproduced by downgrading to lvm2 2.02.01-3 and
redoing the update.

Problem can be fixed temporarily by downgrading lvm2 to version
2.02.01-3. I'm using vanilla kernel 2.6.14.5 and 2.6.15.4.

Attached is a protocol of what I did to reproduce the bug.

Regards,
Berthold Cogel

---- :< ----------------

wonderland:~# uname -a
Linux wonderland 2.6.14.5 #1 PREEMPT Tue Dec 27 21:00:51 CET 2005 i686
GNU/Linux
wonderland:~# dpkg -l|grep lvm
ii  lvm-common                         1.5.20
    The Logical Volume Manager for Linux (common files)
ii  lvm2                               2.02.01-3
    The Linux Logical Volume Manager
wonderland:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg1" using metadata type lvm1
  Found volume group "vg2" using metadata type lvm1
wonderland:~# vgdisplay -v
    Finding all volume groups
    Finding volume group "vg1"
  --- Volume group ---
  VG Name               vg1
  System ID             wonderland1103667984
  Format                lvm1
  VG Access             read/write
  VG Status             resizable
  MAX LV                256
  Cur LV                4
  Open LV               4
  Max PV                256
  Cur PV                1
  Act PV                1
  VG Size               16,72 GB
  PE Size               32,00 MB
  Total PE              535
  Alloc PE / Size       535 / 16,72 GB
  Free  PE / Size       0 / 0
  VG UUID               whllYN-lEkU-N27D-I3gK-cKTB-CQYZ-2y2rCE

  --- Logical volume ---
  LV Name                /dev/vg1/lv_tmp
  VG Name                vg1
  LV UUID                000000-0000-0000-0000-0000-0000-000000
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                2,00 GB
  Current LE             64
  Segments               1
  Allocation             normal
  Read ahead sectors     1024
  Block device           254:0

  --- Logical volume ---
  LV Name                /dev/vg1/lv_var
  VG Name                vg1
  LV UUID                000000-0000-0000-0000-0000-0000-000001
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                2,50 GB
  Current LE             80
  Segments               1
  Allocation             normal
  Read ahead sectors     1024
  Block device           254:1

  --- Logical volume ---
  LV Name                /dev/vg1/lv_home
  VG Name                vg1
  LV UUID                000000-0000-0000-0000-0000-0000-000002
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                4,00 GB
  Current LE             128
  Segments               1
  Allocation             normal
  Read ahead sectors     1024
  Block device           254:2

  --- Logical volume ---
  LV Name                /dev/vg1/lv_usr
  VG Name                vg1
  LV UUID                000000-0000-0000-0000-0000-0000-000003
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                8,22 GB
  Current LE             263
  Segments               1
  Allocation             normal
  Read ahead sectors     1024
  Block device           254:3

  --- Physical volumes ---
  PV Name               /dev/hda13
  PV UUID               Y4osOr-B1db-f63y-aNoP-rDUv-n8ZP-bGqdZX
  PV Status             allocatable
  Total PE / Free PE    535 / 0

    Finding volume group "vg2"
  --- Volume group ---
  VG Name               vg2
  System ID             wonderland1109113009
  Format                lvm1
  VG Access             read/write
  VG Status             resizable
  MAX LV                256
  Cur LV                1
  Open LV               0
  Max PV                256
  Cur PV                1
  Act PV                1
  VG Size               74,47 GB
  PE Size               32,00 MB
  Total PE              2383
  Alloc PE / Size       1600 / 50,00 GB
  Free  PE / Size       783 / 24,47 GB
  VG UUID               YY0Zdn-Cdkv-glwP-XQRZ-d1to-ZFjG-iefqHC

  --- Logical volume ---
  LV Name                /dev/vg2/lv_video
  VG Name                vg2
  LV UUID                000000-0000-0000-0000-0000-0000-000000
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                50,00 GB
  Current LE             1600
  Segments               1
  Allocation             normal
  Read ahead sectors     1024
  Block device           254:4

  --- Physical volumes ---
  PV Name               /dev/hdg1
  PV UUID               kHiqL7-4EaU-mAFB-q9Ms-qv52-JKPw-Eqhdro
  PV Status             allocatable
  Total PE / Free PE    2383 / 783

wonderland:~# cd /usr/src
wonderland:/usr/src# dpkg -i lvm2_2.02.02-1_i386.deb
(Lese Datenbank ... 187707 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereiten zum Ersetzen von lvm2 2.02.01-3 (durch
lvm2_2.02.02-1_i386.deb) ...
Entpacke Ersatz für lvm2 ...
Richte lvm2 ein (2.02.02-1) ...
Installiere neue Version der Konfigurationsdatei /etc/lvm/lvm.conf ...
Backing up any LVM2 metadata that may exist...done.

wonderland:/usr/src# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg1" using metadata type lvm1
wonderland:/usr/src# dpkg -i --force-downgrade lvm2_2.02.01-3_i386.deb
dpkg - Warnung: deaktualisiere lvm2 von 2.02.02-1 zu 2.02.01-3.
(Lese Datenbank ... 187708 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereiten zum Ersetzen von lvm2 2.02.02-1 (durch
lvm2_2.02.01-3_i386.deb) ...
Entpacke Ersatz für lvm2 ...
Richte lvm2 ein (2.02.01-3) ...
Installiere neue Version der Konfigurationsdatei /etc/lvm/lvm.conf ...
Backing up any LVM2 metadata that may exist...done.

wonderland:/usr/src# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg1" using metadata type lvm1
  Found volume group "vg2" using metadata type lvm1






More information about the pkg-lvm-maintainers mailing list