Greetings,
we had a server with a dead sata cable. It caused alot checksum errors on a drive, degrading the zpool.
After replacing the cable, i wanted to tell zfs to resilver using the same drive by formatting it.
Unfortunatly generating new partition-IDs using sgdisk -G /dev/sdc, gave me the same ids and i were unable to replace the faulty drive with the same one.
Because it was a new server i took a new drive and threw it in there.
Am i able to somehow resilver on an already known drive, or to manipulate the ids i get by sgdisk?
Is there some easyer way to do that?
The drive is a boot drive for the pve using systemd boot.
I pretty much did this:
1. remove the drive
2. gdisk /dev/sdd -> create new guid partition table on another system, clearing the drive
3. inserted the drive and made sure, it wasn't showing old partitions using lsblk
4. sgdisk /dev/sdd -R /dev/sdc
5. sgdisk -G /dev/sdc
6. zpool replace rpool /dev/disk/by-id/OldDeadPartitionID /dev/disk/by-id/NewHealthyPartitionID (<- Those where identical)
I Also tried -f
we had a server with a dead sata cable. It caused alot checksum errors on a drive, degrading the zpool.
After replacing the cable, i wanted to tell zfs to resilver using the same drive by formatting it.
Unfortunatly generating new partition-IDs using sgdisk -G /dev/sdc, gave me the same ids and i were unable to replace the faulty drive with the same one.
Because it was a new server i took a new drive and threw it in there.
Am i able to somehow resilver on an already known drive, or to manipulate the ids i get by sgdisk?
Is there some easyer way to do that?
The drive is a boot drive for the pve using systemd boot.
I pretty much did this:
1. remove the drive
2. gdisk /dev/sdd -> create new guid partition table on another system, clearing the drive
3. inserted the drive and made sure, it wasn't showing old partitions using lsblk
4. sgdisk /dev/sdd -R /dev/sdc
5. sgdisk -G /dev/sdc
6. zpool replace rpool /dev/disk/by-id/OldDeadPartitionID /dev/disk/by-id/NewHealthyPartitionID (<- Those where identical)
I Also tried -f