I am trying to setup a proxmox with Raid1. I install proxmox with Raid1. After it finishes. I power on the PC with drive (a) removed as a test. System boots no problem. Plug the drive back in remove drive (b). System boots no problem. This tells me the install was done correctly and the is Raid working.
Then I wanted to replace a single drive, to simulate a drive failure. I followed this guide here to update the pool. While this restores the pool, it does not make the drive bootable. I know this because when I remvoed the drive from which information was copied, the system does not boot. There are additional steps I have to take, which I am having trouble with. Someone in the comments of that video said
"If your first nvme fails, your proxmox will not boot anymore, cause you have to copy the 3 partitions (UEFI) from the first nvme to the new one with "sgdisk /dev/nvme0n1 -R /dev/nvme1n1" ... then renew the guid with sgdisk -G /dev/nvme1n1 ... then add the 3rd part.-id to the pool and resilver! ;-)"
There is also this here. Specificly the section on: Changing a failed bootable device.
My problem comes down that I am complerly clueless when it comes to the linux structures / comands.
Would it be like this here
Then I wanted to replace a single drive, to simulate a drive failure. I followed this guide here to update the pool. While this restores the pool, it does not make the drive bootable. I know this because when I remvoed the drive from which information was copied, the system does not boot. There are additional steps I have to take, which I am having trouble with. Someone in the comments of that video said
"If your first nvme fails, your proxmox will not boot anymore, cause you have to copy the 3 partitions (UEFI) from the first nvme to the new one with "sgdisk /dev/nvme0n1 -R /dev/nvme1n1" ... then renew the guid with sgdisk -G /dev/nvme1n1 ... then add the 3rd part.-id to the pool and resilver! ;-)"
There is also this here. Specificly the section on: Changing a failed bootable device.
My problem comes down that I am complerly clueless when it comes to the linux structures / comands.
Code:
# sgdisk <healthy bootable device> -R <new device>
# sgdisk -G <new device>
# zpool replace -f <pool> <old zfs partition> <new zfs partition>
- What do I put inside <>
- What is health bootable device, that is obviously not c:/ or d:/
- What about the partition
Would it be like this here
Code:
# sgdisk /dev/sda -R /dev/nvme0n1
# sgdisk -G /dev/nvme0n1
# zpool replace -f zpool /dev/disk/by-id/nvme-eui.0025388981bb209f-part3 <new zfs partition, NOT SURE WHAT TO PUT HERE>