[OpenIndiana-discuss] export pool at shutdown and import at boot up
Edward Ned Harvey (openindiana)
openindiana at nedharvey.com
Tue May 28 02:36:40 UTC 2013
> From: Bill Sommerfeld [mailto:sommerfeld at alum.mit.edu]
>
> On 05/27/13 17:25, Edward Ned Harvey (openindiana) wrote:
> > I have some external storage which isn't super reliable. If I don't
> > export it before shutdown, it will often cause the boot to fail, as
> > it doesn't mount properly.
> >
> > I would like to make that pool automatically export during shutdown,
> > or somehow flag it so the system will never try to import or mount it
> > during bootup. ... is there a better way, like
> > setting some sort of pool property, or sticking a flag in some
> > defaults file, or tweaking the zfs cache file or something?
>
> See the -c cachefile option to zpool import and the "cachefile" pool
> property; pools that aren't listed in the default system pool cache file
> aren't auto-imported at boot time.
Looks like this should do it:
zpool set cachefile=none externalpool
Or if I wanted to do it manually,
zpool import -c none externalpool
More information about the OpenIndiana-discuss
mailing list