Guild cách chuyển disk cài AlmaLinux LVM sang server mới bị lỗi dracut LVM LV not found

1. Boot bằng AlmaLinux 9.5 ISO → chọn Troubleshooting → Rescue a AlmaLinux system.

    Khi hệ thống hỏi, chọn 1) Continue để mount root filesystem.

2. Chroot vào hệ thống:

    #chroot /mnt/sysroot

3. Kiểm tra lại LVM

    #vgs

    #vs

    Phải thấy almalinux/root và almalinux/swap

4. Rebuild initramfs

    dracut –regenerate-all –force

5. Kiểm tra lại grub

    cat /etc/default/grub | grep GRUB_CMDLINE_LINUX

    Phải có rd.lvm.lv=almalinux/root và rd.lvm.lv=almalinux/swap.

6. Regenerate grub.cfg:

    grub2-mkconfig -o /boot/grub2/grub.cfg

7. Thoát chroot, reboot

Was this article helpful?

Hướng dẫn liên quan

Leave A Comment?