Date: Sat, 4 Aug 2018 23:07:28 +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: <20180804220727.GA83288@in-addr.com> In-Reply-To: <alpine.BSF.2.00.1807222110450.28320@woozle.rinet.ru> References: <alpine.BSF.2.00.1807222110450.28320@woozle.rinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 22, 2018 at 09:14:05PM +0300, Dmitry Morozovsky wrote: > Colleagues, > > still stuck in compiling stable procedure. > > Prerequisites: > > - some servers, all on ZFS, with layout such as > machine -> unique pool name, usually 2-letters, say, hm and im > > - zfs layouts like > > hm/R/${fs}, like > hm/R > hm/R/usr > hm/R/usr/local > hm/R/var > hm/R/home > etc, where hm/R has property mountpoint=/ and others just inherit it > > > - on servers, zfs allows for non-root user to make snapshots, hold, etc, like > > Local+Descendent permissions: > group operator hold,send,snapshot > > - zfs send -R [-i pool@prev-snap] pool@now-snap | \ > ssh backupserver 'zfs recv tgpool/B/zfs/srvname' > > Problem: > > 0. on backup (zfs recv) server, I could not > - overwrite mountpoint property (and I'd better avoid it) > - add canmount=off, especially for child filesets, as it's not inherited (which > could be preferred behaviour) > > 1. after backup server reboot, if special manual tweaks did not have place, > filesets from backup images overwrite backup filesets, render it unuseable > > Any hints? > > Or did I missed something trivial? > > Thanks, as usual, in advance! Hi, 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. Regards, Gary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180804220727.GA83288>