TrueNAS 13.1 replacing bad drive in a raid Z2 pool

I’m running TrueNAS 13.1 Master. My main storage pool is made up of 8 4TB HDDs, running in Raid Z2. I have 1 of the drives going bad. If I replace the bad 4TB with either a 6TB or an 8TB, will my storage pool size increase?

And second question, as each 4TB drive fails, if I continued to replace each bad 4TB drive with a larger drive, would my pool size continue to increase?

FWIW I run TrueNAS on a 12 bay Dell rack server.

You would have to replace all the drives one by one before you would get increased storage capacity. Eight drive replacements and reslivering.

If you replace a 4TB drive with higher capacity one, then ZFS will still treat it as a 4TB drive, and ignore the extra capacity; so you won’t gain anything at that stage.

If you continue to replace the rest of the drives in the pool with higher capacity ones, then when the last one is done after resilvering, then the pool will increase in size but only to an 8x multiple of the smallest capacity of the larger drives.

So, eg don’t have one 6TB replacement with the other 7 as 8TB or you’ll only end up with 48TB instead of 64TB

That’s what I was afraid of. But thanks for the answer, I will just continue with 4TB drives until it’s time to rebuild the server then I will install all larger drives. Thanks again.