Open
Description
Hello !
I regularly reinstall machine which previously run Linux (Debian 10 mostly) with soft raid 1 to XCP-ng.
Since 8.2 (And I think it's older than that), when I recreate the soft raid 1 from the installer, the installer finishes correctly, but I end up in grub rescue at the reboot.
My guess is that XCP-ng installer don't delete the old soft raid correctly, and the grub get confused. I try to boot via grub rescue, but with no success.
My workaround is to boot a live Debian, launch the shell, and execute this for each disk I want to use in my soft raid:
DISK=sdx
LBAS=$(cat /sys/block/$DISK/size)
dd if=/dev/zero of=/dev/$DISK bs=512 count=1024
dd if=/dev/zero of=/dev/$DISK bs=512 seek=$(($LBAS-1024)) count=1024
mdadm --zero-superblock /dev/$DISK
sync
Then I can relaunch the installer, and XCP-ng install successfully !
Let me know if I can help !
Cécile