Amanda-Users

Re: dump to tape failed - how to diagnose?

2004-01-02 05:43:08
Subject: Re: dump to tape failed - how to diagnose?
From: Georg Rehfeld <georg.rehfeld AT gmx DOT de>
To: John Dalbec <jpdalbec AT ysu DOT edu>
Date: Fri, 02 Jan 2004 11:42:05 +0100
John Dalbec wrote:

Georg Rehfeld wrote:
 > FAILURE AND STRANGE DUMP SUMMARY:
 >   mail03     /var/spool/mail lev 0 FAILED [dump to tape failed]
 >   mail03     /home lev 0 FAILED [dump to tape failed]

Did you try amstatus? It should give the reason. Also look into
the amdump.X and log file for that backup near the end, maybe there
is diagnostic information neither amreport nor amstatus spit out.
Search for the error message 'dump to tape failed' and inspect the
lines directly above.

OK, that was the magic incantation. But what would cause a connection failure over the loopback interface? My firewall trusts it and I don't see any dropped packets.

... [rest of msg cut]

From your amdump file:

    ...
    driver: dumping mail03:/var/spool/mail directly to tape
    driver: send-cmd time 2825.123 to taper: PORT-WRITE 00-00043 \
            mail03 /var/spool/mail 0 20031229
    taper: try_socksize: receive buffer size is 65536
    taper: stream_server: waiting for connection: 0.0.0.0.54344
    driver: result time 2825.123 from taper: PORT 54344
    driver: send-cmd time 2825.123 to dumper0: PORT-DUMP 01-00044 \
            54344 mail03 /var/spool/mail 0 1970:1:1:0:0:0 GNUTAR ...
    driver: state time 2825.124 free kps: -1797 space: 4911728 ...
    driver: interface-state time 2825.124 if : free -6797 if ETH0: ...
    driver: hdisk-state time 2825.124 hdisk 0: free 4776984 dumpers ...
--> dumper: stream_client: connect(54344) failed: Connection refused
--> driver: result time 2825.433 from dumper0: FAILED 01-00044 \
            [taper port open: Connection refused]
    taper: stream_accept: timeout after 120 seconds
    driver: result time 2945.143 from taper: TAPE-ERROR 00-00043 \
            [port connect timeout]
    driver: dumping mail03:/home directly to tape
    driver: send-cmd time 2945.169 to taper: PORT-WRITE 00-00045 \
            mail03 /home 0 20031229
    taper: try_socksize: receive buffer size is 65536
    taper: stream_server: waiting for connection: 0.0.0.0.54364
    driver: result time 2945.169 from taper: PORT 54364
    driver: send-cmd time 2945.169 to dumper0: PORT-DUMP 01-00046 \
            54364 mail03 /home 0 1970:1:1:0:0:0 GNUTAR ...
    driver: state time 2945.169 free kps: 2168 space: 4911728 ...
    driver: interface-state time 2945.169 if : free -2832 if ETH0: ...
    driver: hdisk-state time 2945.169 hdisk 0: free 4776984 dumpers ...
--> dumper: stream_client: connect(54364) failed: Connection refused
--> driver: result time 2945.486 from dumper0: FAILED 01-00046 \
            [taper port open: Connection refused]
    taper: stream_accept: timeout after 120 seconds
    driver: result time 3065.185 from taper: TAPE-ERROR 00-00045 \
            [port connect timeout]
    ...

So the dumper immediately reports 'connection refused' when attempting
to connect to the taper process. Wrong permissions?

regards
Georg
--
 ___   ___
| + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
|_|_\ |___   georg.rehfeld.nospam AT gmx DOT de    +49 (40) 23 53 27 10

             (Delete .nospam from mail address)