Cached root volume not activated on boot
After manually activating the root and swap volumes in the emergency shell, the system boots successfully
(Abridged) output from lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 2.7T 0 disk
├─whitestarVG0-home 254:4 0 50G 0 lvm /home
└─whitestarVG0-root_corig 254:7 0 60G 0 lvm
└─whitestarVG0-root 254:8 0 60G 0 lvm /
sdb 8:16 0 1.8T 0 disk
└─sdb2 8:18 0 1.8T 0 part
└─whitestarVG0-root_corig 254:7 0 60G 0 lvm
└─whitestarVG0-root 254:8 0 60G 0 lvm /
sdc 8:32 1 465.8G 0 disk
├─sdc1 8:33 1 500M 0 part /boot
└─sdc2 8:34 1 400G 0 part
├─whitestarVG0-root_cache_cdata 254:5 0 8G 0 lvm
│ └─whitestarVG0-root 254:8 0 60G 0 lvm /
├─whitestarVG0-root_cache_cmeta 254:6 0 12M 0 lvm
│ └─whitestarVG0-root 254:8 0 60G 0 lvm /
└─whitestarVG0-ArchSwap 254:9 0 8G 0 lvm [SWAP]
Output from lvm lvs in the emergency shell was something like this:
(note the missing as in the Attr column)
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
ArchSwap whitestarVG0 -wi--o---- 8.00g
home whitestarVG0 -wi-ao---- 50.00g
root whitestarVG0 Cwi--oC--- 60.00g
Output after activating the root and swap partitions (lvm lvchange -a y whitestarVG0/root and lvm lvchange -a y whitestarVG0/ArchSwap):
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
ArchSwap whitestarVG0 -wi-ao---- 8.00g
home whitestarVG0 -wi-ao---- 50.00g
root whitestarVG0 Cwi-aoC--- 60.00g [root_cache] [root_corig] 100.00 1.40 0.00
Why couldn't the volumes on the SSD (sdc) be activated during boot? There's only one line in dmesg related to device-mapper during early boot:
[ 72.239376] device-mapper: cache: Origin device (dm-7) discard unsupported: Disabling discard passdown.
If that's enough to block boot, something is very wrong. And even if it was, it doesn't explain the swap partition failing to activate.
This was working for the last 2 years, but a recent update (in the last 24 hours I think?) broke it.
lvm, device-mapper and the kernel all received updates within that period, so something in there, perhaps?
Edited 31 Aug 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 7 · 100% up
- Kind
- Text
- ID
- cxrcwp
8 comments
Problem seems to be with lvm2 update.
https://bbs.archlinux.org/viewtopic.php?id=248788
Thanks. Hat git revert made my system boot again.
Following the suggestion from that thread (reverting a specific commit for lvm) appears to have resolved the issue.
My system has successfully booted 3/3 times now. Previously, boot would succeed only around 10% of the time.
That fixed it for me, thanks!
I have a similar problem since I updated today. Also with a setup that was working flawlessly for a long time. I'm using LUKS on LVM on 2 disks (two smaller SSDs (the NVME-drive is as slow as a SATA drive) in a Laptop).
Systemd says:
In emergency shell:
Did you get any further? Have you already tried downgrading specific packages?
What I did was activate the lvs that weren't started automatically. In your case it would be something like this:
I haven't tried downgrading yet, but I suspect downgrading device-mapper and lvm2 might be enough?
I applied the fix mentioned in the thread linked by Leangeful. Reverting that commit fixed the issue for me.