Site Tools


projects:homelab:openzfs_notes

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:homelab:openzfs_notes [2024/10/06 07:50] – build zfs Andrew Yongprojects:homelab:openzfs_notes [2025/01/22 07:57] (current) – [Building OpenZFS on Fedora] Back to Official OpenZFS Releases🔗 Andrew Yong
Line 4: Line 4:
  
   - ''%%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%%''   - ''%%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%%''+  - ''%%git clone https://github.com/openzfs/zfs.git --branch zfs-2.3.0-rc4 --single-branch --depth=1%%''
   - ''cd ./zfs''   - ''cd ./zfs''
   - ''./autogen.sh''   - ''./autogen.sh''
Line 10: Line 10:
   - ''make rpm rpm-dkms''   - ''make rpm rpm-dkms''
   - ''createrepo .''   - ''createrepo .''
-  - ''cat %%<<%% EOF | sudo tee -a /etc/yum.repos.d/zfs-local.repo\\ [zfs-local]\\ name=ZFS on Linux for Fedora $releasever Local\\ baseurl=%%file:///path/to/git/zfs%%\\ enabled=1\\ EOF'' +  - ''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 zfs zfs-dkms''+  - ''%%sudo dnf upgrade --refresh --nogpgcheck zfs zfs-dkms%%''
  
 +==== Back to Official OpenZFS Releases ====
  
 +  - [[https://openzfs.github.io/openzfs-docs/Getting%20Started/Fedora/index.html#installation|Getting Started / Fedora / Installation]]
 +  - ''%%sudo dnf upgrade --refresh zfs zfs-dkms%%''
 +  - ''sudo rm /etc/yum.repos.d/zfs-local.repo''
 ===== Adding Hardware 512e SSDs to 512e/4kn zpool ===== ===== Adding Hardware 512e SSDs to 512e/4kn zpool =====
  
Line 30: Line 34:
     * 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.1728201032.txt.gz · Last modified: 2024/10/06 07:50 by Andrew Yong