ZFS pool doesn't import after reboot

2 posts / 0 new
Last post
#1 Thu, 2016-12-29 15:06
figrobster@gmail.com
  • figrobster@gmail.com's picture
  • Offline
  • Last seen: 1 year 2 months ago
  • Joined: 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?

Tue, 2017-05-30 20:49
kegwin
  • kegwin's picture
  • Offline
  • Last seen: 5 months 1 week ago
  • Joined: 2017-05-30

Did you ever find a fix?

EDIT: I think I figured it out:

rc-update add zfs-import
rc-update add zfs-mount

Log in or register to post comments