From owner-freebsd-fs@freebsd.org Fri Aug 10 14:52:07 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1738B106D18E for ; Fri, 10 Aug 2018 14:52:07 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8829F8E203; Fri, 10 Aug 2018 14:52:06 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id w7AEq3JJ049717; Fri, 10 Aug 2018 17:52:03 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Fri, 10 Aug 2018 17:52:03 +0300 (MSK) From: Dmitry Morozovsky To: Gary Palmer cc: freebsd-fs@freebsd.org Subject: Re: ZFS backup Q: send/recv and mountpoint property In-Reply-To: <20180810144804.GA83321@in-addr.com> Message-ID: References: <20180804220727.GA83288@in-addr.com> <20180810144804.GA83321@in-addr.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Fri, 10 Aug 2018 17:52:03 +0300 (MSK) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 14:52:07 -0000 On Fri, 10 Aug 2018, Gary Palmer wrote: > > > On my backup server I have two pools, zfsroot and data. I think I set > > > things up, and then exported data so that it's not auto-imported at boot. > > > I then put this in /etc/rc.local > > > > > > zpool import -N -R /backups data > > > > > > It lets the pool import filesystems with paths like / or /home > > > without over-writing the paths on the local system. > > > > that would fit for "normal" case, but does not survive sudden reboot ;-) > > > > I'm switching to zxfer for now; not ideal, but fair and usable enough > > Hi, > > I haven't tested reboot during sync, but I'm not sure why a sudden > reboot would cause issues - the -R should move mounts outside > critical areas. Could you elaborate please? yes, that would be exactly the case I'm referring: reboot when your data pool is *not* exported -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------