Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2017 20:59:53 -0700
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: zpool import -N mounts filesystems anyway
Message-ID:  <eb778163-8387-fd55-8e8f-d65ec221e6e8@holgerdanske.com>
In-Reply-To: <7f41df25-df2e-298e-d33e-cc95874e831c@bluerosetech.com>
References:  <7f41df25-df2e-298e-d33e-cc95874e831c@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/17/17 17:00, Mel Pilgrim wrote:
> I need to import a pool without mounting its filesystems, but when I use
> the -N argument to zpool import to, per the man page, "Import the pool
> without mounting any file systems", it mounts the filesystems anyway.
>
> I've tried search for an answer to this, but the question is too
> ambiguous to get a decent search result.
>
> How do I tell ZFS to not mount anything on import?

Which version of FreeBSD?

2017-06-17 20:55:17 dpchrist@freebsd ~
$ freebsd-version
11.0-RELEASE-p10

2017-06-17 20:55:19 dpchrist@freebsd ~
$ uname -a
FreeBSD freebsd 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 
08:42:58 UTC 2017 
root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386


My man 8 zpool shows three forms for import:

      zpool import [-d dir | -c cachefile] [-D]
      zpool import [-o mntopts] [-o property=value] ... [-d dir | -c 
cachefile]
            [-D] [-f] [-m] [-N] [-R root] [-F [-n]] -a
      zpool import [-o mntopts] [-o property=value] ... [-d dir | -c 
cachefile]
            [-D] [-f] [-m] [-N] [-R root] [-F [-n]] pool | id [newpool]


Only the latter two offer -N.


It might help if you showed your console session -- exact command, exact 
output.


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eb778163-8387-fd55-8e8f-d65ec221e6e8>