재부팅 시 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

.canmountzfs get canmount edjstorage/boot​그것은 으로 설정되어야 on하며 내 추측으로는 귀하의 것이 로 설정되어 있을 것입니다 noauto. 이를 onwith 로 변경 zfs set canmount=on edjstorage/boot하고 자동 마운트하려는 모든 파일 시스템에 대해 이 작업을 수행합니다.

답변2

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

관련 정보