From owner-freebsd-fs@freebsd.org Sun Jul 22 18:14:19 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 479D9105217C for ; Sun, 22 Jul 2018 18:14:19 +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 B65377F08E for ; Sun, 22 Jul 2018 18:14:15 +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 w6MIE59s009120 for ; Sun, 22 Jul 2018 21:14:05 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Sun, 22 Jul 2018 21:14:05 +0300 (MSK) From: Dmitry Morozovsky To: freebsd-fs@FreeBSD.org Subject: ZFS backup Q: send/recv and mountpoint property Message-ID: 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]); Sun, 22 Jul 2018 21:14:06 +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: Sun, 22 Jul 2018 18:14:19 -0000 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! -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------