Hi all,
I have my root partition (along with a few others) on LVM on top of a LUKS partition. This has worked great for literally decades.
Had an extra hard drive handy and figured, why not use that as a mirror to guard against disk failure (though all the data I really care about is on a ZFS pool on separate disks).
So, I
The system continues to boot, but the volume group is in a degraded state, with the pv in question marked missing. I think this is just a question of timing - /dev/mapper/new_drive_crypt hasn't been decrypted by the time vg0 tries to activate (I'm using a single passphrase for all drives with keyscript=/lib/cryptsetup/scripts/decrypt_keyctl).
I have added the new LUKS partition to /etc/crypttab, added necessary modules to /etc/initramfs-tools/modules as described here, and ran update-initramfs -u -k all.
I've searched high and low, but cannot figure out how to make this work. I've removed the mirroring from the lvs in question and removed the missing pvs from the vg, so everything is working fine. I'd really like to know how to make the system boot with mirrored lv's though... Pretty sure this is a trivial thing to fix, but just can't figure out how. Thanks in advance!
I'm on Debian 10 LTS.
I have my root partition (along with a few others) on LVM on top of a LUKS partition. This has worked great for literally decades.
Had an extra hard drive handy and figured, why not use that as a mirror to guard against disk failure (though all the data I really care about is on a ZFS pool on separate disks).
So, I
- Created a LUKS partition and mounted it,
- vgextend vg0 /dev/mapper/new_partition_crypt
- lvconvert -m1 /dev/vg0/<volume> /dev/mapper/new_drive_crypt
Code:
May 19 16:15:54 deepthought lvm[1006]: Couldn't find device with uuid qE0eq9-AFsM-fwk1-Xxji-CXHB-ogRr-oxBljp.
I have added the new LUKS partition to /etc/crypttab, added necessary modules to /etc/initramfs-tools/modules as described here, and ran update-initramfs -u -k all.
I've searched high and low, but cannot figure out how to make this work. I've removed the mirroring from the lvs in question and removed the missing pvs from the vg, so everything is working fine. I'd really like to know how to make the system boot with mirrored lv's though... Pretty sure this is a trivial thing to fix, but just can't figure out how. Thanks in advance!
I'm on Debian 10 LTS.
Statistics: Posted by mrfox — 2024-05-20 04:48