From owner-freebsd-questions@FreeBSD.ORG Thu Aug 9 16:51:19 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5287316A420 for ; Thu, 9 Aug 2007 16:51:19 +0000 (UTC) (envelope-from bramschoenmakers@xs4all.nl) Received: from viefep34-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mx1.freebsd.org (Postfix) with ESMTP id 981F213C45E for ; Thu, 9 Aug 2007 16:51:18 +0000 (UTC) (envelope-from bramschoenmakers@xs4all.nl) Received: from [192.168.1.100] (really [89.98.221.195]) by viefep34-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20070809165116.YXMD8078.viefep34-int.chello.at@[192.168.1.100]>; Thu, 9 Aug 2007 18:51:16 +0200 From: Bram Schoenmakers To: freebsd-questions@freebsd.org Date: Thu, 9 Aug 2007 18:51:13 +0200 User-Agent: KMail/1.9.6 References: <200708091025.43912.bramschoenmakers@xs4all.nl> <200708091704.31952.nvass@teledomenet.gr> <46BB2730.8090702@dial.pipex.com> In-Reply-To: <46BB2730.8090702@dial.pipex.com> X-Face: &[!|}QvdlkzFIu, |mW.\-Ci1t2d@CEo+#Q14@XM9*@`S, @l*5r-m!\, , kFc:ZlD62]6/>=?utf-8?q?=5B=0A=09Ovg=3BN=5Bqk=3B=60w6=3D5abys2!H+EUYcEDJ?==?utf-8?q?=25lo=26d67gO=2E!/=0A=09w?=@YD{YH]Ebe{@|(qtKgoum%{-=qXlf.+/`^E<'!m"?5d<&C(:B+p*KjP'-Knv!6U<=?utf-8?q?1W!=7EZ=0A=09P3ee-=7BfAb-i+MsJHM?=@ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708091851.14649.bramschoenmakers@xs4all.nl> Cc: Alex Zbyslaw , Nikos Vassiliadis Subject: Re: Problem with dump over SSH: Operation timed out X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2007 16:51:19 -0000 Op donderdag 09 augustus 2007, schreef Alex Zbyslaw: Hello, > Bram Schoenmakers wrote: > ># /sbin/dump -0uan -L -h 0 -f - / | /usr/bin/bzip2 | /usr/bin/ssh > >backup@office.example.com \ > > dd of=/backup/webserver/root.0.bz2 > > bzip2 is darned slow and not always much better than gzip -9. It might > be that ssh is just timing out in some way (I've seen that but not with > ethernet dumps specifically). Can you try the test using gzip -9 > instead of bzip? If that works, then look for ssh options that affect > timeouts, keepalives etc. In particular, ServerAliveInterval 60 in a > .ssh/config stopped xterm windows dying on me to certain hosts. YMMV :-( > > If you have the disk space then you could try without any compression at > all; or try doing the compression remotely: > > /sbin/dump -0 -a -C 64 -L -h 0 -f - / | \ > /usr/local/bin/ssh backup@office.example.com > \ > "gzip -9 > /backup/webserver/root.0.gz" > > Otherwise: > > Nikos Vassiliadis wrote: > >1) Can you dump the file locally? > > > >2) Is scp working? > > If you can write (and compress if short of disk space) the dump locally and > try an scp to your remote host as Nikos is suggesting, that will narrow > down the problem a bit. Any other large file will do: doesn't have to be a > dump. As I wrote in my initial mail: ====== * Downloading the very same big file over SCP causes problems too, below some SCP debug output. The connection drops quickly after it gained a reasonable download speed. Read from remote host office.example.com: Connection reset by peer debug1: Transferred: stdin 0, stdout 0, stderr 77 bytes in 103.3 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.7 debug1: Exit status -1 lost connection ====== That was just a file generated with 'dd if=/dev/zero of=zeroes bs=1024k count=200' . So no, SCP doesn't work. I haven't tried gzip -9 yet, although it looks like a workaround than a solution to the real problem. Kind regards, -- Bram Schoenmakers You can contact me directly on Jabber with bram@kde.org