From owner-freebsd-fs@FreeBSD.ORG Fri Oct 25 17:33:13 2013 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3889449B; Fri, 25 Oct 2013 17:33:13 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0E5A6257F; Fri, 25 Oct 2013 17:33:12 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1VZlFx-0004gj-NX; Fri, 25 Oct 2013 17:33:05 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r9PHX3eS046892; Fri, 25 Oct 2013 11:33:03 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/qoFOJOMjWBN4eSaqADVab Subject: Re: ZFS: Invalid SEND/RECV stream still From: Ian Lepore To: Larry Rosenman In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Fri, 25 Oct 2013 11:33:03 -0600 Message-ID: <1382722383.1170.107.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Freebsd fs , Freebsd current X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2013 17:33:13 -0000 On Fri, 2013-10-25 at 12:07 -0500, Larry Rosenman wrote: > between 10.0-BETA1 and 11.0-CURRENT. > I've been fighting this battle for a LONG time. I had hoped(!) that it > would be solved by the systems being > closer in rev but that didn't happen. > > I'd LOVE someone to look at it. > > I can provide ssh / root access to both machines. > > > Error Message: > received 320KB stream in 1 seconds (320KB/sec) > receiving incremental stream of vault/var@2013-10-25 into > zroot/backups/TBH/var@2013-10-25 > cannot receive incremental stream: invalid backup stream > $ > > Script: > $ cat backup-TBH-ZFS.sh > #!/bin/sh > DATE=`date "+%Y-%m-%d"` > #DATE2=2013-03-24 > DATE2=`date -v "-1d" "+%Y-%m-%d"` > # snap the source > ssh root@tbh.lerctr.org zfs snapshot -r vault@${DATE} > # zfs copy the source to here. > ssh root@tbh.lerctr.org "zfs send -R -D -I vault@${DATE2} > vault@${DATE} | \ > ssh home.lerctr.org \"zfs recv -F -u -v -d zroot/backups/TBH\"" > # make sure we NEVER allow the backup stuff to automount. > /sbin/zfs list -H -t filesystem -r zroot/backups/TBH| \ > awk '{printf "/sbin/zfs set canmount=noauto %s\n",$1}' | sh > $ > > Uname's: > $ uname -a > FreeBSD borg.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #80 r257016: > Wed Oct 23 17:36:15 CDT 2013 > root@borg.lerctr.org:/usr/obj/usr/src/sys/BORG-DTRACE amd64 > $ ssh tbh uname -a > FreeBSD thebighonker.lerctr.org 10.0-BETA1 FreeBSD 10.0-BETA1 #1 > r256791: Sun Oct 20 12:28:55 CDT 2013 > root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/THEBIGHONKER amd64 > $ > > What else do y'all need? > > > I notice you're using ssh and a pipe -- does your shell logon script echo anything to stdout when you connect? I've had that interfere with piped ssh stuff. Most shells provide a way for the logon script to determine "is this an interactive session?" and you can use that to avoid echoing anything that would interfere with non-interactive automation. -- Ian