Hi
I tried to move my pool to another pool, because I had not enough drives I decided to make a RAID 0 and then to attach two drives to the strips.
I did it in the UI, should be similar to this:
zpool create batcave /dev/sda1 /dev/sdg1
Which worked perfectly fine!
After that I attached drives to /dev/sda and /dev/sdg
zpool attach batcave /dev/sda1 /dev/sdf1
zpool attach batcave /dev/sdg1 /dev/sdd1
Which creates mirror-0 and mirror-1 so a RAID 10.
NOW THE ISSUE!
After the resilver kicked in, mirror-0 started to resilver BOTH drives!!!
Even after I put /dev/sdf1 offline, it’s still resilvering /dev/sda which was the original drive from the RAID 0!!!
admin@truenas[~]$ sudo zpool status -LP batcave
pool: batcave
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Jun 3 05:37:00 2024
7.81T / 7.83T scanned at 350M/s, 3.48T / 3.92T issued at 156M/s
3.49T resilvered, 88.87% done, 00:48:50 to go
config:
NAME STATE READ WRITE CKSUM
batcave DEGRADED 0 0 0
mirror-0 DEGRADED 174 0 0
/dev/sda1 ONLINE 0 0 18 (resilvering)
/dev/sdf1 FAULTED 0 0 0 external device fault
mirror-1 ONLINE 0 0 0
/dev/sdg1 ONLINE 0 0 0
/dev/sdd1 ONLINE 0 0 0 (resilvering)
errors: 178874 data errors, use '-v' for a list
admin@truenas[~]$
I can’t stop the resilver, even though I remove the other drive!
admin@truenas[~]$ sudo zpool iostat -vLP batcave
capacity operations bandwidth
pool alloc free read write read write
------------- ----- ----- ----- ----- ----- -----
batcave 7.83T 10.4T 206 241 156M 156M
mirror-0 3.92T 5.17T 11 5 340K 84.8K
/dev/sda1 - - 11 5 340K 84.8K
/dev/sdf1 - - 0 0 0 0
mirror-1 3.91T 5.19T 194 235 156M 156M
/dev/sdg1 - - 194 5 156M 84K
/dev/sdd1 - - 0 229 518 156M
------------- ----- ----- ----- ----- ----- -----
admin@truenas[~]$
As you can see mirror-1 behaves correct and reads from /dev/sdg1 and writes to /dev/sdd1, while mirror-0 is doing weird stuff.
Can someone explain WTH is going on and why is a “stripe” trying to resilver itself or if I can fix it somehow?
Every drive has a different UUID, and this “method” worked in the past without any issue!
PS. Why does TrueNAS use partitions not the whole disk?