You are not logged in.

#1 2012-04-24 14:59:35

ben-arch
Member
Registered: 2005-12-17
Posts: 120

[SOLVED] Full upgrade + LVM = Error on boot

Arch64
Just ran a full upgrade ( -Syu).

/boot has it's own ext2 partition
/home /var etc are managed with LVM on the reminder of the disk
(there are 3 other disks that are mounted on different points under /home/user_name.  They are not part of the LVM).

After upgrading, the LVM system will not load,  What I'm getting after GRUB is :

:: Starting udev...
done
:: Running Hook [udev]
:: Triggering events,,,done.
Waiting 10 seconds for device /dev/mapper/VolGroup0-lvRoot ...
ERROR: device '/dev/mapper/VolGroup0-lvRoot' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/mapper/VolGroup0-lvRoot'.

Any ideas ?

Thanks
Ben

Last edited by ben-arch (2012-04-24 17:37:23)

Offline

#2 2012-04-24 15:01:54

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] Full upgrade + LVM = Error on boot

Shouldn't you have a "Running Hook [LVM2]"?


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2012-04-24 15:25:41

ben-arch
Member
Registered: 2005-12-17
Posts: 120

Re: [SOLVED] Full upgrade + LVM = Error on boot

Well, up till this morning there WAS one off course a everything was booting OK.

Edit :
Problem is that I haven't added "lvm2" hook to mkinitcpio.conf.
Now that I have added it I understand that I have to run "mkinitcpio -p linux" in /boot to regenerate the kernel.

Problem is - how to do it ?
I've tried booting with Arch install media, then mounted my original /boot.
Entered it and ran "mkinitcpio -p linux"

What I'm getting is :

Preset linux does not exist. Exiting

And of course I can't  mount my original root as it is inside the said LVM :-(

Ideas any1 ?

Thanks

Last edited by ben-arch (2012-04-24 16:50:47)

Offline

#4 2012-04-24 16:49:37

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Full upgrade + LVM = Error on boot

Try using "mkinitcpio -k /boot/<yourkernel>"

PS: also make sure you mount your root partition since your mkinicpio.conf will need to be read from there.


Burninate!

Offline

#5 2012-04-24 16:54:21

ben-arch
Member
Registered: 2005-12-17
Posts: 120

Re: [SOLVED] Full upgrade + LVM = Error on boot

Thank @Gcool.

As I've edited my previous comment,I can't mounth my original root as it is INSIDE the LVM and I can't find a way to mount it with the installation media.

Ideas ?

Offline

#6 2012-04-24 17:03:55

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Full upgrade + LVM = Error on boot

If you load the "dm-mod" module and use vgscan + vgchange -ay to activate the volumes; you should be able to access/mount your lvm partitions from within the live environment.


Burninate!

Offline

#7 2012-04-24 17:37:48

ben-arch
Member
Registered: 2005-12-17
Posts: 120

Re: [SOLVED] Full upgrade + LVM = Error on boot

Thanks @Gcool

Offline

Board footer

Powered by FluxBB