This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make-bcache --block 4096 --bucket 16384 -B /dev/disk/by-partlabel/WDRED20b -C /dev/disk/by-partlabel/BCACHE1 --wipe-bcache --writeback -o 65536 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mdadm --create --verbose /dev/md0 --level=0 --chunk=16 --raid-devices=2 /dev/disk/by-partlabel/SOL2a3 /dev/disk/by-partlabel/TG256a2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mke2fs -c -b 4096 -i 4096 -j -L SOL2HOME -m 1 -t ext4 -O casefold,dir_index,encrypt,extent,dir_nlink -E lazy_itable_init=0,lazy_journal_init=0,stride=4,stripe_width=4 -e continue /dev/sdc2 | |
| tune2fs -c 1 -e continue -i 1 -o journal_data_writeback -O casefold,dir_index,encrypt,extent,dir_nlink -E stride=4,stripe_width=4 /dev/sdc2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zpool create \ | |
| -o ashift=12 \ | |
| -o autotrim=on \ | |
| -o autoexpand=on \ | |
| -o failmode=continue \ | |
| -o listsnapshots=on \ | |
| -O recordsize=16k \ | |
| -O redundant_metadata=most \ | |
| -O compression=on \ | |
| -O dedup=on \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # May not need all these packages: | |
| apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx libpam0g-dev | |
| mkdir -p /etc/apt/keyrings/ | |
| curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc | |
| sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-kernel-stable.sources | |
| Enabled: yes | |
| Types: deb | |
| URIs: https://pkgs.zabbly.com/kernel/stable | |
| Suites: jammy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install build-essential autoconf automake libtool gawk alien fakeroot dkms libblkid-dev uuid-dev libudev-dev libssl-dev zlib1g-dev libaio-dev libattr1-dev libelf-dev linux-headers-generic python3 python3-dev python3-setuptools python3-cffi libffi-dev python3-packaging debhelper-compat dh-python po-debconf python3-all-dev python3-sphinx libpam0g-dev | |
| wget https://github.com/openzfs/zfs/releases/download/zfs-2.1.15/zfs-2.1.15.tar.gz | |
| tar -zxf zfs-2.1.15.tar.gz | |
| cd zfs-2.1.15 | |
| ./configure --enable-systemd | |
| make -j1 deb-utils deb-dkms | |
| rm openzfs-zfs-dracut_*.deb | |
| apt-get install --fix-missing ./*.deb |