You are not logged in.

#1 2014-04-13 10:08:21

Rexilion
Member
Registered: 2013-12-23
Posts: 784

lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

After upgrading today, systemD timed out when waiting for swap. Turns out that downgrading lvm2 to it's previous version fixes this.

I tried moving /etc/lvm to /var/etc/lvm to make it rw all the time since I have /etc mounted ro. This did not help.

Anyone else suffering from this? Between this and the previous vanilla version is 500 commits in 3 months. WoW.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#2 2014-04-13 21:58:44

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

Was the kernel updated at the same time? If yes, did you recreate your initramfs?

I have noticed that lvm2 was installed after the kernel so I suppose the previous version of lvm2 would end up in the initramfs, I don't know if it matters but since it is lvm2 which is causing you trouble it is worth a try.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2014-04-14 13:34:57

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

On one box I updated the kernel, not on the other. Both suffered from this issue.

I already contacted them on IRC. Someone replied it was systemD's fault. But I promised  a bisect. I'm going to that right now btw...

Last edited by Rexilion (2014-04-14 17:24:08)


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#4 2014-04-14 16:28:43

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

Found the commit:

...

commit 816197aaabbd41dd85d7728a6fd2992c148e124f
Author: Petr Rockai <me@mornfall.net>
Date:   Fri Mar 14 03:04:09 2014 +0100

    lvmetad: Indicate whether pv_found caused the VG to change.

commit 5eef269f7719089db2474b3f732f3630467d1bbc
Author: Petr Rockai <me@mornfall.net>
Date:   Fri Mar 14 02:40:20 2014 +0100

    lvmetad: Also return vgname in reply to pv_found requests.

...

816197aaa fails, 5eef269f77 works.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#5 2014-05-03 11:39:56

Wojo
Member
Registered: 2010-02-12
Posts: 17

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

Is there any other workaround available except downgrading lvm2? (See: LVM2 VG residing on a software RAID is not being activated during boot)

Offline

#6 2014-05-05 09:30:49

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

I have currently migrated everything to systemd in my initrd which works around the issue as well. Downside is, there is no resume support. But I'm working on that and it's almost finished.

Altough I have to admit I kinda f00barred the bugreport because I used a custom script to build my rootfs. I did not mention this and now people are a bit displeased.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#7 2014-05-05 18:28:21

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

I have the same problem:
https://bbs.archlinux.org/viewtopic.php?id=181109

And downgrade to 2.02.105-2 did not helped. From 2 boots so far, 1 it booted, 1 failed in the same way.

I know there is quite extensive /etc/lvm/lvm.conf, perhaps some changes into the file are needed? Maybe explicitely list logical volumes to be activated?

Fortunatelly, my root fs is directly on raid1 - without lvm - so it is not affected....

Offline

#8 2014-05-05 18:49:57

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

I'm starting to think that RAID setups are suffering from something else...

Did you rebuild initrd after downgrading?


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#9 2014-05-05 19:03:11

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

Rexilion wrote:

Did you rebuild initrd after downgrading?

of course..

But, I think lvm from system is used here not from initrd (but I am no expert here). Also important detail is that I have another lvm volume group with logical volumes but not on raid, and these are activated and mounted on boot all right...

it is quite frustrating for me - raid1 was to provide rock-solid system and now it cant even boot without manual intervention smile

Offline

#10 2014-05-05 19:45:45

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

I just rebooted in it went allright.

Only change I did was I fixed "systemd[1]: Failed to start Remount Root and Kernel File Systems." issue - I removed "data=writeback" from a line for / in /etc/fstab.

???

Luck, or relation? Next boots will show smile

=UPDATE=
Another boot - and now it failed...
And I am getting used to this way of booting smile

Last edited by TiborB (2014-05-05 20:10:20)

Offline

#11 2014-05-05 23:59:59

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

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

My /var is an LV on a VG which is made up of a single raid 5 device. I just updated to 2.02.106-2, but never had any issues with 106-1. Is there anything I can provide that might help out?


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

#12 2014-05-06 21:40:29

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: lvm regression (2.02.105-2 -> 2.02.106-1) -> systemd fails swap

Well, I just gave up. I got rid of lvm on raid1 and created fs directly on raid - at the end it is not that bad solution smile

Offline

Board footer

Powered by FluxBB