You are not logged in.

#1 2013-02-13 15:38:52

cs
Member
Registered: 2013-02-13
Posts: 9

Problem with recent changes to LVM2

Hi,

the recent update broke my system. I did everything as described in the anouncement.

- udev hook is used
- the lvm.conf was properly updated
- lvm wait is not used

before rebooting I also did:

If you run pacman -Syu and update device-mapper, linux and lvm2 at the same time, you will get an error message that /sbin/dmsetup is missing. Run mkinitcpio -p linux again after the update to avoid any problems.

I have a LVM inside a luksCrypt container. After rebooting, I am asked for my password and then goes to recovery with the message:
The root device  /dev/mapper/[my volume]-root  could not be found.

I neither changed my hooks in mkinitcpio nor did I modify their order.

I used a rescue system to both recreate (multiple times) the grub config and linux image following the wiki (https://wiki.archlinux.org/index.php/Pa … onger_boot) without success.

Any ideas?
Thanks!

Last edited by cs (2013-02-13 15:52:20)

Offline

#2 2013-02-13 16:27:35

cs
Member
Registered: 2013-02-13
Posts: 9

Re: Problem with recent changes to LVM2

I have found a temprary fix:

in the recovery shell:

lvm vgchange -ay [groupvolume]

fixes it! Any ideas how to fix this permanently?

Last edited by cs (2013-02-13 16:31:48)

Offline

#3 2013-02-13 17:01:18

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problem with recent changes to LVM2

- the lvm.conf was properly updated

What did you update, exactly? Virtually everyone uses the default configuration and shouldn't need to change anything.

Offline

#4 2013-02-13 17:03:09

cs
Member
Registered: 2013-02-13
Posts: 9

Re: Problem with recent changes to LVM2

brain0 wrote:

- the lvm.conf was properly updated

What did you update, exactly? Virtually everyone uses the default configuration and shouldn't need to change anything.

Yes, I meant that no .pacnew file was created because pacman updated it (because I did not modify it previously).

Offline

#5 2013-02-13 17:07:51

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problem with recent changes to LVM2

That's good. What do your HOOKS line and kernel command line look like?

Offline

#6 2013-02-13 17:24:57

cs
Member
Registered: 2013-02-13
Posts: 9

Re: Problem with recent changes to LVM2

they are

base udev modconf block encrypt lvm2 filesystems keyboard fsck

and

/vmlinuz-linux root=/dev/mapper/vgroup-root ro cryptdevice=/dev/sda2:vgroup i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 quiet init=/usr/lib/systemd/systemd

Last edited by cs (2013-02-13 17:27:23)

Offline

#7 2013-02-13 17:27:18

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problem with recent changes to LVM2

Now I am confused - I have been using the exact same setup for months without the slightest trouble.

Offline

#8 2013-02-13 17:27:57

cs
Member
Registered: 2013-02-13
Posts: 9

Re: Problem with recent changes to LVM2

brain0 wrote:

Now I am confused - I have been using the exact same setup for months without the slightest trouble.

me too! :-S I changed nothing!

Offline

#9 2013-02-13 17:30:23

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

Re: Problem with recent changes to LVM2

See also: https://bbs.archlinux.org/viewtopic.php?id=158012 and https://bbs.archlinux.org/viewtopic.php?id=158019

Both posters read the news, made the requisite changes, rebuilt their initrd and pfft...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2013-02-13 18:22:19

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problem with recent changes to LVM2

I am unable to get this setup to NOT work, on both my RAID and my non-RAID + LUKS setup. Right now, I can't see why this could possibly fail.

Offline

#11 2013-02-13 19:04:13

cs
Member
Registered: 2013-02-13
Posts: 9

Re: Problem with recent changes to LVM2

my MODULES array is empty... maybe there's a problem?

Offline

#12 2013-02-13 19:07:41

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problem with recent changes to LVM2

my MODULES array is empty... maybe there's a problem?

No.

Offline

#13 2013-02-13 19:14:48

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problem with recent changes to LVM2

To take the obscurity to the extreme, I just installed a test VM with LVM on top of LVM: http://i.imgur.com/orTAktt.png Other than adding 'lvm2' to the HOOKS and setting root=/dev/vg2/root in the bootloader, no other tweaking is required to make this boot.

Back to topic: when you get dropped in the ramfs emergency shell, can you execute udevadm info --query=all /dev/mapper/vgroup? It should list some properties, among those ID_FS_TYPE=LVM2_member.

Offline

#14 2013-02-14 07:34:52

tranqil
Member
Registered: 2012-09-06
Posts: 31

Re: Problem with recent changes to LVM2

Hello, I have an problem similar to this one. But my boot setup is slightly different, because I use my own mkinitcpio hook to encrypt my disk from smartcard.
I have two GPT-partitions on the harddisk (boot and a lvm "physical volume"), the smartcard hook only encrypts the pv and normally without the last changes to udev and lvm in the boot procedure, everything is working and my system boots perfect.
But now I got dropped in the initrd rescue shell, after entering my passphrase to access the plugged in smartcard which encrypts my disk. The strange part is, if I enter "exit" to continue the boot process, everything is working as expected.

The order of my hooks in mkinitcpio.conf are the following: HOOKS="base udev autodetect block keymap smartcard encrypt lvm2 resume filesystems keyboard fsck"
(The "encrypt" hook is only needed to add corresponding binaries to the initrd)

Maybe there is a change in when the system is scanned from lvm for new pv's? Or a timeout value is too low.
The main problem is, that I can't switch the "smartcard" hook easily to 'early_run' because it depends on other later hooks (to detect the smartcard reader).


Sorry for my english, I hope this is understandable.

Moved to this thread.

Last edited by tranqil (2013-02-14 08:34:25)

Offline

#15 2013-02-14 07:39:04

cs
Member
Registered: 2013-02-13
Posts: 9

Re: Problem with recent changes to LVM2

brain0 wrote:

Back to topic: when you get dropped in the ramfs emergency shell, can you execute udevadm info --query=all /dev/mapper/vgroup? It should list some properties, among those ID_FS_TYPE=LVM2_member.

Yes, all properties are shown and seem to be correct.

Offline

#16 2013-02-14 07:51:10

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

Re: Problem with recent changes to LVM2

See the main thread; there is a proposed fix there...
https://bbs.archlinux.org/viewtopic.php?id=158012


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#17 2013-02-14 08:00:48

tranqil
Member
Registered: 2012-09-06
Posts: 31

Re: Problem with recent changes to LVM2

Thank you jasonwryan for the hint, I don't found this thread first smile

Offline

Board footer

Powered by FluxBB