Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2024 09:16:57 -0500
From:      Dennis Clarke <dclarke@blastwave.org>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: zpools no longer exist after boot
Message-ID:  <043aee93-3dbd-4e6f-b0ee-fc6ebae9b8ef@blastwave.org>
In-Reply-To: <1764191396.6959.1732802309600@localhost>
References:  <1764191396.6959.1732802309600@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?043aee93-3dbd-4e6f-b0ee-fc6ebae9b8ef>