Hello all, maybe this is a dumb question but i just want to make the bast move.
I have an 8x4tb pool and in the next days i will start to replace all disks with 12tb ones.
I think i have two options:
remove one drive at time and “replace” it from GUI, then let ZFS rebuild data on it
connect the new drive and “replace” it from GUI
which move is the FASTEST one?
Thanks
Not sure about faster but option 2 is safer.
yep, forgot to mention it.
i know is safer but i need to understand how rebuild works.
option 1 rebuilds data then perform a scrub?
option 2 just copies data then perform a scrub?
do i need to wait for the scrub to finish before replacing the next drive?
etorix
September 7, 2024, 12:15pm
4
Both options perform a resilver; neither performs an explicit scrub.
Both options involve all the available drives; option 2 is not a “sector copy” of the still available old drive onto the new one.
You may as well take the safest route. I do not expect that it will make a difference on speed.
dan
September 7, 2024, 12:16pm
5
Again, there’s no “scrub” as such. Once the replace operation finishes, you can remove the old drive with no loss of redundancy. If you have room for two or more spares, you can replace multiple disks at the same time.
2 Likes
sorry, with scrub i meant resilver.
got confused writing.
okay, i will go with the safest option then, i have two ports still available
Stux
September 10, 2024, 10:25pm
7
Which means you can safely replace two drives at a time
Btw, you may be interested in this post on parallel resilvers
I have noticed this too.
I do recall it working in parallel in the past, but its certainly serial these days.
I suspect the behaviour may have changed when “Sequential Re-silvering” was added to ZFS.
And yes…
And good news, is apparently there’s a solution
You’re hitting the resilver_defer feature, which attempts to prevent restarting if another disk faults in the middle of a resilver, but mostly surprises people who try to resilver multiple things at once. See #14505 for a discussion.
…
1 Like
Thanks!
interesting reading, i will give a try.
Unfortunately my ASM1064+575 has a limited bandwidth