FS#31306 - /home fails to mount with lvm, systemd and linux-3.4.9
Attached to Project:
Arch Linux
Opened by Damien Robert (Gondolin) - Monday, 27 August 2012, 15:24 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 29 August 2012, 10:12 GMT
Opened by Damien Robert (Gondolin) - Monday, 27 August 2012, 15:24 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 29 August 2012, 10:12 GMT
|
Details
Description:
I have my / and /home partitions in an lvm. Since kernel 3.4.9, systemd times out when trying to mount /home, but / is mounted just fine. This happen with systemd-188 and systemd-187. If I mount the partition by hand using mount rather than systemd, the /home partition is mounted fine. An fsck give no error and I see nothing strange in the logs apart from the systemd timeout. Going back to linux kernel-3.4.8 everything works fine again, be it with systemd-188 or systemd-187. This happen with two different laptops. Additional info: * package version(s): linux-3.4.9 + lvm and systemd * Logs: Aug 27 17:15:43 Gondolin systemd[1]: Job dev-disk-by\x2duuid-85f0acdd\x2db80f\x2˻d4f39\x2db2fc\x2d6f6521d380fb.device/start timed out. Aug 27 17:15:43 Gondolin systemd[1]: Job dev-disk-by\x2duuid-85f0acdd\x2db80f\x2˻d4f39\x2db2fc\x2d6f6521d380fb.swap/start failed with result 'dependency'. Aug 27 17:15:43 Gondolin systemd[1]: Job dev-disk-by\x2duuid-85f0acdd\x2db80f\x2˻d4f39\x2db2fc\x2d6f6521d380fb.device/start failed with result 'timeout'. /etc/fstab: UUID=85f0acdd-b80f-4f39-b2fc-6f6521d380fb swap swap defaults 0 0 UUID=a2221eb4-ff88-4ef4-af93-f1eca17a735e /home ext4 defaults,nobarrier,noauto,x-systemd.automount 0 1 UUID=e7775584-22a9-49a4-adf1-6afc8683a37a / ext4 defaults,nobarrier 0 1 (removing x-systemd.automount change nothing) Steps to reproduce: Upgrade to the latest arch kernel using an lvm partition for /home and booting with systemd |
This task depends upon
Closed by Dave Reisner (falconindy)
Wednesday, 29 August 2012, 10:12 GMT
Reason for closing: Not a bug
Wednesday, 29 August 2012, 10:12 GMT
Reason for closing: Not a bug
Aug 27 17:17:55 Gondolin systemd[1]: Job dev-disk-by\x2duuid-a2221eb4\x2dff88\x2d4ef4\x2daf93\x2df1eca17a735e.device/start timed out.
Aug 27 17:17:55 Gondolin systemd[1]: Job home.mount/start failed with result 'dependency'.
Aug 27 17:17:55 Gondolin systemd[1]: Job systemd-fsck@dev-disk-by\x2duuid-a2221eb4\x2dff88\x2d4ef4\x2daf93\x2df1eca17a735e.service/start failed with result 'dependency'.
Aug 27 17:17:55 Gondolin systemd[1]: Job dev-disk-by\x2duuid-a2221eb4\x2dff88\x2d4ef4\x2daf93\x2df1eca17a735e.device/start failed with result 'timeout'.
Aug 27 17:18:04 Gondolin systemd[1]: Job dev-disk-by\x2duuid-85f0acdd\x2db80f\x2d4f39\x2db2fc\x2d6f6521d380fb.device/start timed out.
Aug 27 17:18:04 Gondolin systemd[1]: Job dev-disk-by\x2duuid-85f0acdd\x2db80f\x2d4f39\x2db2fc\x2d6f6521d380fb.swap/start failed with result 'dependency'.
Aug 27 17:18:04 Gondolin systemd[1]: Job dev-disk-by\x2duuid-85f0acdd\x2db80f\x2d4f39\x2db2fc\x2d6f6521d380fb.device/start failed with result 'timeout'.
Do you have any interest in troubleshooting this on your own or am I going to be left here to guess? I have no reason to believe there a problem here until you can _reproduce_ it. Merely downgrading to 3.4.8 is not a strong sign of 3.4.9 being at fault.
I agree that there is no reason for 3.4.9 to be at fault, otherwise I would not be the only one having this bug, but I do have this problem on two different laptops, so I can reproduce it! Now when I upgrade to 3.5.3 using testing, the problem migrates in the initrd step: the lvm2 hook finds no volume group. Since my / is in lvm, I get dropped to an emergency shell. Now the strange thing is that lvm vgchange --sysinit -a y do finds all my volumes group, and when I continue the initrd booting process by existing the emergency shell, the rest of the boot is fine and systemd mounts /home and swap without problem this time. (This is on one of the two laptops, I don't have access to the other to try it on it too right now)
No, that is completely false. mount will use libblkid to scan the available block devices and find the matching tag. systemd relies on the udev symlinks to appear before it considers the device available and will mount it. Did you actually check this? Or are you just yes'ing me?
I'm still waiting for you to provide useful debugging info. The 3.5.x bug is known, and completely unrelated. Given that it's slotted to move to [core] in the next few days, I'm inclined to just mark this bug as invalid.