Nội dung
Grub loading grub probe error cannot find device for root
Stuck in GRUB rescue mode. error: disk ‘lvmid’ not found.
Lỗi này do grub bị lỗi, để khắc phục boot vào rescurecd sau đó thực hiện update grub
~ # mkdir /mnt/vm1 ~ # mount /dev/vg0/vm1 /mnt/vm1 ~ # mount -o bind /dev /mnt/vm1/dev ~ # mount -o bind /dev/pts /mnt/vm1/dev/pts ~ # mount -o bind /proc /mnt/vm1/proc ~ # mount -o bind /run /mnt/vm1/run ~ # mount -o bind /sys /mnt/vm1/sys ~ # chroot /mnt/vm1 /bin/bash
Trong trường hợp boot vào rescuecd không tìm thấy LVM cần active lv
lvscan modprobe dm-mod vgchange -ay
Update grub
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
Trong Ubuntu Debian chạy lệnh sau
update-grub
VM Boots with Dracut Emergency Shell and warnings that specific locations do not exist on the file system after failover
Nguyên nhân:
the SCSI controller drivers, in this example the LSI Logic Parallel (MPTSPI) drivers, are missing from the recovery VM because the drivers are not available in the protected VM
In some cases, the latest PRM (Package Manager) and VMware tools on the Linux VM have not been installed
Khắc phục: build lại dracut
boot vào rescure như hướng dẫn trên sau đó gõ
source /etc/profile
dracut --regenerate-all --force