Skip to content

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.

7 points5 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
7 · 100% up
Kind
Text
ID
cxrcwp

Author

6
posts
272
comments
0
media
View profile

8 comments

Problem seems to be with lvm2 update.

https://bbs.archlinux.org/viewtopic.php?id=248788

4 points

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.

1 points

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:

[  OK  ] Created slice system-lvm2\xd2pvscan.slice
         Starting LVM2 PV scan on device 259:7...
[  OK  ] Started LVM2 metadata daemon.
[FAILED] Failed to start LVM2 PV scan on device 259:7...

In emergency shell:

# lvm pvs
PV             VG  Fmt  Attr PSize    PFree
/dev/nvme0n1p7 vg1 lvm2 a--  <116.54g 0
/dev/sda2      vg1 lvm2 a--  <232.87g 1.00g

# lvm vgs
VG  #PV #LV #SN Attr   ...
vg1 2   1   0   wz--n- ...

# lvm lvs
LV     VG  Attr
lvroot vg1 -wi------- ...

Did you get any further? Have you already tried downgrading specific packages?

1 points

What I did was activate the lvs that weren't started automatically. In your case it would be something like this:

lvm lvchange -a y vg1/lvroot

I haven't tried downgrading yet, but I suspect downgrading device-mapper and lvm2 might be enough?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.