I have Ubuntu 18.04.6 server installed on a PC, and a zpool striped named frnl composed of 2 HDDs of 2TB each. My problem is that recently the zpool isn't automounted at boot, it needs to run

alex@freenalex:/$ sudo zpool import frnl

to activate the filesystem. Otherwise, the filesystem isn't shown in the df command, and the /frnl/ directory is empty. When I do the previous command, the /frnl/ directory gets filled with its folders/files and everything works as I want.

I saw the thread zpools don't automatically mount after boot but I'm not sure about the compatibility of their answers with my system (because it's an older system).

How can I automount my zfs pool at boot? do I have to install mountall? or if can't do a normal approach, Is there any alternative?

  • Before attempting a solution, it would be useful to know why the pool stopped mounting automatically in the first place. Has there been a recent software update or configuration change?
    – matigo
    Commented Aug 26, 2022 at 11:21
  • No, neither a configuration change nor a software update (AFAIK). I don't have a clue of what could be the cause
    – Free
    Commented Aug 26, 2022 at 11:29
  • I remember now, there are directories inside the mount point (/frnl/) that are shared via samba and I edited the samba configuration many times recently , and added also new samba shares. Apart of that, I don't know any more configuration changes. And none software updates
    – Free
    Commented Aug 26, 2022 at 11:33
  • Will there be any problem if I execute the mentioned command - (sudo zpool import frnl) - one time each minute, via cron?
    – Free
    Commented Aug 30, 2022 at 18:01
  • Finally I added a cron job with sudo crontab -e and the line I added is @reboot /sbin/zpool import frnl. This way the zpool is imported every reboot and since then I have no more problems. Thanks anyway @matigo
    – Free
    Commented Oct 24, 2022 at 15:57


You must log in to answer this question.

Browse other questions tagged .