You are not logged in.

#1 2017-02-11 02:49:49

nticompass
Member
From: /home/nticompass/
Registered: 2009-12-08
Posts: 55
Website

[SOLVED] Timed out waiting for device after setting up lvmcache

I added an mSATA drive to my laptop and used it as an lvmcache for the LVM stored on my (spinning) hard drive.  This LVM contains /home (as well as /var, /opt and /usr).

Upon booting (with kernel 4.9.8-1), it takes a while and I see the following:

(1 of 2) A start job is running for device dev-LVM-home.device (39sec / 1min 29sec)
(2 of 2) A stop job is running for LVM2 PV scan on device 8:35 (39sec / 1min 29sec)

After that minute and a half, I see:

[ TIME ] Timed out waiting for device dev-LVM-home.device.
[ DEPEND ] Dependency failed for /home.
[ DEPEND ] Dependency failed for Local File Systems.
[ DEPEND ] Dependency failed for File System check on /dev/LVM/home.

I then get the "you are in emergency mode" prompt.  Pressing ctrl-d allows the laptop to boot up properly and /home (and its cache) is mounted correctly!

How do I fix this?  How do I get it to correctly mount /home on boot?

In my /etc/mkinitcpio.conf, I have:

HOOKS="base systemd plymouth autodetect block sd-lvm2 filesystems keyboard fsck"

UPDATE: The solution is to have /usr mounted as early as possible in /etc/fstab.

Last edited by nticompass (2017-03-31 13:42:30)

Offline

#2 2017-02-12 15:03:37

janoliver
Member
Registered: 2011-06-01
Posts: 54

Re: [SOLVED] Timed out waiting for device after setting up lvmcache

Hi, I might have the same problem. After a recent update my machine won't boot anymore. The root file system is on an LVM volume (which is on a software raid1) and I am getting a timeout waiting for that device.

I checked, that my fstab is correct (tried with UUID and dev path), the mkinitcpio hooks are fine so on. I can successfully use a live system to mount my file systems, so I think they are not corrupted.

Offline

#3 2017-03-06 19:44:47

nticompass
Member
From: /home/nticompass/
Registered: 2009-12-08
Posts: 55
Website

Re: [SOLVED] Timed out waiting for device after setting up lvmcache

Is there anything I can do here?  Could it be an issue in my /etc/fstab?  Might there be an option I need to add to /home to allow it to be mounted at boot time?

Offline

#4 2017-03-31 13:41:16

nticompass
Member
From: /home/nticompass/
Registered: 2009-12-08
Posts: 55
Website

Re: [SOLVED] Timed out waiting for device after setting up lvmcache

I figured out a solution!

Turns out I had /home mounted before /usr in /etc/fstab.

Moving /usr *before* /home (I put it right after /) fixed this issue.

Offline

Board footer

Powered by FluxBB