0

my zfs mountpoints are disappearing on reboot but able to get it back after import. please suggest me the solution?

root@mfsbsd:~ # zpool import edjstorage
root@mfsbsd:~ # zfs list
NAME                 USED  AVAIL  REFER  MOUNTPOINT
edjstorage           621M  12.5G    24K  /edjstorage
edjstorage/boot      621M  12.5G   621M  /
edjstorage/conf       24K  12.5G    24K  /conf
edjstorage/storage    24K  12.5G    24K  /storage
6
  • man fstab # for some insight
    – Hannu
    Commented Jan 25, 2021 at 17:06
  • do we need to add mount points in fstab if we use zfs filesystem?. Commented Jan 25, 2021 at 17:09
  • if you're using any filesystem, I would presume. I have yet to try zfs. You better google some.
    – Hannu
    Commented Jan 25, 2021 at 17:11
  • 1
    yes i did already, not required if we use zfs file system. do you have any other ideas to fix this issue Commented Jan 25, 2021 at 17:12
  • There most probably is some kind of guide somewhere for "zfs setup and initialization", again google.
    – Hannu
    Commented Jan 25, 2021 at 17:24

2 Answers 2

0

Check the canmount property of the file systems, like zfs get canmount edjstorage/boot. It should be set to on and my guess is yours is set to noauto. Change it to on with zfs set canmount=on edjstorage/bootand do this for all file systems you want to automount.

0
# systemctl enable zfs-import-cache
# systemctl enable zfs-mount
# systemctl enable zfs-import.target
1
  • 3
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Oct 25, 2021 at 8:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .