Problem with dump over SSH: Operation timed out

Nikos Vassiliadis nvass at teledomenet.gr
Fri Aug 10 01:02:45 PDT 2007


On Thursday 09 August 2007 19:51, Bram Schoenmakers wrote:
> 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 at 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 at 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.

This really looks like a broken PMTU discovery.

Is this still the case? After the firewall changes you did?
Things may be different now. But, if a router in the path
is filtering all ICMP traffic then the problem will remain.

Try this on both hosts:
sysctl net.inet.tcp.path_mtu_discovery=0
sysctl net.inet.tcp.mssdflt=1000  (just to be safe,
the default on 4.x is 1400, which can be big
on 6.x is just 512)

Please, just use scp to do your testing.
When you rule out the possibility of a problematic
network, you will add the (gzip|bzip2) & dump parts.

Nikos


More information about the freebsd-questions mailing list