{{tag>Pb LVM Boot Crypt}} # Pb boot LVM Tapez dans le menu grub : ~~~bash lvm vgchange -aly ~~~ Si cela ne marche pas, démarrer avec une Debian rescue [[https://github.com/r1k0/kigen/blob/master/scripts/boot.sh]] ~~~bash pkill cryptsetup sleep 2 || exit 1 /sbin/cryptsetup luksOpen $1 root || exit 1 sleep 2 || exit 1 /bin/lvm vgscan sleep 1 || exit 1 /bin/lvm vgchange -a y sleep 1 || exit 1 /sbin/ttyecho -n /dev/console q ~~~ ## 2 Cette astuce ma aidé une fois. Partitions LVM chiffées (cryptsetup) ~~~ cryptsetup: evms_activate is not available ~~~ Create a new file /etc/initramfs-tools/scripts/local-top/workaround_mdadm : `/etc/initramfs-tools/scripts/local-top/workaround_mdadm` ~~~bash #!/bin/sh sleep 6 mdadm --stop /dev/md1 mdadm --stop /dev/md0 sleep 6 mdadm --assemble --scan ~~~ Make the file executable : ~~~bash chmod 755 /etc/initramfs-tools/scripts/local-top/workaround_mdadm ~~~ Create new initrd files in /boot : ~~~bash update-initramfs -k all -c ~~~ Reboot with just one disk and enjoy. [[https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1003309/comments/70]]