ZFS pool doesn't import after reboot
#1
Thu, 2016-12-29 15:06
figrobster@gmail.com
-
- Offline
- 1 year 2 months ago
- 2016-12-29
It's my first post here so I want to say hello everybody!
Few days ago I installed Alpine Linux 3.5 on my virtual machine. I installed zfs:
apk update apk upgrade apk add zfs apk add zfs-grsec
Creating zfs pool:
zpool create glowny raidz /dev/sdb /dev/sdc
Everything works fine.
zpool status glowny
gives all disk online and working. I edited default mountpoint and fstab file so disk is properly mounted in
/mnt/glowny
I even created some testing folders and files.
After rebooting the pool is missing. When i check it with
fdisk -l
i can see it, but first i have to import pool:
zpool import glowny mount -a
and everything is working perfectly again but i want to mount it automatically during startup.
I switched options:
ZPOOL_IMPORT_ALL_VISIBLE="yes" ZFS_POOL_IMPORT="glowny"
in
/etc/conf.d/zfs
Also i set cache file:
zpool set cachefile=/etc/zfs/zpool.cache glowny
(The file was existing)
but still after reboot i have to import pools and mount them manually. Do You have any ideas how to fix this issue?
Did you ever find a fix?
EDIT: I think I figured it out: