ZFS backup Q: send/recv and mountpoint property

Gary Palmer gpalmer at freebsd.org
Sat Aug 11 17:17:51 UTC 2018


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


More information about the freebsd-fs mailing list