On 11/28/24 08:58, Ronald Klop wrote:
Btw:
The /etc/rc.d/zpool script looks into these cachefiles:
for cachefile in /etc/zfs/zpool.cache /boot/zfs/zpool.cache; do
I didn’t check where the cachefile pool property is used.
Hope this helps resolving the issue. Or maybe helps you to provide more
information about your setup.
Ah ha !
So the cachefile property needs to be a specific filename or that script
will have no clue.
Take a look :
titan# zpool get cachefile leaf proteus t0
NAME PROPERTY VALUE SOURCE
leaf cachefile - default
proteus cachefile - default
t0 cachefile - default
titan#
Those files exist and they seem to be either from early this year or
today :
titan# ls -l /etc/zfs/zpool.cache /boot/zfs/zpool.cache
-rw-r--r-- 1 root wheel 1424 Jan 16 2024 /boot/zfs/zpool.cache
-rw-r--r-- 1 root wheel 4960 Nov 28 13:03 /etc/zfs/zpool.cache
titan#
titan# date -u
Thu Nov 28 14:13:51 UTC 2024
titan#
titan# uptime
2:13PM up 2:19, 1 user, load averages: 0.00, 0.00, 0.00
titan#
titan# zpool set cachefile="/etc/zfs/zpool.cache" leaf
titan# zpool set cachefile="/etc/zfs/zpool.cache" proteus
titan# zpool set cachefile="/etc/zfs/zpool.cache" t0
However that will not work :
titan# zpool get cachefile leaf proteus t0
NAME PROPERTY VALUE SOURCE
leaf cachefile - default
proteus cachefile - default
t0 cachefile - default
Let me try just one pool :
titan# zpool get cachefile leaf
NAME PROPERTY VALUE SOURCE
leaf cachefile - default
titan# zpool set cachefile="/etc/zfs/zpool.cache" leaf
titan# zpool get cachefile leaf
NAME PROPERTY VALUE SOURCE
leaf cachefile - default
titan#
So this is even worse.
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken