Hi,
I bought a bit stronger machine for my pve, I added the new pve in cluster, migrated the vms. So far all good.
One debian VM doesn't come up. Upon investigation it gets stuck at looking for boot device. After some troubleshooting (read flipping checkboxes and rebooting and hoping for the best) I've found out the order of the disks got shuffled during the migration and it wants to boot from the 2nd drive. After adjusting the boot order in vm options it boots ok, however herein lies the issue:
original vm:
scsi0: disk0 /dev/sda
scsi1: disk1 /dev/sdb
boot order: scsi0
migrated vm:
scsi0:disk1 /dev/sda
scsi1: disk0 /dev/sdb
boot order: scsi0 <---- does not work until switched to scsi1
Moreover, I somehow need to move the boot loader from disk1 back to disk0. disk1 is is a large temporary data storage disk excluded from backups due to space constraints. By not backing it up I'm now backing up unbootable vm.
I tried grub-install /dev/sdb and update-grub and then reboot with the boot order switched to the small disk, but no dice. Backing up both disks is not an option.
How could I move the boot to disk0 so the backups are bootable?
Thanks for any suggestion
I bought a bit stronger machine for my pve, I added the new pve in cluster, migrated the vms. So far all good.
One debian VM doesn't come up. Upon investigation it gets stuck at looking for boot device. After some troubleshooting (read flipping checkboxes and rebooting and hoping for the best) I've found out the order of the disks got shuffled during the migration and it wants to boot from the 2nd drive. After adjusting the boot order in vm options it boots ok, however herein lies the issue:
original vm:
scsi0: disk0 /dev/sda
scsi1: disk1 /dev/sdb
boot order: scsi0
migrated vm:
scsi0:disk1 /dev/sda
scsi1: disk0 /dev/sdb
boot order: scsi0 <---- does not work until switched to scsi1
Moreover, I somehow need to move the boot loader from disk1 back to disk0. disk1 is is a large temporary data storage disk excluded from backups due to space constraints. By not backing it up I'm now backing up unbootable vm.
I tried grub-install /dev/sdb and update-grub and then reboot with the boot order switched to the small disk, but no dice. Backing up both disks is not an option.
How could I move the boot to disk0 so the backups are bootable?
Thanks for any suggestion