Bug#409243: Happens for me too

Tim Woodall debian at woodall.me.uk
Sun Apr 29 14:44:01 UTC 2007


I've had exactly the same problem.

Upgraded to etch with 2.4 kernel - everything working fine.

Upgraded to 2.6 kernel - won't boot.

In the rescue shell, vgchange -ay vg0 gives "no volumes group found".

Everything is at the latest version in etch.

partition table is /dev/hda1 for /boot
/dev/hda2 for lvm2

I had another identical machine that I'd also upgraded to etch with no
problem. The difference is that the other machine was set up with the
two partitions on raid1.
(Only one harddisk, the second disk is missing, I set it up like this so
that I could eventually have the machine on raid1 once I get a bigger
case)

So I picked the initrd from the working machine and tried it on the
failing machine. I got an error about cannot run fsck on /dev/hda1 but
the machine eventually booted up fine.

I rebuilt /boot on raid1 and hacked /dev/hda2 to be /dev/md1
without actually rebuilding which seems to have worked.

So now the machine boots fine in both 2.4 and 2.6 kernels.

tim at feynman:~$ cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 hda2[1]
       78011520 blocks [2/1] [_U]

md0 : active raid1 hda1[1]
       136448 blocks [2/1] [_U]

unused devices: <none>

feynman:~# pvdisplay
   --- Physical volume ---
   PV Name               /dev/md1
   VG Name               vg0
   PV Size               74.39 GB / not usable 0
   Allocatable           yes
   PE Size (KByte)       4096
   Total PE              19045
   Free PE               4045
   Allocated PE          15000
   PV UUID               F06AQv-OVlE-iWtJ-31S6-uHKM-yyN7-wFQTZv

feynman:~# vgdisplay
   --- Volume group ---
   VG Name               vg0
   System ID
   Format                lvm2
   Metadata Areas        1
   Metadata Sequence No  1384
   VG Access             read/write
   VG Status             resizable
   MAX LV                0
   Cur LV                7
   Open LV               7
   Max PV                0
   Cur PV                1
   Act PV                1
   VG Size               74.39 GB
   PE Size               4.00 MB
   Total PE              19045
   Alloc PE / Size       15000 / 58.59 GB
   Free  PE / Size       4045 / 15.80 GB
   VG UUID               qmBCTP-vIh6-h5AU-jT8a-o31r-48HB-heEAio

feynman:~# mdadm -D /dev/md0
/dev/md0:
         Version : 00.90.03
   Creation Time : Sat Apr 28 19:06:01 2007
      Raid Level : raid1
      Array Size : 136448 (133.27 MiB 139.72 MB)
     Device Size : 136448 (133.27 MiB 139.72 MB)
    Raid Devices : 2
   Total Devices : 1
Preferred Minor : 0
     Persistence : Superblock is persistent

     Update Time : Sun Apr 29 08:21:25 2007
           State : clean, degraded
  Active Devices : 1
Working Devices : 1
  Failed Devices : 0
   Spare Devices : 0

            UUID : 08972485:1bf5fbf2:efc3b31c:59f53a25 (local to host feynman.home.woodall.me.uk)
          Events : 0.52

     Number   Major   Minor   RaidDevice State
        0       0        0        0      removed
        1       3        1        1      active sync   /dev/hda1

feynman:~# mdadm -D /dev/md1
/dev/md1:
         Version : 00.90.03
   Creation Time : Mon Jan  1 21:52:19 2007
      Raid Level : raid1
      Array Size : 78011520 (74.40 GiB 79.88 GB)
     Device Size : 78011520 (74.40 GiB 79.88 GB)
    Raid Devices : 2
   Total Devices : 1
Preferred Minor : 1
     Persistence : Superblock is persistent

     Update Time : Sun Apr 29 15:40:42 2007
           State : clean, degraded
  Active Devices : 1
Working Devices : 1
  Failed Devices : 0
   Spare Devices : 0

            UUID : 98098d82:05ea0a3f:656f116f:b86d5f02
          Events : 0.12638

     Number   Major   Minor   RaidDevice State
        0       0        0        0      removed
        1       3        2        1      active sync   /dev/hda2

Tim.





More information about the pkg-lvm-maintainers mailing list