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 [2024/11/08 18:32] (current) – [Building OpenZFS on Fedora] use `pwd` Andrew Yong
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%%''
  
  
Line 30: 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.1728201032.txt.gz · Last modified: 2024/10/06 07:50 by Andrew Yong