HI
I was wondering if someone could shed some light
Currently on my test environment trying to test out how to replace a disk when bios is using uefi
These are the steps i have so far, Were going to assume that ata-VBOX_HARDDISK_VBd49634a6-155a6124-part3 died
we turn off the VM and put in the new disk and the healthy mirror disk is
ata-VBOX_HARDDISK_VB8eb78106-9ccb7531
and the new disk is ata-VBOX_HARDDISK_VBd740ad61-d73df170
so i need to replicate the partitions
then replace the pool wait to resilver
now the issue is when we install grub i run this command i get this error
i made sure the VM was using UEFI
Thank you
I was wondering if someone could shed some light
Currently on my test environment trying to test out how to replace a disk when bios is using uefi
These are the steps i have so far, Were going to assume that ata-VBOX_HARDDISK_VBd49634a6-155a6124-part3 died
Code:
root@pve:~# zpool status
pool: rpool
state: DEGRADED
status: One or more devices could not be used because the label is missing or
invalid. Sufficient replicas exist for the pool to continue
functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
6681090437292701121 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-VBOX_HARDDISK_VBd49634a6-155a6124-part3
ata-VBOX_HARDDISK_VB8eb78106-9ccb7531-part3 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ata-VBOX_HARDDISK_VB67720d2e-4bea2bd1-part3 ONLINE 0 0 0
ata-VBOX_HARDDISK_VB418c327c-62f3b4ce-part3 ONLINE 0 0 0
errors: No known data errors
we turn off the VM and put in the new disk and the healthy mirror disk is
ata-VBOX_HARDDISK_VB8eb78106-9ccb7531
and the new disk is ata-VBOX_HARDDISK_VBd740ad61-d73df170
so i need to replicate the partitions
Code:
root@pve:~# sgdisk /dev/disk/by-id/ata-VBOX_HARDDISK_VB8eb78106-9ccb7531 -R /dev/disk/by-id/ata-VBOX_HARDDISK_VBd740ad61-d73df170
The operation has completed successfully.
root@pve:~# sgdisk -G /dev/disk/by-id/ata-VBOX_HARDDISK_VBd740ad61-d73df170
The operation has completed successfully.
then replace the pool wait to resilver
Code:
zpool replace -f rpool 6681090437292701121 /dev/disk/by-id/ata-VBOX_HARDDISK_VBd740ad61-d73df170-part3
now the issue is when we install grub i run this command i get this error
Code:
root@pve:~# pve-efiboot-tool format /dev/sdb2
UUID="BBCC-6520" SIZE="536870912" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="sdb" MOUNTPOINT=""
E: '/dev/sdb2' contains a filesystem ('vfat') - exiting (use --force to override)
i made sure the VM was using UEFI
Code:
root@pve:~# efibootmgr -v
BootCurrent: 000A
Timeout: 0 seconds
BootOrder: 000A,0009,0008,0007,0000,0001,0003,0004,0005,0006,0002
Boot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001* UEFI VBOX CD-ROM VB2-01700376 PciRoot(0x0)/Pci(0x1,0x1)/Ata(1,0,0)N.....YM....R,Y.
Boot0002* UEFI VBOX HARDDISK VBd740ad61-d73df170 PciRoot(0x0)/Pci(0xd,0x0)/Sata(0,65535,0)N.....YM....R,Y.
Boot0003* UEFI VBOX HARDDISK VB8eb78106-9ccb7531 PciRoot(0x0)/Pci(0xd,0x0)/Sata(1,65535,0)N.....YM....R,Y.
Boot0004* UEFI VBOX HARDDISK VB67720d2e-4bea2bd1 PciRoot(0x0)/Pci(0xd,0x0)/Sata(2,65535,0)N.....YM....R,Y.
Boot0005* UEFI VBOX HARDDISK VB418c327c-62f3b4ce PciRoot(0x0)/Pci(0xd,0x0)/Sata(3,65535,0)N.....YM....R,Y.
Boot0006* EFI Internal Shell FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0007* Linux Boot Manager HD(2,GPT,fb089919-b25a-4a96-a97a-20a53806839a,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0008* Linux Boot Manager HD(2,GPT,8771c20b-5ac7-4ef6-badb-7fee992a8408,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot0009* Linux Boot Manager HD(2,GPT,6d73a03d-24dd-4453-a25a-6b2cf5b756e7,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Boot000A* Linux Boot Manager HD(2,GPT,42b0de79-354e-4193-b147-89db4438aba7,0x800,0x100000)/File(\EFI\systemd\systemd-bootx64.efi)
Thank you