zdb cannot open ‘/etc/zfs/zpool.cache’: No such file or directory

Posted 12 January, 2017

zfs on linux

Uh-oh, trying out zdb and finding this error, doesn’t breath confidence does it ? Here is how you can solve this minor issue :

# zdb
cannot open '/etc/zfs/zpool.cache': No such file or directory

Just set it as a value to the zpool :

zpool set cachefile=/etc/zfs/zpool.cache poolname

getting the pool name can be done using

zpool get all

Thanks to github user, imp!

If you enjoyed this article, please consider buying me a Dr Pepper.
Fuel the beast!

Buy me a Dr PepperBuy me a Dr Pepper



Show Comments (0)
© SvennD