Date: Wed, 04 May 2016 15:11:58 +0200 From: sebastian@wolfgarten.com To: "Kevin P. Neal" <kpn@neutralgood.org> Cc: Matthias Fechner <idefix@fechner.net>, freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: Re: ZFS migration - New pool lost after reboot Message-ID: <dce4189df01e7005b37dd36be23187d6@wolfgarten.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dce4189df01e7005b37dd36be23187d6>