Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2018 18:17:48 +0100
From:      Gary Palmer <gpalmer@freebsd.org>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS backup Q: send/recv and mountpoint property
Message-ID:  <20180811171748.GC83321@in-addr.com>
In-Reply-To: <20180810145521.GB83321@in-addr.com>
References:  <alpine.BSF.2.00.1807222110450.28320@woozle.rinet.ru> <20180804220727.GA83288@in-addr.com> <alpine.BSF.2.00.1808101740440.24808@woozle.rinet.ru> <20180810144804.GA83321@in-addr.com> <alpine.BSF.2.00.1808101751040.24808@woozle.rinet.ru> <20180810145521.GB83321@in-addr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 10, 2018 at 03:55:21PM +0100, Gary Palmer wrote:
> On Fri, Aug 10, 2018 at 05:52:03PM +0300, Dmitry Morozovsky wrote:
> > 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 
> 
> Hi Dmitry,
> 
> I don't think that's a problem.  I don't export the pool before rebooting,
> I just shut down the box and boot it the next time I need to do a backup
> The -R flag prevents the pool from being written to the cache file which
> should stop import on boot.  Note that I'm running FreebSD 10.4-p<whatever> 
> currently.  Need to upgrade to 11.2 and see if that still works.

Just upgraded to 11.2 and no obvious issues so far with the above scheme

Regards,

Gary



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180811171748.GC83321>