Skip to content

Instantly share code, notes, and snippets.

View visualphoenix's full-sized avatar

Raymond Barbiero visualphoenix

View GitHub Profile
@mzpqnxow
mzpqnxow / lvm.conf
Last active October 3, 2019 20:22
Workaround: LVM can't detect VG by UUID and vgcfgrestore fails to construct volume group even though blkid shows the correct UUID
#
# This is a boilerplate LVM configuration file (/etc/lvm/lvm.conf) with a few simple modifications
# that will fix a bug encountered when booting a no-modules kernel with LVM inside of a LUKS device
# The bug is best described as a failure of LVM to find a disk by UUID, even though the device with
# that UUID is present (in this case, in the form of an unlocked LUKS volume)
#
##
# Symptoms/Preconditions:
# - LUKS device is unlocked and the UUID for the VG can be seen in the `blkid` output
# - The LVM VGs are not present in /dev/mapper/ as expected