FUN WITH LINUX

ZFS: zpool doesnt get imported automatically after reboot

26 November 2014

Today I installed zfs on debian. The installation was straight forward but later I had some problems with my pool. After every single reboot, I had to import the zfspool manually(“zpool import -a”). I searched the internet for a proper solution, but I just found something like: “use ZFS_MOUNT=yes in /etc/default/zfs”. Even with this option it just doesn’t automatically import my pools. 

I solved this with the following entry in /etc/default/zfs:

USE_DISK_BY_ID='no'

This entry enables the use of the pool-cache instead of disk-id’s.

[ Linux  Sysadmin  ZFS  ]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 Unported License.

Copyright 2015-present Hoti