I have a Proxmox 6.4 system where I have, at this point, replaced every single drive in it.
I think I have rebuilt grub as well but I havn't actually rebooted my system yet because I'm not 100% sure that what I have done is correct and that it will actually be able to boot up again.
In my server I have 8 drives and it's set up using ZFS.
When I replaced a drive I took it offline, took the defective drive out and put in a new one and copied the GPT partition table from one of the existing working drives already in the system to the new drive I just put in. I used these commands:
After that was done I used "zpool replace" to replace the old drive with the new one and waited for it to finish resilvering.
When it eventually got done resilvering I ran these commands to prepare and set up the drive for grub:
After which it completed setting up grub for the newly added drive.
I have done the above procedure for all 8 drives at this point but as I said, I have never rebooted yet.
Can anyone please tell me if what I did above is correct or, in case it is not, what I should do to make sure it would reboot correctly when it would be time to do so?
Is there any way I can verify that it will indeed boot without issues?
I think I have rebuilt grub as well but I havn't actually rebooted my system yet because I'm not 100% sure that what I have done is correct and that it will actually be able to boot up again.
In my server I have 8 drives and it's set up using ZFS.
When I replaced a drive I took it offline, took the defective drive out and put in a new one and copied the GPT partition table from one of the existing working drives already in the system to the new drive I just put in. I used these commands:
sgdisk /dev/sda -R /dev/sdg
sgdisk -G /dev/sdg
After that was done I used "zpool replace" to replace the old drive with the new one and waited for it to finish resilvering.
When it eventually got done resilvering I ran these commands to prepare and set up the drive for grub:
proxmox-boot-tool format /dev/sda2 --force
proxmox-boot-tool init /dev/sda2
proxmox-boot-tool clean
proxmox-boot-tool status
After which it completed setting up grub for the newly added drive.
I have done the above procedure for all 8 drives at this point but as I said, I have never rebooted yet.
Can anyone please tell me if what I did above is correct or, in case it is not, what I should do to make sure it would reboot correctly when it would be time to do so?
Is there any way I can verify that it will indeed boot without issues?