Outils pour utilisateurs

Outils du site


tech:boot-lvm-grub

Ceci est une ancienne révision du document !


Pb boot LVM

Tapez dans le menu grub :

lvm vgchange -aly

Si cela ne marche pas, démarrer avec une Debian rescue

https://github.com/r1k0/kigen/blob/master/scripts/boot.sh

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
#!/bin/sh
sleep 6
mdadm --stop /dev/md1
mdadm --stop /dev/md0
sleep 6
mdadm --assemble --scan

Make the file executable :

chmod 755 /etc/initramfs-tools/scripts/local-top/workaround_mdadm

Create new initrd files in /boot :

update-initramfs -k all -c

Reboot with just one disk and enjoy.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1003309/comments/70

tech/boot-lvm-grub.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki