Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zfs [2019/10/08 10:25] – [10. ZFS Datasets dissappear on reboot] garyrust | zfs [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]]\\ | ||
< | < | ||
Line 32: | Line 32: | ||
src=" | src=" | ||
\\ | \\ | ||
+ | ===== - Ubuntu 21.10 " | ||
+ | [[zfs# | ||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - Encrypted ZFS Ubuntu Installation ===== | ||
+ | [[zfs# | ||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | ===== - Comparison of file systems - ZFS Wiki ===== | ||
+ | [[zfs# | ||
+ | [[http:// | ||
+ | |||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
===== - Builing ZFS on Raspberry Pi 3 running Rasbpian ===== | ===== - Builing ZFS on Raspberry Pi 3 running Rasbpian ===== | ||
- | **[[Linux# | + | **[[zfs# |
Line 40: | Line 62: | ||
< | < | ||
</ | </ | ||
- | < | + | https:// |
+ | < | ||
< | < | ||
Line 46: | Line 69: | ||
</ | </ | ||
\\ | \\ | ||
+ | ===== - ZFS Without Tears ===== | ||
+ | **[[zfs# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - Configuring ZFS Cache for High Speed IO ===== | ||
+ | **[[zfs# | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | ===== - ZFS / RAIDZ Capacity Calculator (beta) ===== | ||
+ | **[[zfs# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== - Things Nobody Told You About ZFS ===== | ||
+ | **[[zfs# | ||
+ | http:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - The Case For Using ZFS Compression ===== | ||
+ | **[[zfs# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | ===== - ZFS administration tool for Webmin ===== | ||
+ | **[[zfs# | ||
+ | https:// | ||
+ | ZFS_administration_tool_for_Webmin.pdf | ||
+ | {{obj: | ||
+ | |||
===== - 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# | + | **[[zfs# |
**Click to go to page**\\ | **Click to go to page**\\ | ||
Line 58: | Line 122: | ||
src=" | src=" | ||
</ | </ | ||
- | ===== - Comparison of file systems - ZFS Wiki ===== | ||
- | [[Linux# | ||
- | [[http:// | ||
- | < | ||
- | <iframe width=" | ||
- | </ | ||
===== - Interesting things you can do with ZFS ===== | ===== - Interesting things you can do with ZFS ===== | ||
- | **[[Linux# | + | **[[zfs# |
https:// | https:// | ||
< | < | ||
Line 78: | Line 136: | ||
===== - OpenZFS channel ===== | ===== - OpenZFS channel ===== | ||
- | **[[Linux# | + | **[[zfs# |
Line 96: | Line 154: | ||
===== - ZFS Wiki ===== | ===== - ZFS Wiki ===== | ||
- | **[[Linux# | + | **[[zfs# |
**Also see [[https:// | **Also see [[https:// | ||
Line 112: | Line 170: | ||
===== - ZFS quick command reference with examples ===== | ===== - ZFS quick command reference with examples ===== | ||
- | **[[Linux# | + | **[[zfs# |
+ | https:// | ||
< | < | ||
< | < | ||
Line 126: | Line 184: | ||
===== - Managing Devices in ZFS Storage Pools ===== | ===== - Managing Devices in ZFS Storage Pools ===== | ||
- | **[[Linux# | + | **[[zfs# |
Line 141: | Line 199: | ||
===== - Zfs playlist ===== | ===== - Zfs playlist ===== | ||
- | **[[Linux# | + | **[[zfs# |
Line 160: | Line 218: | ||
===== - ZFS Datasets dissappear on reboot ===== | ===== - ZFS Datasets dissappear on reboot ===== | ||
- | **[[Linux# | + | **[[zfs# |
< | < | ||
- | 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' | + | 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" | + | I have been trying to debug this issue with the help of various online resources |
+ | and blogs but couldn' | ||
+ | After reboot, when I issue the zfs list command I get "no datasets available" | ||
+ | zpool list gives "no pools available" | ||
+ | could make it work by manually importing the cache file using zpool | ||
+ | import -c cachefile, but still I had to run zpool set cachefile=/ | ||
+ | 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. | ||
# | # | ||
- | 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 / | + | 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 / | ||
+ | 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/ | + | Please make sure the zfs service (target) is enabled. That's what handles pool |
+ | import/ | ||
zfs.target | zfs.target | ||
- | You should never have to struggle with this. If you have a chance, run an update on your zfs distribution, | + | You should never have to struggle with this. If you have a chance, run an update |
+ | on your zfs distribution, | ||
+ | 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' | + | And check if the if it is available. Reboot the server and see if it comes back, |
+ | if it doesn' | ||
zpool scrub | zpool scrub | ||
Line 334: | Line 419: | ||
/ | / | ||
/ | / | ||
- | Alternatively, | + | Alternatively, |
+ | 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# | + | **[[zfs# |
https:// | https:// | ||
< | < | ||
<iframe width=" | <iframe width=" | ||
</ | </ | ||
+ | ===== - Welcome to the FreeNAS Documentation Project! ===== | ||
+ | **[[zfs# | ||
+ | https:// | ||
+ | FreeNAS_User_Guide.pdf \\ | ||
+ | {{obj: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
+ | [[https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | [[https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | |||
+ | ===== - OpenZFS Basics by Matt Ahrens and George Wilson ===== | ||
+ | **[[zfs# | ||
+ | https:// | ||
+ | < | ||
+ | <iframe width=" | ||
+ | </ | ||
+ | **[[zfs# | ||