This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

ZFS spare working but no replacing?

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
xplitz27
NewUser
NewUser
Posts: 1
Joined: 25 Dec 2017 08:05
Status: Offline

ZFS spare working but no replacing?

Post by xplitz27 »

Hi guys! I just tested the zfs spare feature aka autoreplace, before trying that out I did some experiment with raidz3 on my 5 hard drives.
Test A
#1 Remove 1 hard drive, zpool still is functioning in degraded state and 2 redundant vdevs remaining.
#2 Remove 2 hard drives, zpool still is functioning in degraded state and 1 redundant vdev remaining.
#3 Remove 3 hard drives, zpool still is functioning but autoheal won't work anymore and 0 redundant vdev remaining.
#4 Remove 4 hard drives, zpool is unavailable, zpool would not function anymore.

As stated in raidz3 it does provide 3 redundant drives, but with a spare it confuses me.
Test B
#1 Remove 1 hard drive, zpool still is functioning in degraded state and 2(+1 from spare) redundant vdevs remaining. (resilver is finished and shows the spare is online)
#2 Remove 2 hard drives, zpool still is functioning in degraded state and 1(+1 from spare) redundant vdev remaining.
#3 Remove 3 hard drives, zpool still is functioning and 0 redundant vdev remaining (+1 from spare).
#4 Remove 4 hard drives, zpool is unavailable, zpool would not function anymore.

But wait, I thought the resilver is finished from the spare and that would make a total of 2 hard drives remaining correct? 1 from the original raidz3 and 1 from the spare, that should make it 2 vdevs, what I don't get is why did it become unavailable? shouldn't it be in degraded state since there was a spare in place? It should have acted as an additional vdev that would replace one in the zpool raidz3, wouldn't it defeat the purpose of the autoreplace because it was not replacing as intended? (Yes with zpool status "pool name") it says I should replace the faulted vdev or online it. But it was done resilvering, shouldn't that make it adequate to make the zpool still working?


The autoreplace is working fine. But did solaris make this the way it is happening now? Or there was a feature that is not working like a zpool replace script faulted drive to the new spare.

Can anyone please shed some light? ZFS is so full of features and the best file system for me, but the autoreplace is disappointing.

sleid
PowerUser
PowerUser
Posts: 774
Joined: 23 Jun 2012 07:36
Location: FRANCE LIMOUSIN CORREZE
Status: Offline

Re: ZFS spare working but no replacing?

Post by sleid »

Autoreplace does not yet work on the ZFS port under freebsd.
12.1.0.4 - Ingva (revision 7852)
FreeBSD 12.1-RELEASE-p12 #0 r368465M: Tue Dec 8 23:25:11 CET 2020
X64-embedded sur Intel(R) Atom(TM) CPU C2750 @ 2.40GHz Boot UEFI
ASRock C2750D4I 2 X 8GB DDR3 ECC
Pool of 2 vdev Raidz1: 3 WDC WD40EFRX + 3 WDC WD40EFRX

Post Reply

Return to “ZFS (only!)”