N6XRE DokuWiki

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
zfs [2019/10/08 10:25] – [10. ZFS Datasets dissappear on reboot] garyrustzfs [2021/10/31 14:59] (current) – [2. Comparison of file systems - ZFS Wiki] garyrust
Line 1: Line 1:
-[[Programming_and_Computing|Programming and Computing]] - [[ShellScript]]\\+[[Programming_and_Computing|Programming and Computing]] - [[ShellScript]] - [[Linux]] \\
 [[Installing_Linux_on_TBao_Laptops|Installing Linux on TBao Laptops]] - [[PartedMagic]]\\ [[Installing_Linux_on_TBao_Laptops|Installing Linux on TBao Laptops]] - [[PartedMagic]]\\
 <html> <html>
Line 32: Line 32:
 src="http://icons.iconarchive.com/icons/papirus-team/papirus-apps/72/google-icon.png">Google Search</a></html> \\ src="http://icons.iconarchive.com/icons/papirus-team/papirus-apps/72/google-icon.png">Google Search</a></html> \\
 \\ \\
 +===== -  Ubuntu 21.10 "Impish Indri": Tested with ZFS, Snapshots & Backups! =====
 +[[zfs#top|Top]] \\
 +[[https://youtu.be/rkYU6_nkplk|Ubuntu 21.10 "Impish Indri": Tested with ZFS, Snapshots & Backups!]] \\
 +
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/rkYU6_nkplk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html> \\
 +===== -  Encrypted ZFS Ubuntu Installation =====
 +[[zfs#top|Top]] \\
 +[[https://help.ubuntu.com/community/encryptedZfs|Encrypted ZFS Ubuntu Installation]] \\
 +
 +<html>
 +<iframe width="800" height="400" src="https://help.ubuntu.com/community/encryptedZfs" allowfullscreen></iframe>
 +</html> \\
 +
 +===== -  Comparison of file systems - ZFS Wiki =====
 +[[zfs#top|Top]] \\
 +[[http://n6xre.duckdns.org:73/tiddlydesktop/tiddlyspot/Parted_Magic_TiddlyWiki.html#containerd%20and%20docker|containerd and docker]] TW Notebook \\
 +
 +<html>
 +<iframe width="800" height="400" src="http://n6xre.duckdns.org:8000/wikipedia_en_all_novid_2017-08/A/Comparison_of_file_systems.html" allowfullscreen></iframe>
 +</html> \\
 ===== -  Builing ZFS on Raspberry Pi 3 running Rasbpian ===== ===== -  Builing ZFS on Raspberry Pi 3 running Rasbpian =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
  
  
Line 40: Line 62:
 <html> <html>
 </HTML> </HTML>
-<html><iframe width="800" height="400" src="https://www.ecosia.org/search?q=Builing+ZFS+on+Raspberry+Pi+3+running+Rasbpian" allowfullscreen></iframe></html>+https://www.bing.com/search?q=Builing+ZFS+on+Raspberry+Pi+3+running+Rasbpian \\ 
 +<html><iframe width="800" height="400" src="https://www.bing.com/search?q=Builing+ZFS+on+Raspberry+Pi+3+running+Rasbpian" allowfullscreen></iframe></html>
  
 <HTML> <HTML>
Line 46: Line 69:
 </HTML> </HTML>
 \\ \\
 +===== -  ZFS Without Tears =====
 +**[[zfs#top|Top]]**\\
 +https://www.csparks.com/ZFS%20Without%20Tears.md \\
 +<html>
 +<iframe width="60%" height="800" src="https://www.csparks.com/ZFS%20Without%20Tears.md" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 +===== -  Configuring ZFS Cache for High Speed IO =====
 +**[[zfs#top|Top]]**\\
 +[[https://www.amazon.com/dp/B07P22T3VD/|Kingston A400 120G Internal SSD M.2 2280 SA400M8/120G - Increase Performance]] - Amazon Price:$21.99 \\
 +[[https://www.amazon.com/dp/B076DCNZM3/|M.2 SATA SSD to USB 3.0 External SSD Adapter Enclosure with UASP, Support NGFF M.2 2280 2260 2242 2230 SSD with Key B/Key B+M]] - Amazon Price:$13.59 \\
 +https://linuxhint.com/configuring-zfs-cache/ \\
 +<html>
 +<iframe width="60%" height="800" src="https://linuxhint.com/configuring-zfs-cache/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 +
 +===== -  ZFS / RAIDZ Capacity Calculator (beta) =====
 +**[[zfs#top|Top]]**\\
 +https://wintelguy.com/zfs-calc.pl \\
 +<html>
 +<iframe width="60%" height="800" src="https://wintelguy.com/zfs-calc.pl" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 +
 +
 +===== -  Things Nobody Told You About ZFS =====
 +**[[zfs#top|Top]]**\\
 +http://nex7.blogspot.com/2013/03/readme1st.html \\
 +<html>
 +<iframe width="60%" height="800" src="http://nex7.blogspot.com/2013/03/readme1st.html" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 +===== -  The Case For Using ZFS Compression =====
 +**[[zfs#top|Top]]**\\
 +https://www.servethehome.com/the-case-for-using-zfs-compression/ \\
 +<html>
 +<iframe width="60%" height="800" src="https://www.servethehome.com/the-case-for-using-zfs-compression/" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 +</html> \\
 +===== - ZFS administration tool for Webmin =====
 +**[[zfs#top|Top]]**\\
 +https://github.com/jonmatifa/zfsmanager \\
 +ZFS_administration_tool_for_Webmin.pdf
 +{{obj:noreference 800,800 > http://n6xre.duckdns.org:8080/dokuwiki/pdf/ZFS_administration_tool_for_Webmin.pdf}} \\
 +
 ===== - ZFS pool is a collection of disk devices that are grouped together =====  ===== - ZFS pool is a collection of disk devices that are grouped together ===== 
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
 **Click to go to page**\\ **Click to go to page**\\
  
Line 58: Line 122:
 src="./img/ZFS_Pool_layouts.png"</a> src="./img/ZFS_Pool_layouts.png"</a>
 </html> \\ </html> \\
-===== -  Comparison of file systems - ZFS Wiki ===== 
-[[Linux#top|Top]] \\ 
-[[http://174.72.206.112:73/tiddlydesktop/tiddlyspot/Parted_Magic_TiddlyWiki.html#containerd%20and%20docker|containerd and docker]] TW Notebook \\ 
  
-<html> 
-<iframe width="800" height="400" src="http://174.72.206.112:8000/wikipedia_en_all_novid_2017-08/A/Comparison_of_file_systems.html" allowfullscreen></iframe> 
-</html> \\ 
 ===== -  Interesting things you can do with ZFS ===== ===== -  Interesting things you can do with ZFS =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
 https://www.youtube.com/watch?v=6Bo4vYgmVhk \\ https://www.youtube.com/watch?v=6Bo4vYgmVhk \\
 <html> <html>
Line 78: Line 136:
 ===== -  OpenZFS channel ===== ===== -  OpenZFS channel =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
  
  
Line 96: Line 154:
 ===== -  ZFS Wiki ===== ===== -  ZFS Wiki =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
 **Also see [[https://www.maketecheasier.com/use-zfs-filesystem-ubuntu-linux/|How to Use the ZFS Filesystem on Ubuntu Linux]]**\\ **Also see [[https://www.maketecheasier.com/use-zfs-filesystem-ubuntu-linux/|How to Use the ZFS Filesystem on Ubuntu Linux]]**\\
  
Line 112: Line 170:
 ===== -  ZFS quick command reference with examples ===== ===== -  ZFS quick command reference with examples =====
  
-**[[Linux#top|Top]]**\\ +**[[zfs#top|Top]]**\\
  
 +https://www.unixarena.com/2012/07/zfs-quick-command-reference-with.html/ \\
 <HTML> <HTML>
 <html> <html>
Line 126: Line 184:
 ===== -  Managing Devices in ZFS Storage Pools ===== ===== -  Managing Devices in ZFS Storage Pools =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
  
  
Line 141: Line 199:
 ===== -  Zfs playlist ===== ===== -  Zfs playlist =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
  
  
Line 160: Line 218:
 ===== -  ZFS Datasets dissappear on reboot ===== ===== -  ZFS Datasets dissappear on reboot =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
  
  
 <code> <code>
-I have installed ZFS(0.6.5) in my Centos 7 and I have also created a zpool, everything works fine apart from the fact that my datasets disappear on reboot. +I have installed ZFS(0.6.5) in my Centos 7 and I have also created a zpool,  
-I have been trying to debug this issue with the help of various online resources and blogs but couldn't get the desired result. +everything works fine apart from the fact that my datasets disappear on reboot. 
-After reboot, when I issue the zfs list command I get "no datasets available" , and zpool list gives "no pools available" After doing a lot of online research, I could make it work by manually importing the cache file using zpool import -c cachefile, but still I had to run zpool set cachefile=/etc/zfs/zpool.cache Pool before the reboot so as to import it later on after reboot.+I have been trying to debug this issue with the help of various online resources  
 +and blogs but couldn't get the desired result. 
 +After reboot, when I issue the zfs list command I get "no datasets available" , and  
 +zpool list gives "no pools available" After doing a lot of online research, I  
 +could make it work by manually importing the cache file using zpool  
 +import -c cachefile, but still I had to run zpool set cachefile=/etc/zfs/zpool.cache Pool  
 +before the reboot so as to import it later on after reboot.
  
 This is what systemctl status zfs-import-cache looks like, This is what systemctl status zfs-import-cache looks like,
Line 258: Line 322:
 # See zed(8) for more information on available options. # See zed(8) for more information on available options.
 #ZED_ARGS="-M" #ZED_ARGS="-M"
-I am not sure if this is a known issue,.. if yes, Is there any workaround for this? perhaps an easy way to preserve my datasets after reboot and preferably without the overhead of an cache file.+I am not sure if this is a known issue,.. if yes, Is there any workaround  
 +for this? perhaps an easy way to preserve my datasets after reboot and  
 +preferably without the overhead of an cache file.
  
 linux zfs centos7 zfsonlinux linux zfs centos7 zfsonlinux
Line 268: Line 334:
 143117 143117
 what zpool status -v and zpool import says? – ostendali Oct 28 '15 at 10:28 what zpool status -v and zpool import says? – ostendali Oct 28 '15 at 10:28
-Hi, zpool status -v zpool status -v no pools available And, zpool import gives me this pool: zfsPool id: 10064980395446559551 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: zfsPool ONLINE sda4 ONLINE – Vincent Oct 28 '15 at 10:39 +Hi, zpool status -v zpool status -v no pools available And, zpool import  
-zfs import is how I could make it work, by setting the cachefile initially using the set cachefile command – Vincent Oct 28 '15 at 10:40 +gives me this pool: zfsPool id: 10064980395446559551 state: ONLINE action:  
-you missed /etc/init/zpool-import.conf, can you post the content of that file as well? – ostendali Oct 28 '15 at 11:19+The pool can be imported using its name or numeric identifier. config: zfsPool  
 +ONLINE sda4 ONLINE – Vincent Oct 28 '15 at 10:39 
 +zfs import is how I could make it work, by setting the cachefile initially  
 +using the set cachefile command – Vincent Oct 28 '15 at 10:40 
 +you missed /etc/init/zpool-import.conf, can you post the content of that file  
 +as well? – ostendali Oct 28 '15 at 11:19
 1 1
-Is the ZFS target enabled? systemctl status zfs.target – Michael Hampton♦ Oct 28 '15 at 12:44+Is the ZFS target enabled? systemctl status zfs.target – Michael Hampton♦  
 +Oct 28 '15 at 12:44
 show 6 more comments show 6 more comments
 3 Answers 3 Answers
Line 280: Line 352:
 down vote down vote
 accepted accepted
-Please make sure the zfs service (target) is enabled. That's what handles pool import/export on boot/shutdown.+Please make sure the zfs service (target) is enabled. That's what handles pool  
 +import/export on boot/shutdown.
  
 zfs.target      loaded active active    ZFS startup target zfs.target      loaded active active    ZFS startup target
  
-You should never have to struggle with this. If you have a chance, run an update on your zfs distribution, as I know the startups services have improved over the last few releases:+You should never have to struggle with this. If you have a chance, run an update  
 +on your zfs distribution, as I know the startups services have improved over the  
 +last few releases:
  
 [root@zfs2 ~]# rpm -qi zfs [root@zfs2 ~]# rpm -qi zfs
Line 295: Line 370:
 ewwhite ewwhite
 170k73356704 170k73356704
-Hi, I had tested 0.6.5.3 as well which happens to be the latest release I believe, but still faced this issue, with .6.5.3 I had to even run modprobe zfs everytime I did a reboot to load the modules. Btw, Target is not enabled please check the output in comments above(reply to Michael). May I know how to set one ? thanks. – Vincent Oct 28 '15 at 13:02 +Hi, I had tested 0.6.5.3 as well which happens to be the latest release I believe,  
-All you need to do is probably something like: systemctl enable zfs.target – ewwhite Oct 28 '15 at 13:19+but still faced this issue, with .6.5.3 I had to even run modprobe zfs everytime  
 +I did a reboot to load the modules. Btw, Target is not enabled please check the  
 +output in comments above(reply to Michael). May I know how to set one ? thanks.  
 +– Vincent Oct 28 '15 at 13:02 
 +All you need to do is probably something like: systemctl enable zfs.target – ewwhite  
 +Oct 28 '15 at 13:19
 add a comment add a comment
 up vote up vote
 3 3
 down vote down vote
-I also had the problem of the zfs disappearing after a reboot. Running CentOS 7.3 and ZFS 0.6.5.9 Reimporting brought it back (zpool import zfspool) only until the next reboot.+I also had the problem of the zfs disappearing after a reboot. Running CentOS 7.3  
 +and ZFS 0.6.5.9 Reimporting brought it back (zpool import zfspool) only until the  
 +next reboot.
  
 Here's the command that worked for me (to make it persist through reboots): Here's the command that worked for me (to make it persist through reboots):
Line 321: Line 403:
 1 1
 down vote down vote
-ok, so the pool is there, which means the problem is with your zfs.cache, it is not persistent and that is why it looses its config when your reboot. what I'd suggest to do is to run:+ok, so the pool is there, which means the problem is with your zfs.cache, it is not  
 +persistent and that is why it looses its config when your reboot. what I'd suggest  
 +to do is to run:
  
       zpool import zfsPool        zpool import zfsPool 
       zpool list        zpool list 
-And check if the if it is available. Reboot the server and see if it comes back, if it doesn't then perform the same steps and run:+And check if the if it is available. Reboot the server and see if it comes back,  
 +if it doesn't then perform the same steps and run:
  
       zpool scrub       zpool scrub
Line 334: Line 419:
       /etc/default/zfs.conf       /etc/default/zfs.conf
       /etc/init/zpool-import.conf       /etc/init/zpool-import.conf
-Alternatively, if you are looking for workaround to this issue you can set it of course as follow.+Alternatively, if you are looking for workaround to this issue you can set it  
 +of course as follow.
  
 Change the value in from 1 to 0: Change the value in from 1 to 0:
Line 346: Line 432:
 ===== -  Why use zfs for virtual machines?? ===== ===== -  Why use zfs for virtual machines?? =====
  
-**[[Linux#top|Top]]**\\+**[[zfs#top|Top]]**\\
 https://www.youtube.com/watch?v=QucASjuGAWY \\ https://www.youtube.com/watch?v=QucASjuGAWY \\
 <html> <html>
 <iframe width="560" height="315" src="https://www.youtube.com/embed/QucASjuGAWY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> <iframe width="560" height="315" src="https://www.youtube.com/embed/QucASjuGAWY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 </html>\\ </html>\\
 +===== -  Welcome to the FreeNAS Documentation Project! =====
  
 +**[[zfs#top|Top]]**\\
 +https://www.ixsystems.com/documentation/freenas/11.2-U6/freenas.html \\
 +FreeNAS_User_Guide.pdf \\
 +{{obj:noreference 60%,800 > http://n6xre.duckdns.org:8080/dokuwiki/pdf/FreeNAS_User_Guide.pdf}} \\
 +
 +[[https://www.youtube.com/playlist?list=PLgKBSCAcGA57juSDNE09bc7Ub491DIFVj|FreeNAS® How-To Tutorial Guides]]\\
 +
 +
 +<HTML>
 +<html>
 +</HTML>
 +<html><iframe width="800" height="450" src="https://www.youtube.com/embed/videoseries?list=PLgKBSCAcGA57juSDNE09bc7Ub491DIFVj" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></html>
 +
 +<HTML>
 +</html>
 +</HTML>
 +\\
 +[[https://www.youtube.com/watch?v=2zVih_VuGWY|How To Setup Shares, Groups & User Permissions in FreeNAS 11]]\\
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube.com/embed/2zVih_VuGWY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>\\
 +[[https://www.youtube.com/watch?v=-KmgwQORAX8|Virtualization Tutorial: Configuring Citrix XenServer With FreeNAS & ISCSI For Storage]]\\
 +<html>
 +<iframe width="560" height="315" src="https://www.youtube.com/embed/-KmgwQORAX8" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html>\\
 +
 +===== -  OpenZFS Basics by Matt Ahrens and George Wilson =====
 +**[[zfs#top|Top]]**\\
 +https://youtu.be/MsY-BafQgj4 \\
 +<html>
 +<iframe width="800" height="450" src="https://www.youtube.com/embed/MsY-BafQgj4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
 +</html> \\
 +**[[zfs#top|Top]]**\\
  
QR Code
QR Code zfs (generated for current page)