Site Tools


projects:homelab:openzfs_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
projects:homelab:openzfs_notes [2024/10/06 07:05] – created Andrew Yongprojects:homelab:openzfs_notes [2024/11/08 18:32] (current) – [Building OpenZFS on Fedora] use `pwd` Andrew Yong
Line 1: Line 1:
 ====== OpenZFS Notes ====== ====== OpenZFS Notes ======
 +
 +===== Building OpenZFS on Fedora =====
 +
 +  - ''%%sudo dnf install --skip-broken gcc make autoconf automake libtool rpm-build libtirpc-devel libblkid-devel libuuid-devel libudev-devel openssl-devel zlib-devel libaio-devel libattr-devel elfutils-libelf-devel kernel-devel-$(uname -r) python3 python3-devel python3-setuptools python3-cffi libffi-devel git ncompress libcurl-devel python3-packaging dkms createrepo%%''
 +  - ''%%git clone https://github.com/openzfs/zfs.git --branch zfs-2.3.0-rc1 --single-branch --depth=1%%''
 +  - ''cd ./zfs''
 +  - ''./autogen.sh''
 +  - ''./configure''
 +  - ''make rpm rpm-dkms''
 +  - ''createrepo .''
 +  - ''cat %%<<%% EOF | sudo tee /etc/yum.repos.d/zfs-local.repo\\ [zfs-local]\\ name=ZFS on Linux for Fedora $releasever Local\\ baseurl=%%file://$(pwd)%%\\ enabled=1\\ EOF''
 +  - ''%%sudo dnf upgrade --refresh --nogpgcheck zfs zfs-dkms%%''
 +
  
 ===== Adding Hardware 512e SSDs to 512e/4kn zpool ===== ===== Adding Hardware 512e SSDs to 512e/4kn zpool =====
Line 17: Line 30:
     * 4k/8k/16kb sector SSD with hardware 512e: LOG-SEC = 512, PHY-SEC = 512     * 4k/8k/16kb sector SSD with hardware 512e: LOG-SEC = 512, PHY-SEC = 512
     * 512b drive: LOG-SEC = 512, PHY-SEC = 512     * 512b drive: LOG-SEC = 512, PHY-SEC = 512
-  - Verify [[https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#alignment-shift-ashift|ashift value]] of zpool(s):\\ ''zdb -C | grep "ashift\| name:"''\\ //Smallest possible IO = 2^ashift//+  - Verify [[https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#alignment-shift-ashift|ashift value]] of zpool(s):\\ ''%%zdb -C | grep "ashift\| name:"%%''\\ //Smallest possible IO = 2^ashift//
     * 4096: ashift = 12     * 4096: ashift = 12
     * 512: ashift = 9     * 512: ashift = 9
   - Look at your SSD datasheet to confirm physical sector size ≥ 4096 (if you can't find this information, we will just have to assume it is a multiple of 4k)   - Look at your SSD datasheet to confirm physical sector size ≥ 4096 (if you can't find this information, we will just have to assume it is a multiple of 4k)
   - Specify the same ashift value as the existing pool when adding the SSD(s):\\ ''sudo zpool add -o ashift=12 //tank// log mirror //ssd1 ssd2//''   - Specify the same ashift value as the existing pool when adding the SSD(s):\\ ''sudo zpool add -o ashift=12 //tank// log mirror //ssd1 ssd2//''
-  - Verify command succeeded:\\ ''zpool list -v && zdb -C | grep "ashift\| name:"''+  - Verify command succeeded:\\ ''%%zpool list -v && zdb -C | grep "ashift\| name:"%%''
projects/homelab/openzfs_notes.1728198328.txt.gz · Last modified: 2024/10/06 07:05 by Andrew Yong