From owner-freebsd-stable@FreeBSD.ORG Mon Mar 12 14:31:29 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D35FD1065672; Mon, 12 Mar 2012 14:31:29 +0000 (UTC) (envelope-from regnauld@x0.dk) Received: from moof.catpipe.net (moof.catpipe.net [194.28.252.64]) by mx1.freebsd.org (Postfix) with ESMTP id 9260A8FC17; Mon, 12 Mar 2012 14:31:29 +0000 (UTC) Received: from localhost (moof.catpipe.net [194.28.252.64]) by localhost.catpipe.net (Postfix) with ESMTP id 24CED4CEE2C; Mon, 12 Mar 2012 15:31:28 +0100 (CET) Received: from moof.catpipe.net ([194.28.252.64]) by localhost (moof.catpipe.net [194.28.252.64]) (amavisd-new, port 10024) with ESMTP id NkbCC5GdInVz; Mon, 12 Mar 2012 15:31:27 +0100 (CET) Received: from macbook.bluepipe.net (macbook.bluepipe.net [195.249.214.179]) (Authenticated sender: relayuser) by moof.catpipe.net (Postfix) with ESMTPA id A463D4CEDAA; Mon, 12 Mar 2012 15:31:27 +0100 (CET) Received: by macbook.bluepipe.net (Postfix, from userid 1001) id 64F9082E2D0; Mon, 12 Mar 2012 15:31:27 +0100 (CET) Date: Mon, 12 Mar 2012 15:31:27 +0100 From: Phil Regnauld To: Mikolaj Golub Message-ID: <20120312143127.GM12975@macbook.bluepipe.net> References: <20120311185457.GB1684@macbook.bluepipe.net> <861uoyvpzh.fsf@kopusha.home.net> <20120311220911.GD1684@macbook.bluepipe.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120311220911.GD1684@macbook.bluepipe.net> X-Operating-System: Darwin 11.3.0 x86_64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: Issue with hast replication X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2012 14:31:29 -0000 Phil Regnauld (regnauld) writes: > > 7) ktrace on the destination dd: > > fstat(0,{ mode=p--------- ,inode=5,size=16384,blksize=4096 }) = 0 (0x0) > lseek(0,0x0,SEEK_CUR) ERR#29 'Illegal seek' [...] > Illegal seek, eh ? Any clues ? > > The boxes are identical (HP DL380 G6), though the RAM config is different. > > Summary: > > - ssh works fine > - h1 zvol to h2 zvol over ssh fails > - h1 zvol to h2 /tmp/x over ssh is fine > - h2 /dev/zero locally to h2 zvol is fine > - h2 /tmp/x locally to h2 zvol fails at first, but works afterwards... A few more data points: dd from a local zvol to a local zvol on either machine works fine. Using nc instead of ssh, this time it's the sender nc dying: ktrace on the sender: 47704 nc CALL write(0x3,0x7fffffff5450,0x800) 47704 nc RET write -1 errno 32 Broken pipe 47704 nc PSIG SIGPIPE SIG_DFL code=0x10006 truss on the sender: poll({3/POLLIN 0/POLLIN},2,-1) = 2 (0x2) read(3,0x7fffffff5450,2048) ERR#54 'Connection reset by peer' close(3) = 0 (0x0) On tcpdump, I do see the receiver send a FIN when using nc. When using ssh, the sender is sending the FIN. Anything else I can look for ?