zfs 安裝點在重新啟動時消失。如何修復它?

zfs 安裝點在重新啟動時消失。如何修復它?

我的 zfs 安裝點在重新啟動時消失,但在導入後能夠恢復。請建議我解決方案?

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

答案1

檢查canmount檔案系統的屬性,例如zfs get canmount edjstorage/boot.它應該設置為on,我猜你的設置為noauto。將其變更為onwithzfs set canmount=on edjstorage/boot並對要自動掛載的所有檔案系統執行此操作。

答案2

# systemctl enable zfs-import-cache
# systemctl enable zfs-mount
# systemctl enable zfs-import.target

相關內容