Changes for page ZFS - The Aaron Topponce Archive

on 2024-09-01 12:35


on 2024-09-01 08:48
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1,12 +10,3 @@ 1 -{{box title="**Archivist Note:**"}} 2 -These pages were retrieved from archive.org as the original blog has gone dark. I've preserved them as I found the information both clear and useful when I was first learning about managing the ZFS file system. 3 - 4 -As of today (2024), some of this information may be out of date as support for ZFS under linux has improved considerably. However, the basic administration commands remain the same. 5 - 6 -- Drunk Monkey 7 - 2024-Aug-31 8 -{{/box}} 9 - 10 10 = Install ZFS on Debian GNU/Linux = 11 11 12 12 == Table of Contents == ... ... @@ -18,44 +18,39 @@ 18 18 **Zpool Administration** 19 19 0. [[Install ZFS on Debian GNU/Linux>>doc:]] 20 20 ~1. [[VDEVs>>doc:.ZFS-Administration-Part-I-VDEVs.WebHome]] 21 -2. [[RAIDZ>>doc:.ZFS-Administration-Part-II-RAIDZ.WebHome]]22 -3. [[The ZFS Intent Log (ZIL)>>doc:.ZFS-Administration-Part-III-The-ZFS-Intent-Log.WebHome]]23 -4. [[The Adjustable Replacement Cache (ARC)>>doc:.ZFS-Administration-Part-IV-The-Adjustable-Replacement-Cache.WebHome]]24 -5. [[Exporting and Importing Storage Pools>>doc:.ZFS-Administration-Part-V-Exporting-and-Importing-zpools.WebHome]]25 -6. [[Scrub and Resilver>>doc:.ZFS-Administration-Part-VI-Scrub-and-Resilver.WebHome]]26 -7. [[Getting and Setting Properties>>doc:.ZFS-Administration-Part-XVI-Getting-and-Setting-Properties.WebHome]]27 -8. [[Best Practices and Caveats>>doc:.ZFS-Administration-Part-XVII-Best-Practices-and-Caveats.WebHome]]12 +2. RAIDZ 13 +3. The ZFS Intent Log (ZIL) 14 +4. The Adjustable Replacement Cache (ARC) 15 +5. Exporting and Importing Storage Pools 16 +6. Scrub and Resilver 17 +7. Getting and Setting Properties 18 +8. Best Practices and Caveats 28 28 ))) 29 29 30 30 (% class="col-xs-12 col-xs-4" %) 31 31 ((( 32 32 **ZFS Administration** 33 -9. [[Copy-on-write>>doc:.ZFS-Administration-Part-IX-Copy-on-write.WebHome]]34 -10. [[Creating Filesystems>>doc:.ZFS-Administration-Part-X-Creating-Filesystems.WebHome]]35 -~11. [[Compression and Deduplication>>doc:.ZFS-Administration-Part-XI-Compression-and-Deduplication.WebHome]]36 -12. [[Snapshots and Clones>>doc:.ZFS-Administration-Part-XII-Snapshots-and-Clones.WebHome]]37 -13. [[Sending and Receiving Filesystems>>doc:.ZFS-Administration-Part-XIII-Sending-and-Receiving-Filesystems.WebHome]]38 -14. [[ZVOLs>>doc:.ZFS-Administration-Part-XIV-ZVOLS.WebHome]]39 -15. [[iSCSI, NFS and Samba>>doc:.ZFS-Administration-Part-XV-iSCSI-NFS-and-Samba.WebHome]]40 -16. [[Getting and Setting Properties>>doc:.ZFS-Administration-Part-XVI-Getting-and-Setting-Properties.WebHome]]41 -17. [[Best Practices and Caveats>>doc:.ZFS-Administration-Part-XVII-Best-Practices-and-Caveats.WebHome]]24 +9. Copy-on-write 25 +10. Creating Filesystems 26 +~11. Compression and Deduplication 27 +12. Snapshots and Clones 28 +13. Sending and Receiving Filesystems 29 +14. ZVOLs 30 +15. iSCSI, NFS and Samba 31 +16. Getting and Setting Properties 32 +17. Best Practices and Caveats 42 42 ))) 43 43 44 44 (% class="col-xs-12 col-xs-4" %) 45 45 ((( 46 46 **Appendices** 47 -A. [[Visualizing The ZFS Intent Log (ZIL)>>doc:.ZFS-Administration-Appendix-A-Visualizing-The-ZFS-Intent-LOG-ZIL.WebHome]] 48 -B. [[Using USB Drives>>doc:.ZFS-Administration-Appendix-B-Using-USB-Drives.WebHome]] 49 -C. [[Why You Should Use ECC RAM>>doc:.ZFS-Administration-Appendix-C-Why-You-Should-Use-ECC-RAM.WebHome]] 50 -D. [[The True Cost Of Deduplication>>doc:.ZFS-Administration-Appendix-D-The-True-Cost-Of-Deduplication.WebHome]] 51 -E. [[How A ZIL Improves Disk Latencies>>doc:.ZFS-Administration-Appendix-E-How-A-ZIL-Improves-Disk-Latencies.WebHome]] 52 - 53 - 38 +A. Visualizing The ZFS Intent Log (ZIL) 39 +B. Using USB Drives 40 +C. Why You Should Use ECC RAM 41 +D. The True Cost Of Deduplication 54 54 ))) 55 55 ))) 56 56 57 ----- 58 - 59 59 **UPDATE (May 06, 2012)**: I apologize for mentioning it supports encryption. Pool version 28 is the latest source that the Free Software community has. Encryption was not added until pool version 30. So, encryption is not supported natively with the ZFS on Linux project. However, you can use LUKS containers underneath, or you can use Ecryptfs for the entire filesystem, which would still give you all the checksum, scrubbing and data integrity benefits of ZFS. Until Oracle gets their act together, and releases the current sources of ZFS, crypto is not implemented. 60 60 61 61 Quick post on installing ZFS as a kernel module, not FUSE, on Debian GNU/Linux. The documents already exist for getting this going, I'm just hoping to spread this to a larger audience, in case you are unaware that it exists. ... ... @@ -64,13 +64,11 @@ 64 64 65 65 **UPDATE (May 05, 2013)**: I've updated the installation instructions. The old instructions included downloading the source and installing from there. At the time, that was all that was available. Since then, the ZFS on Linux project has created a proper Debian repository that you can use to install ZFS. Here is how you would do that: 66 66 67 -{{code language="bash session"}} 68 -$ su - 53 +{{{$ su - 69 69 # wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_2%7Ewheezy_all.deb 70 70 # dpkg -i zfsonlinux_2~wheezy_all.deb 71 71 # apt-get update 72 -# apt-get install debian-zfs 73 -{{/code}} 57 +# apt-get install debian-zfs}}} 74 74 75 75 And that's it! 76 76 ... ... @@ -80,7 +80,12 @@ 80 80 81 81 --**A word of note:** the manpages get installed to /share/man/. I found this troubling. You can modify your $MANPATH variable to include /share/man/man8/, or by creating symlinks, which is the approach I took:-- 82 82 83 ---{{{# cd /usr/share/man/man8/ # ln -s /share/man/man8/zdb.8 zdb.8 # ln -s /share/man/man8/zfs.8 zfs.8 # ln -s /share/man/man8/zpool.8 zpool.8 }}}--- 67 +{{code language="bash session"}} 68 +--# cd /usr/share/man/man8/-- 69 +# ln -s /share/man/man8/zdb.8 zdb.8 70 +# ln -s /share/man/man8/zfs.8 zfs.8 71 +# ln -s /share/man/man8/zpool.8 zpool.8 72 +{{/code}} 84 84 85 85 Now, make your zpool, and start playing: 86 86 ... ... @@ -104,3 +104,12 @@ 104 104 {{box title="**Archived From:**"}} 105 105 [[https:~~/~~/web.archive.org/web/20210605031658/https:~~/~~/pthree.org/2012/04/17/install-zfs-on-debian-gnulinux/>>https://web.archive.org/web/20210605031658/https://pthree.org/2012/04/17/install-zfs-on-debian-gnulinux/]] 106 106 {{/box}} 96 + 97 +{{code language="bash session"}} 98 +$ su - 99 +# wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_2%7Ewheezy_all.deb 100 +# dpkg -i zfsonlinux_2~wheezy_all.deb 101 +# apt-get update 102 +# apt-get install debian-zfs 103 + 104 +{{/code}}