From owner-freebsd-questions@freebsd.org Wed May 4 13:12:07 2016 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 B5772B2B875; Wed, 4 May 2016 13:12:07 +0000 (UTC) (envelope-from sebastian@wolfgarten.com) Received: from waldfest.wolfgarten.com (waldfest.wolfgarten.com [144.76.61.234]) by mx1.freebsd.org (Postfix) with ESMTP id 7696B198A; Wed, 4 May 2016 13:12:07 +0000 (UTC) (envelope-from sebastian@wolfgarten.com) Received: from waldfest (localhost [127.0.0.1]) by waldfest.wolfgarten.com (Postfix) with ESMTP id 1CD786B946; Wed, 4 May 2016 15:12:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at wolfgarten.com X-Spam-Flag: NO X-Spam-Score: -1.823 X-Spam-Level: X-Spam-Status: No, score=-1.823 tagged_above=-9999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, BODY_RULE_1=1, TW_ZF=0.077] autolearn=no autolearn_force=no Received: from waldfest.wolfgarten.com ([127.0.0.1]) by waldfest (waldfest.wolfgarten.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JTANK6MWwkjR; Wed, 4 May 2016 15:11:58 +0200 (CEST) Received: from webmail.wolfgarten.com (localhost [127.0.0.1]) by waldfest.wolfgarten.com (Postfix) with ESMTP id 0DDC86B93D; Wed, 4 May 2016 15:11:58 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 04 May 2016 15:11:58 +0200 From: sebastian@wolfgarten.com To: "Kevin P. Neal" Cc: Matthias Fechner , freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: ZFS migration - New pool lost after reboot In-Reply-To: <20160504130332.GA84674@neutralgood.org> References: <0A383C91-FCBA-4B9E-A95A-157A13708125@wolfgarten.com> <72087b33-53f9-e298-1441-4988c2a5ecb3@fechner.net> <2D936447-34C1-471B-8787-8075B19F8B28@wolfgarten.com> <6E1B2BCF-3B5C-4D18-9152-FE68711B2B43@wolfgarten.com> <72d62e46-59f4-5e6f-2bf6-8ac1ba808f02@fechner.net> <67E0F838-8BA7-475B-91D9-24B5B5640441@wolfgarten.com> <20160504130332.GA84674@neutralgood.org> Message-ID: X-Sender: sebastian@wolfgarten.com User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2016 13:12:07 -0000 Dear Kevin, thanks a lot for your follow-up. Indeed the -N option solved my dilemma. Best regards Sebastian Am 2016-05-04 15:03, schrieb Kevin P. Neal: > On Tue, May 03, 2016 at 11:07:35PM +0200, Sebastian Wolfgarten wrote: >> Dear all, >> >> thanks to Matthias I already fixed most of the issues but there is one >> thing I cannot fix yet. When trying to set the mount point for the / >> file system, I am getting strange errors: >> >> root@vm:~ # zfs set mountpoint=none newpool/ROOT >> cannot open 'newpool/ROOT': dataset does not exist >> root@vm:~ # zpool import -c /tmp/newpool.cache -R /mnt newpool >> root@vm:~ # zfs set mountpoint=none newpool/ROOT >> cannot unmount '/mnt': Device busy >> root@vm:~ # zfs set mountpoint=/ newpool/ROOT/default >> cannot unmount '/mnt': Device busy >> root@vm:~ # zfs set mountpoint=/tmp newpool/tmp >> root@vm:~ # zfs set mountpoint=/usr newpool/usr >> root@vm:~ # zfs set mountpoint=/var newpool/var >> root@vm:~ # zfs set mountpoint=none newpool/ROOT >> cannot unmount '/mnt': Device busy >> root@vm:~ # zpool export newpool >> root@vm:~ # zfs set mountpoint=none newpool/ROOT >> cannot open 'newpool/ROOT': dataset does not exist >> >> So basically, when the pool is not mounted the system says „dataset >> does not exist“ but when I mount it and try to change the mount point >> it comes back with „Device busy“. Any ideas on how I am supposed to >> set the mount point for the root file system (first & last line of the >> commands listed above)? > > There's a middle ground you left out of your analysis. > > You can import a pool and not mount it. Use the "-N" option to zfs > import.