Jim Klimov via illumos-zfs
2014-07-02 11:59:11 UTC
Hello all,
I was converting a pool last month to be imported as an SMF service
(and a pre-requisite for the SMFized zones to start up) per my own
write-ups [1][2], and one of the "problems" that struck me was that
it was rather inconvenient on this machine to export the pool just
in order to remove it from zpool.cache and properly set up the SMF
service (i.e. no auto-import by the OS, only "uncached" import via
SMF explicitly) because it was busy with some long-running task
(in a zone on this pool).
So I wondered if it is possible to "expel" a pool from the system's
zpool.cache without exporting it and unmounting all its datasets?
The rationale is that I might get distracted and forget to do this
later; the host might crash or otherwise reboot at an inconvenient
time (they always do, following Murphy's laws), and then the OS
import would fire long before the SMFized pool import. This might
also be a problem (due to a number of causes that are outside this
question's scope).
[1]
http://wiki.openindiana.org/oi/Advanced+-+ZFS+Pools+as+SMF+services+and+iSCSI+loopback+mounts
[2] http://wiki.openindiana.org/display/oi/Zones+as+SMF+services
Thanks for ideas,
Jim
I was converting a pool last month to be imported as an SMF service
(and a pre-requisite for the SMFized zones to start up) per my own
write-ups [1][2], and one of the "problems" that struck me was that
it was rather inconvenient on this machine to export the pool just
in order to remove it from zpool.cache and properly set up the SMF
service (i.e. no auto-import by the OS, only "uncached" import via
SMF explicitly) because it was busy with some long-running task
(in a zone on this pool).
So I wondered if it is possible to "expel" a pool from the system's
zpool.cache without exporting it and unmounting all its datasets?
The rationale is that I might get distracted and forget to do this
later; the host might crash or otherwise reboot at an inconvenient
time (they always do, following Murphy's laws), and then the OS
import would fire long before the SMFized pool import. This might
also be a problem (due to a number of causes that are outside this
question's scope).
[1]
http://wiki.openindiana.org/oi/Advanced+-+ZFS+Pools+as+SMF+services+and+iSCSI+loopback+mounts
[2] http://wiki.openindiana.org/display/oi/Zones+as+SMF+services
Thanks for ideas,
Jim