ZFS Slow boot due to many VDEVs

Giovanni

Renowned Member
Apr 1, 2009
101
5
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!