From owner-freebsd-hackers@freebsd.org Thu Feb 25 20:58:12 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 00C1FAB413B; Thu, 25 Feb 2016 20:58:12 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA27819CD; Thu, 25 Feb 2016 20:58:11 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-yw0-x22f.google.com with SMTP id e63so53030716ywc.3; Thu, 25 Feb 2016 12:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0fzgag7fJ2WnfKsMMR4hxq2eKaIPPMDqDWzyV7gde3w=; b=0bXXZYjYGbgaKqtaVV4AUwFmeNSgW2JxgNhd1EbRb0SIaWoHO3fGxOf+PDIN+3fAlk hTdHtKktzT5imN0KdoxnwJFAwNxnBItzYae/VCYHzfs1z5HkzqtVUsTP0xsme1G6OWCM dyjAhyvFyrkyMMp754dXLfiN19E2eJHKxDmzOyM0o73NFEBZ6DyL/K8qOlwvfRfrXnyK zbGr3Gi2gXiWKe7/fWm3cogQkB0taTiwEcMNdKwEdCCjKzhXrm/bhZcZAWhJhDCV1s7j /S2cQ/33FgPdk/tNMCdOwHFxwgtsBmDXNgb2lp5Vwq5tStXnS7GAQx8dRqhIYKANuDlf jc6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=0fzgag7fJ2WnfKsMMR4hxq2eKaIPPMDqDWzyV7gde3w=; b=gTkd0vFBIEB04vvNobYuLtGleoUyrUDgfBlnGIm4CpJhj12PapZGKKAD8QT+zYPx5j cDKEDK6HVlU3WsNY0/ShwfZSQ7ayAF6P9+qRyX8dDpCJxPt7p181p+cLtZp1HVL4VU+7 P/4uKWux3gXKQXu4I/5PUXIEt/Tlphb1vWksDM28PEx1NRRDWHjiL194U4Nu7mbsHg7j Rkv+oQUetUAcQHK712qLRAStAIsC7GYwlsWjnvKItI5IwraC3IR4mgHRt8ifz5kCv22Z Gv98h7ZbsENJj0REOP2EAe5cRURKlvXswJQNilnnQ+5A1+9HMZCnL2VTx0Aw1vAqt26p y2Xw== X-Gm-Message-State: AG10YOSldjgOq3cKRl5Y1hRor6JsFyV6/CkdHNP5/T1YInXzs2G1BPplm5FLzYoAHWoyP63jlBGU3SCQIPBeWw== MIME-Version: 1.0 X-Received: by 10.13.232.136 with SMTP id r130mr23950885ywe.2.1456433890980; Thu, 25 Feb 2016 12:58:10 -0800 (PST) Received: by 10.37.27.130 with HTTP; Thu, 25 Feb 2016 12:58:10 -0800 (PST) Date: Thu, 25 Feb 2016 15:58:10 -0500 Message-ID: Subject: ZFS full system backup hoses the backup host. From: Zaphod Beeblebrox To: FreeBSD Hackers , freebsd-fs Content-Type: text/plain; charset=UTF-8 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 20:58:12 -0000 This violated POLA for me. I backed up a host using: time zfs send -vRI @backup-1-e zroot@backup-1-f | ssh backuphost "zfs receive -vFud zroot/backup/host" 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... ... zroot/ROOT/default mountpoint=/ (among others). 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. 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 send them?