I think I messed up. I have a ZFS pool with 2xraidz1 with 4 hdds each.
Today I changed the controller because it was giving me lots of errors. After changing, my pool showed up, but on drive removed itself and got online again and so on, so I swapped this hdd out and started resilvering, since it looked like the hdd had a defect (it happened with rebooting rewiring etc. So it must be a defect).
Resilvering was in progress. After a while I heard some sort of a squeek, the sound the Toshiba mg09 make when it turns off. So it seemed 2 drives randomly turned off and on for a fraction of a second. Now not enough parity was left, since both hdd were unplugged for a short time, so I restarted the PC to re-initialize everything.
The pc got stuck so I forced shutdown (maybe my bad mistake), after restart, one of the working hdds showed as missing, even though it was plugged in. I used lsblk to check. I saw that no partition was shown (the forced restart broke the partition table).
So I used testdisk to recover the partition, now it shows only 1 partition (the main zfs partition) but the other 8m partition is missing.
Now Iām trying to clone this drive, shrink the zfs partition to fit the 8m partition in, since due to the recovery, itās only 3m left for some reason.
Now Iām standing there with 1 drive half defective, which needs to be resilvered, and a second drive with messed up partitions. Unfortunately zfs shows the drive with messed up partition as missing, Iām afraid to detach and re-attach, because when detached, there is no way back attaching it, when something is missing.
Itās funny since both drives are in one raidz1, which means my data will be fckd up, since there are no sufficient parities. Is there some way Iām missing to do a magic rescue. Who can save me? I donāt want this to be my vilian arc. I hope some ZFS magician can help me out.
TiA