From owner-freebsd-hackers@freebsd.org Thu Feb 25 21:18:41 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30169AB4938 for ; Thu, 25 Feb 2016 21:18:41 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 1172FA30 for ; Thu, 25 Feb 2016 21:18:40 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id E159FD9CD for ; Thu, 25 Feb 2016 21:18:33 +0000 (UTC) Subject: Re: ZFS full system backup hoses the backup host. To: freebsd-hackers@freebsd.org References: From: Allan Jude Message-ID: <56CF6FB0.1010001@freebsd.org> Date: Thu, 25 Feb 2016 16:18:40 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 21:18:41 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ From: Allan Jude To: freebsd-hackers@freebsd.org Message-ID: <56CF6FB0.1010001@freebsd.org> Subject: Re: ZFS full system backup hoses the backup host. References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-02-25 15:58, Zaphod Beeblebrox wrote: > This violated POLA for me. I backed up a host using: >=20 > time zfs send -vRI @backup-1-e zroot@backup-1-f | ssh backuphost "zfs > receive -vFud zroot/backup/host" >=20 >=20 > Only to find that the backup host (a week later) failed to reboot? The= > problem? Well... -u on receive marks the filesystem as unmounted only > "right now" not "next reboot" and -R on send implies -p (send dataset > attributes) and... >=20 > ... zroot/ROOT/default mountpoint=3D/ (among others). >=20 > The only hackish way to fix this I see is to have a list of mountpoints= to > correct --- which is partially what I'm trying to avoid by using -R ---= I > just want the whole thing backed up. >=20 > What have other people done to get around this and/or can we either put= in > an "ignore properties" on receive flag or a -R on send that doesn't sen= d > them? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" >=20 The sysutils/zxfer script allows you to override properties during replication, so I usually set readonly=3Don and for such a backup would set mountpoint=3Dnone --=20 Allan Jude --vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJWz2+zAAoJEBmVNT4SmAt+tWIQALrMRn02UvKuXh/G7bZlvxuE 2ThgGb6pDWE5HSZhIgJfvb7O6zr6ETICCU/L9OfOFsiHvAlYdDsr2fpHAkEObY8e 0EKDgoBF0ZjdqA6d0DnhCfgmny7yTwshGObQNYJ0suz3Suwz6PAoIv/KU4UycgPo sPf9E+91G3MjDf4AXsfe/VQRr+0Ckos6XnWc1oBBSfKY6jc/eRQQ6aIMPYVbgtFq R46LWewSyxFbjt5q2RXPDJqizx+vCgb2H54PLtMq9ZBEa/4jbJlQcH2dQTL6VZoP JLJ1zT6liB1wgzYKb5cx12CtYTY8TAksUNtD80Mptw6Q18QwqFWr4qZqKt3Oxyed LbOVqmHARJaxtZF8/vwVfczlHnYT5cPyGh45zz3D+C3tEdEZC9ZLmRKHKKGApOc0 +zglStLpHNd4jcSy6CfpYuwBr6yOpqqnY27VUGj6gG6yD5HQKwWDdJwjXNyVfUCi ryA7cu6ve6KGZ4Who5iACp15xPsiin+/sChyzzZQAW8cspBvtKuXVyr+WKx1mJSe H3xM0D6O0wuWgA0zeO6AAR9t/wOnbYAmPvR+MfmMzoiOoT1iTpNdpSpkXQpTM8ZO Z9R7oV0ZWWpFCA0GTA/t9edFkNNipqrwQbALc0D4/AV8yTpmffrIo/Yp3TsZ9Rac qGglc7gqaXDdzRv4pmY5 =Vp2n -----END PGP SIGNATURE----- --vO7lHpBfqUvaXbKibFNiVUDD3alVag7gQ--