From owner-freebsd-questions@freebsd.org Sun Jun 18 04:00:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DBFDD880AD for ; Sun, 18 Jun 2017 04:00:02 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A16BC82413 for ; Sun, 18 Jun 2017 04:00:01 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Sat, 17 Jun 2017 20:59:54 -0700 Subject: Re: zpool import -N mounts filesystems anyway To: freebsd-questions@freebsd.org References: <7f41df25-df2e-298e-d33e-cc95874e831c@bluerosetech.com> From: David Christensen Message-ID: Date: Sat, 17 Jun 2017 20:59:53 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <7f41df25-df2e-298e-d33e-cc95874e831c@bluerosetech.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 04:00:07 -0000 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