ZFS Slow boot due to many VDEVs

Giovanni

Renowned Member
Apr 1, 2009
113
12
83
Hi everyone,

I have 8 VDEVs on my proxmox server, I have had to resort to delay boot via /etc/default/zfs params in order for my system to boot properly.

I'm looking to enable these:
Code:
#ZPOOL_IMPORT_OPTS="-c /etc/zfs/zpool.cache"
#ZPOOL_CACHE=""

Has anyone here enabled these settings? If so any advice how to do it and force the creation of the cache file while the system is running so that next reboot it loads the cache file, my goal is to stop having to wait for all disks to be read before they zpool gets mounted.

Because my system was not booting due to zpools not being detected fast enough, I am currently using this workaround, I am hoping the cache will resolve the problem and so I can revert these back to default:

Code:
ZFS_INITRD_PRE_MOUNTROOT_SLEEP='50'
ZFS_INITRD_POST_MODPROBE_SLEEP='10'

Thanks