News for hackers. Stuff that matters.
Re:An Introduction to ZFS by mehlmao on Friday November 20, 2020 @10:58AM (#25161625)
There's a hacky workaround, but it depends on how many drives you have and what your tolerance for downtime is. I had 2x8TB drives in RAIDZ1 configuration (sda, sdb), and I added an extra 8TB drive (sdc).

My solution was:

offlining one drive (sdb), degrading vpool1

creating a vpool2 in RAIDZ1, with sdb, sdc, and an 8TB sparse file on a flash drive

offlining the sparse file, degrading vpool2

sending a ZFS snapshot from vpool1 to vpool2

destroying vpool1, and adding sda to vpool2 to replace the sparse file

Re:An Introduction to ZFS by iooi on Friday November 20, 2020 @12:28PM (#25162683)
This is unnecessarily complex, you can just offline a drive, remove the disk, insert the new disk, and replace the offline drive with the new disk. ZFS will resilver the new disk.
Re:An Introduction to ZFS by mehlmao on Friday November 20, 2020 @01:42PM (#25163471)
This is to switch from 2 disk raidz1 to 3 disk raidz1 without needing additional drives to hold the data while moving.