3-Way Disk Mirrors with ZFS on Linux
bhoey.com
bhoey.com
$ mkfile 128m /home/user/disk1
$ mkfile 128m /home/user/disk2
$ mkfile 128m /home/user/disk3
$ zfs create tank mirror /home/user/disk1 /home/user/disk2 /home/user/disk3
[0]: https://flux.org.uk/tech/2007/03/zfs_tutorial_1.html $ fallocate -l 128MB /home/user/disk1From the fallocate man page:
> For filesystems which support the fallocate system call, preallocation is done quickly by allocating blocks and marking them as uninitialized, requiring no IO to the data blocks. This is much faster than creating a file by filling it with zeros.
zpool replace -o ashift=12 old new.
vfs.zfs.min_auto_ashift=12
in /etc/sysctl.conf to handle this automatically.