I currently have a Bionic Xubuntu machine which has a boot partition and an LVM partition containing a LUKS-encrypted system. It doesn't boot because xubuntu--vg-root does not exist
(i.e. it isn't mapping the LVM partitions in the initramfs).
I can boot a live USB environment and mount the LUKS-encrypted volume just fine, and in fact I tried to follow the advice at here to re-install LVM in the initramfs. LVM commands are now available in the initramfs shell I get dropped to, but I have no way to actually detect the partitions from there, as far as I can tell.
lvm vgchange -ay
in the initramfs does nothing; same with vgchange -ay
.
From the live USB environment, pvdisplay
gives:
--- Physical volume ---
PV Name /dev/mapper/luks-7743e53d-4290-4a98-8494-a9f1e12d37b0
VG Name xubuntu-vg
PV Size 465.04 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 119050
Free PE 8
Allocated PE 119042
PV UUID QYtrcB-bjTW-yqNl-Huw0-5uEK-QZA1-86CdLB
pvs
gives:
PV VG Fmt Attr PSize PFree
/dev/mapper/luks-7743e53d-4290-4a98-8494-a9f1e12d37b0 xubuntu-vg lvm2 a-- <465.04g 32.00m
lvs
gives:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root xubuntu-vg -wi-ao---- 464.05g
swap_1 xubuntu-vg -wi-a----- 976.00m
and vgs
gives:
VG #PV #LV #SN Attr VSize VFree
xubuntu-vg 1 2 0 wz--n- <465.04g 32.00m
How can I get this system booting again?