-
markmcb
if i boot into single user mode, and attempt to import a zfs storage pool that is part of the normal system, i get "cannot import 'zstore': pool was previously in use from another system." ... is that expected? it suggests -f to import
-
markmcb
(this pool has never been part of another system)
-
rwp
Is hostname set at that point in single user mode?
-
rwp
I have only ever encountered that question prompt when I have actually been importing an array onto a different system.
-
rwp
( And also I am running root on zfs so I can't get to single user mode without having already had the array imported. )
-
markmcb
rwp: hostname is not set, so maybe that's it? it's not clear what it references.
-
rwp
In single user mode try setting the hostname before trying the import. That's a guess on my part.
-
markmcb
no luck. there's a bit about "Last accessed by (hostid=57e453c6)"
-
kevans
i'd suspect it's using hostuuid -- yeah
-
kevans
most likely smbios isn't supplying the hostid for this system, it was generated and we rely on the hostid rc script to set it from what's recorded in userland
-
markmcb
is there a way to trigger it so that it matches, or should i just ignore it and -f on the import?
-
rwp
TIL that there is a hostid and a hostuuid. Try this: sysctl kern.hostuuid kern.hostid
-
markmcb
hostid is 0, hostuuid is populated by no part matches what zfs import reports
-
markmcb
*but no part
-
rwp
Maybe run /etc/rc.d/hostid to set it? I am learning this all today for the first time myself.
-
rwp
It seems that systems might have a hardware uuid: kenv -q smbios.system.uuid
-
rwp
But the system saves the uuid it is using: cat /etc/hostid
-
markmcb
That did it. "/etc/rc.d/hostid start" populated hostid and now they match.
-
markmcb
import worked with no complaints
-
rwp
Good deal!
-
rwp
Notice I have avoided making any query about what needed to be done in single user mode that also needed to have an auxiliary data array mounted. :-)
-
markmcb
thanks for the help!
-
markmcb
if you're curious, i've got a bulk storage zfs device and planning to change some things up with how i'm setup and thought it wise to do it in single user mode
-
rwp
I was curious. Thanks! :-)
-
HER
So i have a jail and "service pf status" says it is enabled inside jail, but there is no /etc/pf.conf on the jail ... the host has /etc/pf.conf and pf enabled. When i run "service pf onestop" in the jail, it stops pf in the jail and in the host also. Why is this ? Is it a misconfiguration that i have ?