This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:btrfsreminders [2026/02/08 16:06] – oemb1905 | computing:btrfsreminders [2026/08/01 15:17] (current) – oemb1905 | ||
|---|---|---|---|
| Line 107: | Line 107: | ||
| In addition to scrubbing, I compiled a slew of commands to assess pool health more granularly. I put this script on a cronjob which runs and sends me a statistics report every hour: | In addition to scrubbing, I compiled a slew of commands to assess pool health more granularly. I put this script on a cronjob which runs and sends me a statistics report every hour: | ||
| - | < | + | < |
| #!/bin/bash | #!/bin/bash | ||
| DATE=`date +" | DATE=`date +" | ||
| Line 274: | Line 274: | ||
| In lay terms, these reports confirm that read speed is 5,520 MB/s, or 5.5 GB/s, and write speed is 1,603 MB/s, or 1.6 GB/s. This is a 4x improvement for reads and 2x improvement for writes compared to zfs. For whatever reason, zfs was not benefitting from the parallelization. It's possible that I could get zfs to perform better with tinkering, but why? Every major upgrade I have to re-compile it with dkms against the new kernel headers, which takes forever. Additionally, | In lay terms, these reports confirm that read speed is 5,520 MB/s, or 5.5 GB/s, and write speed is 1,603 MB/s, or 1.6 GB/s. This is a 4x improvement for reads and 2x improvement for writes compared to zfs. For whatever reason, zfs was not benefitting from the parallelization. It's possible that I could get zfs to perform better with tinkering, but why? Every major upgrade I have to re-compile it with dkms against the new kernel headers, which takes forever. Additionally, | ||
| - | --- // | + | Simple version |
| + | |||
| + | < | ||
| + | sudo lsblk -d -o NAME, | ||
| + | df -h | ||
| + | ls -lah / | ||
| + | sudo mkdir -p / | ||
| + | sudo cryptsetup luksFormat / | ||
| + | sudo cryptsetup luksOpen / | ||
| + | sudo mkfs.btrfs -f -L storage / | ||
| + | sudo mkfs.btrfs -f -d raid10 -m raid1 --checksum=xxhash --nodesize=32k / | ||
| + | sudo mount -o compress=zstd: | ||
| + | cat << ' | ||
| + | # | ||
| + | cryptsetup luksOpen / | ||
| + | mount -o compress=zstd: | ||
| + | EOF | ||
| + | chmod 750 / | ||
| + | </ | ||
| + | |||
| + | --- // | ||