3-Way Disk Mirrors with ZFS on Linux
bhoey.com
3-Way Disk Mirrors with ZFS on Linux
1–10 of 15 posts
Re: 3-Way Disk Mirrors with ZFS on Linux
#2 $ 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.htmlRe: 3-Way Disk Mirrors with ZFS on Linux
#3A much easier way to test ZFS configurations is to use files instead[0]: $ 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
Re: 3-Way Disk Mirrors with ZFS on Linux
#4A much easier way to test ZFS configurations is to use files instead[0]: $ 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
[deleted]
Re: 3-Way Disk Mirrors with ZFS on Linux
#5Earlier quoted context omitted.
[deleted]
Yes they would. But you should never use this in production. Only for the purpose of learning/testing ZFS.
Re: 3-Way Disk Mirrors with ZFS on Linux
#6A much easier way to test ZFS configurations is to use files instead[0]: $ 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
Re: 3-Way Disk Mirrors with ZFS on Linux
#7A much easier way to test ZFS configurations is to use files instead[0]: $ 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
Author here, thanks for the heads up. It doesn't look like mkfile is included with the Jessie base system I was using to test. For those wishing to use this method it looks like the xfsprogs package contains xfs_mkfile which operates the same as parent's example.
$ fallocate -l 128MB /home/user/disk1Re: 3-Way Disk Mirrors with ZFS on Linux
#8zpool replace -o ashift=12 old new.
Re: 3-Way Disk Mirrors with ZFS on Linux
#9Earlier quoted context omitted.
Author here, thanks for the heads up. It doesn't look like mkfile is included with the Jessie base system I was using to test. For those wishing to use this method it looks like the xfsprogs package contains xfs_mkfile which operates the same as parent's example.
mkfile is standard on Solaris. On Debain use fallocate: $ fallocate -l 128MB /home/user/disk1