You are not logged in.

#1 2012-02-15 02:36:56

Effrafax
Member
Registered: 2012-02-15
Posts: 13

[SOLVED] LVM issues after upgrade to kernel 3.2.5

Hello All,

My main machine has 4 x 500 GB HDDs in a RAID0 configuration with LVM on top of that.  I recently migrated from Kubuntu to Arch, and all was working well.

This morning I did a pacman -Syu which pulled down the latest kernel.  However, if failed to boot, with the error:

     No volume groups found

after running the LVM2 hook.

I booted the Arch install CD, and ran:

    modprobe dm-mod
    vgscan
    vgchange -ay

to update the LVM information.  All worked fine.  I mounted the root partition plus /boot and chrooted to the installed system, then ran mkinitcpio -p linux in case something had gone wrong with the initramfs.

No joy. Still fails in the same way.

Anyone else have this problem?  Any ideas how to fix?  File a bug report?

Thanks,
Effrafax.

Last edited by Effrafax (2013-03-21 09:47:48)

Offline

#2 2012-02-15 17:08:25

warf
Member
Registered: 2012-02-15
Posts: 1

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Same problem here.

It appears to be related to some recent change to mkinitcpio that moved the udev hook into the udev package. Booting into the install CD, re-assembling the RAID/LVM partitions and chrooting into the old system all works fine, but when I run 'mkinitcpio -p linux' to rebuild the ramdisk, I get an error about the udev hook being missing. The hook is present of course in /lib/initcpio/hooks, but mkinitcpio can't seem find it for some reason.

Have read some old threads (such as: https://bbs.archlinux.org/viewtopic.php?id=124037) that seem to suggest downgrading mkinitcpio might make a difference. Haven't had a chance to try that yet however.

Last edited by warf (2012-02-15 17:09:14)

Offline

#3 2012-02-15 17:57:27

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

warf wrote:

Same problem here.

It appears to be related to some recent change to mkinitcpio that moved the udev hook into the udev package. Booting into the install CD, re-assembling the RAID/LVM partitions and chrooting into the old system all works fine, but when I run 'mkinitcpio -p linux' to rebuild the ramdisk, I get an error about the udev hook being missing. The hook is present of course in /lib/initcpio/hooks, but mkinitcpio can't seem find it for some reason.

Have read some old threads (such as: https://bbs.archlinux.org/viewtopic.php?id=124037) that seem to suggest downgrading mkinitcpio might make a difference. Haven't had a chance to try that yet however.

Please do not downgrade. If anything, you simply need to reinstall udev. mkinitcpio looks for hooks in /lib/initcpio/install, not in hooks. The hooks/ directory are runtime hooks sourced by the install scriptlets and are never directly accessed.

Offline

#4 2012-02-16 00:14:45

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Thanks, will try that shortly and report back.

Cheers,
Effrafax.

Offline

#5 2012-02-16 04:45:50

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Okay, got the machine running in the chroot environment, did a "pacman -Syu" then "pacman -S udev linux".  No errors reported, and all completed successfully, so I rebooted, in hope . . .

No joy, still got the same 'no volume groups found' error.

Any and all ideas welcome, thanks.

Offline

#6 2012-02-16 05:39:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Did you try regenerating the initramfs again (after checking the hooks were all in order)?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-02-16 07:35:47

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

I let the reinstall of the linux kernel take care of that.  It completed without error.  Didn't see any point in repeating it, but will try later.

Offline

#8 2012-02-16 10:31:14

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Okay, now I'm really confused.

I noticed that LVM2 had also been updated at the same time as the 3.2.5 kernel. So I booted the CD again, chrooted and downgraded LVM2, reran mkinitcpio and rebooted.  Same old.

Next step, downgraded kernel to 3.2.4.  Same old.

Something else has changed somewhere.  More research required.  Will poke and prod it some more.

Offline

#9 2012-02-16 11:30:27

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Same error after pacman -Syu and getting the new kernel.

I guess my beginner luck helped me.

I rebooted the install cd, did chroot procedure, and
#mkinitcpio -p linux

and upon reboot, it worked!

This, after doing my first lvm install less than 24 hours ago.

Thanks
Steve.


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#10 2012-02-17 06:26:32

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

I had some hopes when I saw that kernel 3.2.6-2 had been released, but nothing has changed,  Still fails to find the volume groups.

Offline

#11 2012-02-17 07:12:29

Avant-texte
Member
Registered: 2012-02-13
Posts: 136

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

There've been a number of problems since the 3.25 upgrade. At first it seamed limited to just a few wireless NIC drivers, but now I'm wondering if the recent switch in kenel module handling is to blame.

Offline

#12 2012-02-17 07:56:11

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

Interesting, I'll have to check if the Wi-Fi on my ThinkPad is still working okay.

Offline

#13 2012-02-22 04:04:11

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

No problems with the WiFi on my laptop, but then it is an older model.

Still banging my head with the LVM problem, except it's not a problem with LVM, but with RAID.  When the system drops to the shell on failing to find the root disc, a 'cat /proc/mdstat' shows that there are no RAID drives configured.  The mdadm hook is loading correctly with no errors.

Any ideas what might be stopping it working correctly?

Offline

#14 2012-03-09 14:01:06

Tha-Fox
Member
Registered: 2010-11-25
Posts: 20
Website

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

I've got the same problem. Earlier kernel upgrades went fine but after the last one it can't find neither RAID arrays nor volume groups. I tried chrooting and recreating initramfs but no luck. I don't know if it matters but I'm using Syslinux as a bootloader.

When being dropped to a shell, I can't see any arrays and mdassemble tells there are no arrays found in the config file.

Last edited by Tha-Fox (2012-03-09 14:03:43)

Offline

#15 2012-03-10 09:59:18

Effrafax
Member
Registered: 2012-02-15
Posts: 13

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

SOLVED:

I've been meaning to update this, as I've now resolved the problem.  All I did was to add /etc/mdadm.conf as a file in mkinitcpio.conf.  For some reason this seems to force the init to load the the RAID properly, despite the partitions being set to type FD.

Try that and run mkinitcpio again.

Last edited by Effrafax (2012-04-19 02:58:43)

Offline

#16 2013-03-21 07:37:08

xRemaLx
Member
Registered: 2013-03-21
Posts: 1

Re: [SOLVED] LVM issues after upgrade to kernel 3.2.5

In my case it's so quick load what /sbin/mdassemble failed with error code 2. All I did was to edit hook /lib/initcpio/hooks/mdadm and add sleep 1 before /sbin/mdassemble:

...
# assemble everything
[ -s "$mdconfig" ] && sleep 1 && /sbin/mdassemble
...

Switching to mdadm_udev solved the problem for me.

Last edited by xRemaLx (2013-03-21 08:04:41)

Offline

Board footer

Powered by FluxBB