Changes for page ZFS - The Aaron Topponce Archive


on 2024-09-01 08:47

on 2024-09-01 12:35
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,12 @@ 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 + 1 1 = Install ZFS on Debian GNU/Linux = 2 2 3 3 == Table of Contents == ... ... @@ -9,39 +9,44 @@ 9 9 **Zpool Administration** 10 10 0. [[Install ZFS on Debian GNU/Linux>>doc:]] 11 11 ~1. [[VDEVs>>doc:.ZFS-Administration-Part-I-VDEVs.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 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]] 19 19 ))) 20 20 21 21 (% class="col-xs-12 col-xs-4" %) 22 22 ((( 23 23 **ZFS Administration** 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 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]] 33 33 ))) 34 34 35 35 (% class="col-xs-12 col-xs-4" %) 36 36 ((( 37 37 **Appendices** 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 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 + 42 42 ))) 43 43 ))) 44 44 57 +---- 58 + 45 45 **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. 46 46 47 47 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. ... ... @@ -50,11 +50,13 @@ 50 50 51 51 **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: 52 52 53 -{{{$ su - 67 +{{code language="bash session"}} 68 +$ su - 54 54 # wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_2%7Ewheezy_all.deb 55 55 # dpkg -i zfsonlinux_2~wheezy_all.deb 56 56 # apt-get update 57 -# apt-get install debian-zfs}}} 72 +# apt-get install debian-zfs 73 +{{/code}} 58 58 59 59 And that's it! 60 60 ... ... @@ -64,10 +64,7 @@ 64 64 65 65 --**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:-- 66 66 67 -{{{# cd /usr/share/man/man8/ 68 -# ln -s /share/man/man8/zdb.8 zdb.8 69 -# ln -s /share/man/man8/zfs.8 zfs.8 70 -# ln -s /share/man/man8/zpool.8 zpool.8}}} 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 }}}--- 71 71 72 72 Now, make your zpool, and start playing: 73 73 ... ... @@ -91,12 +91,3 @@ 91 91 {{box title="**Archived From:**"}} 92 92 [[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/]] 93 93 {{/box}} 94 - 95 -{{code language="bash session"}} 96 -$ su - 97 -# wget http://archive.zfsonlinux.org/debian/pool/main/z/zfsonlinux/zfsonlinux_2%7Ewheezy_all.deb 98 -# dpkg -i zfsonlinux_2~wheezy_all.deb 99 -# apt-get update 100 -# apt-get install debian-zfs 101 - 102 -{{/code}}