by arwineap · 4y ago · 0 comments
The old way ( as you referenced ) was to replace each disk one by one with a larger one.
If I'm understanding this right, and please correct me, this feature will allow you to add a 5th disk to a 4 disk raidz
And if I'm right about that, then this feature wouldn't really make sense for RAID10 anyway
Adding drives to a mirror has worked in zfs since prehistoric times. “zpool attach test_pool sda sdc” will mirror sda to sdc. If sda was already mirrored with sdb, you now have a triple-mirror with sda, sdb, and sdc.
Your example doesn't expand the storage of the vdev, which is what this entire discussion is about, it merely adds a mirror.
You probably already know this, but btrfs offers a different option. Its "RAID1" mode would not result in the three drives storing your data in triplicate but rather still stores data in duplicate but with a usable capacity that's 1.5x that of a single driver's capacity. To get the ZFS behavior you describe, btrfs offers a "RAID1c3" mode, but that's a much less interesting feature.
Forcing ZFS to store multiple data blocks also can be done.
This is great for ZFS on flash drives.
https://docs.oracle.com/cd/E19253-01/819-5461/gevpg/index.ht...