Manually Creating a ZFS Pool From Mismatched Drives
7 points by WilhelmVonWeiner
7 points by WilhelmVonWeiner
Too bad he doesn’t explain what a miatched size for the disks entails: do we lose the larger disk “extra” bytes ? Or do we lose parity and will break the pool in case any disk fails?
You're right -- this is not clear at all. It's just 1 part out of 2 or 3 or more:
Honestly, something as impressively bad and incomplete as that makes me suspect that it's LLM slop.
The array is created and we went the extra step of adding a dataset.
The author demonstrates that you can, in fact, create a zraid array from drives of mismatched sizes, which itself is the advantage (as the array can be further expanded later as necessary). If you just mirrored the disks you wouldn't be able to get the advantages of zraid if you ad a disk to the pool later.
You lose the extra capacity on the larger disk. The author used full disks for whatever he was doing, but you could just as well partition the larger disk and reclaim that storage capacity with either another filesystem, do something with a third mismatched-size disk, but it is kind of wastage.
As explained in the article.
The array is created and we went the extra step of adding a dataset.
I'm not sure what in the article with it's typos and sometimes awkward prose made you think it was generated by an LLM. I just thought it was cool and after reading it used 3 mismatched drives to make a zpool.
On every RAID system on every OS I have tried since the late 1990s, half a dozen of them or more which have integrated software RAID, it is possible to create an array from mismatched drives if you choose the smallest drive as the size of the slice. That is nothing new.
However, some drive-distributed filesystems now enable you to use all the space, with at least some level of fault tolerance: Btrfs does, Unraid does, Synology does (I believe with modified Btrfs). That is a thing now. The real question here is can ZFS do it, and this article does not answer that question.
From my understanding, we keep parity because raidz1 will distribute data and parity information across both disks, so effectively we have two mirrored disks but with room to expand the zpool with further disks. We would however lose the extra capacity on the larger disk.