From owner-freebsd-questions@freebsd.org Tue May 3 21:56:56 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 8B881B2C24F for ; Tue, 3 May 2016 21:56:56 +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 3769C1C66 for ; Tue, 3 May 2016 21:56:55 +0000 (UTC) (envelope-from sebastian@wolfgarten.com) Received: from waldfest (localhost [127.0.0.1]) by waldfest.wolfgarten.com (Postfix) with ESMTP id 22A5A73206; Tue, 3 May 2016 23:56:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at wolfgarten.com X-Spam-Flag: NO X-Spam-Score: -1.822 X-Spam-Level: X-Spam-Status: No, score=-1.822 tagged_above=-9999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, BODY_RULE_1=1, TW_ZF=0.077, URIBL_BLOCKED=0.001] 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 r9C5XsIUBcYO; Tue, 3 May 2016 23:56:46 +0200 (CEST) Received: from [192.168.0.159] (unknown [84.119.55.188]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by waldfest.wolfgarten.com (Postfix) with ESMTPSA id 921FE73200; Tue, 3 May 2016 23:56:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfgarten.com; s=mail; t=1462312606; bh=rfbDG1xF4S+5ATpkIWKMVGzJYNb+4UBTRtsXqBuOViM=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=u9dPX8KIqr9Xr711vPhGo2dySp4QH2e8vU5tNMrCb+VQbm9PYVBNj3nO9Glqs3UxG inDr8RZbGEpU8cB3k2mJiWn92DIJikr1WbLL4XOpF10NWcnMUZpi0wGcoUZdX1dIhV 2y4h/crfUgq1C4Yl0NnEYN2aF1pYyZd1IG3HBrKQ= Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: ZFS migration - New pool lost after reboot From: Sebastian Wolfgarten In-Reply-To: <67E0F838-8BA7-475B-91D9-24B5B5640441@wolfgarten.com> Date: Tue, 3 May 2016 23:56:45 +0200 Cc: Matthias Fechner Content-Transfer-Encoding: quoted-printable Message-Id: <5BD0B4F1-D9FE-4F8D-9D06-B75875DCC0DE@wolfgarten.com> 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> To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.3124) 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: Tue, 03 May 2016 21:56:56 -0000 Hi, to solve this one (for the archives maybe): root@vm:~ # zpool import -N newpool root@vm:~ # zfs set mountpoint=3D/ newpool/ROOT/default zfs set mountpoint=3Dnone newpool/ROOT zfs set mountpoint=3D/tmp newpool/tmp zfs set mountpoint=3D/usr newpool/usr zfs set mountpoint=3D/var newpool/var reboot Machine now starts like a charm with the new pool. Amazing. Thanks for all your help guys, this is very much appreciated. Best regards Sebastian > Am 03.05.2016 um 23:07 schrieb Sebastian Wolfgarten = : >=20 > Dear all, >=20 > 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: >=20 > root@vm:~ # zfs set mountpoint=3Dnone 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=3Dnone newpool/ROOT > cannot unmount '/mnt': Device busy > root@vm:~ # zfs set mountpoint=3D/ newpool/ROOT/default > cannot unmount '/mnt': Device busy > root@vm:~ # zfs set mountpoint=3D/tmp newpool/tmp > root@vm:~ # zfs set mountpoint=3D/usr newpool/usr > root@vm:~ # zfs set mountpoint=3D/var newpool/var > root@vm:~ # zfs set mountpoint=3Dnone newpool/ROOT > cannot unmount '/mnt': Device busy > root@vm:~ # zpool export newpool > root@vm:~ # zfs set mountpoint=3Dnone newpool/ROOT > cannot open 'newpool/ROOT': dataset does not exist >=20 > So basically, when the pool is not mounted the system says =84dataset = does not exist=93 but when I mount it and try to change the mount point = it comes back with =84Device busy=93. 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)? >=20 > Many thanks. >=20 > Kind regards > Sebastian >=20 >> Am 02.05.2016 um 23:45 schrieb Matthias Fechner : >>=20 >> Am 02.05.2016 um 22:42 schrieb Sebastian Wolfgarten: >>> root@vm:~ # zfs list >>> NAME USED AVAIL REFER MOUNTPOINT >>> newpool 385M 5.41G 19K /mnt/zroot >>> newpool/ROOT 385M 5.41G 19K /mnt >>> newpool/ROOT/default 385M 5.41G 385M /mnt >>> newpool/tmp 21K 5.41G 21K /mnt/tmp >>> newpool/usr 76K 5.41G 19K /mnt/usr >>> newpool/usr/home 19K 5.41G 19K /mnt/usr/home >>> newpool/usr/ports 19K 5.41G 19K /mnt/usr/ports >>> newpool/usr/src 19K 5.41G 19K /mnt/usr/src >>> newpool/var 139K 5.41G 19K /mnt/var >>> newpool/var/audit 19K 5.41G 19K /mnt/var/audit >>> newpool/var/crash 19K 5.41G 19K /mnt/var/crash >>> newpool/var/log 44K 5.41G 44K /mnt/var/log >>> newpool/var/mail 19K 5.41G 19K /mnt/var/mail >>> newpool/var/tmp 19K 5.41G 19K /mnt/var/tmp >>> zroot 524M 26.4G 96K /zroot >>> zroot/ROOT 522M 26.4G 96K none >>> zroot/ROOT/default 522M 26.4G 522M / >>> zroot/tmp 74.5K 26.4G 74.5K /tmp >>> zroot/usr 384K 26.4G 96K /usr >>> zroot/usr/home 96K 26.4G 96K /usr/home >>> zroot/usr/ports 96K 26.4G 96K /usr/ports >>> zroot/usr/src 96K 26.4G 96K /usr/src >>> zroot/var 580K 26.4G 96K /var >>> zroot/var/audit 96K 26.4G 96K /var/audit >>> zroot/var/crash 96K 26.4G 96K /var/crash >>> zroot/var/log 103K 26.4G 103K /var/log >>> zroot/var/mail 96K 26.4G 96K /var/mail >>> zroot/var/tmp 92.5K 26.4G 92.5K /var/tmp >>>=20 >>> I am assuming I have to amend the zfs parameters for the mount = points but I can=92t seem to figure out what=92s wrong. I tried things = like: >>>=20 >>> zfs set mountpoint=3D/usr newpool/usr >>> zfs set mountpoint=3D/tmp newpool/tmp >>> zfs set mountpoint=3D/var newpool/var >>=20 >> zfs set mountpoint=3Dnone newpool/ROOT >> zfs set mountpoin=3D/ newpool/ROOT/default >> zfs set mountpoin=3D/tmp newpool/tmp >> zfs set mountpoin=3D/usr newpool/usr >> zfs set mountpoin=3D/var newpool/var >>=20 >>=20 >> Gru=DF >> Matthias >>=20 >> --=20 >>=20 >> "Programming today is a race between software engineers striving to >> build bigger and better idiot-proof programs, and the universe trying = to >> produce bigger and better idiots. So far, the universe is winning." = -- >> Rich Cook >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"