simple non-root openzfs
Long time mdraid experience and the recent mixed licensing thread resulted in a desire to experiment with zfs without too much initial investment. First build+install openzfs from slackbuilds.org, then:
Create '/etc/modprobe.d/zfs.conf' with Code:
softdep zfs pre: spl Code:
GB=4; echo $(( $GB * 1024 * 1024 * 1024 )) Jumpstart without reboot: Code:
sudo /etc/rc.d/rc.zfs start Code:
sudo zpool create -m legacy -o ashift=12 zfs_test mirror /dev/nvme0n1p4 /dev/nvme0n1p6 Create a mount point and /etc/fstab entry: Code:
zfs_test /mnt/test zfs defaults,lazytime,noatime,_netdev 0 0 Code:
sudo mount -av Code:
logger -st rc.local "$( zpool import zfs_test; zpool list -H; mount -v /mnt/test )" Cheers, |
Quote:
Code:
sudo KERNEL=6.1.24 sh ./openzfs.Slackbuild To check: Code:
sudo zpool scrub zfs_test |
zfs 1.5x over mdraid (simple streaming read)
Replicated the above openzfs install/config on a small server originally configured as mdraid mirrors.
Seagate IronWolf 4TB - CMR 3.5 Inch SATA 6Gb/s 5400 RPM 64MB Cache 2x raid10, far2 layout 2x zfs mirror, 4k, lz4 compression Code:
$ alias drop Code:
$ drop; dd if=/dev/md10 of=/dev/null bs=1M count=2048 |& grep -v records Code:
$ drop; for i in {/md10,}/md20/other/alan.watts.lectures.zip; do dd if=$i of=/dev/null bs=1M; done |& grep -v records |
Quote:
2) mdraid10 of 4 disks might need at least 2 parallel processes to saturate read throughput. |
Quote:
2) Its a 2-disk mirror created with f2 so md calls it 'raid10'. In this case the very close to raw: Code:
$ drop; dd if=/dev/md10 of=/dev/null bs=1M count=2048 |& grep -v records |
Quote:
This made it clear. Thanks! |
[BUGFIX] upgrade openzfs 2.2.0 -> 2.2.2
Update: Bug has been resolved w 2.2.2 release, zfs_dmu_offset_next_sync workaround is still recommended however. Exciting times, eh?
=========================== Update: Getting an unexplainable hard lockup with 'zpool import' with 2.2.1 so back to 2.2.0 with the suggested safety workaround Code:
echo 0 > /sys/module/zfs/parameters/zfs_dmu_offset_next_sync Original upgrade post below =========================== There was a block_clone issue which [rarely] corrupted data, also 2.2.1 is required for 6.6.x kernels: https://github.com/openzfs/zfs/releases To upgrade in the previous example context: Grab 2.2.1 https://github.com/openzfs/zfs/relea...s-2.2.1.tar.gz to your openzfs slackbuild and rebuild. Edit the 'make' command about line 119 in openzfs.SlackBuild for fast build: Code:
make -j $( nproc ) Code:
sudo KERNEL=$( uname -r ) VERSION=2.2.1 sh ./openzfs.SlackBuild Code:
sudo zpool export zfs_test |
30 days later ...
Quote:
openzfs 2.2 consistently continues to be solid:
Cheers, https://forum.level1techs.com/t/zfs-...hooting/196035 is an easier place to start the online openzfs docs. |
All times are GMT -5. The time now is 11:47 AM. |