Amanda-Users

Re: server / lev 0 FAILED [/bin/tar returned 2] - server / lev 0 FAILED [dump to tape failed]

2005-06-23 13:52:58
Subject: Re: server / lev 0 FAILED [/bin/tar returned 2] - server / lev 0 FAILED [dump to tape failed]
From: Frank Smith <fsmith AT hoovers DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 23 Jun 2005 12:36:25 -0500
--On Thursday, June 23, 2005 09:31:25 -0400 Jon LaBadie <jon AT jgcomp DOT com> 
wrote:

> On Thu, Jun 23, 2005 at 01:03:13PM +0200, Paul Bijnens wrote:
>> 
>> >> ? gtar: ./media/cdrom: Cannot savedir: No medium found
>> [...]
>> >>| gtar: ./var/spool/postfix/public/showq: socket ignored
>> > 
>> 
>> Note that the error is not in the sockets (those lines are marked
>> with a pipe-symbol as "normal"), but in the "no medium found"
>> lines, marked with a question mark.
> 
> Another gem from PB.
> 
> I don't recall ever reading about the '?' and '|' difference before.

However, not all '?'s are errors that cause tar to exit.  I see them in front
of lines containing:

'file changed as we read it'
'Warning: Cannot stat: No such file or directory'
'File shrank by X bytes; padding with zeros'
'Warning: Read error at byte X, reading Y bytes: I/O error'
'Unknown file type; file ignored'

and those don't cause tar to exit.  I'm guessing that the pipe symbol
is prepended to the tar messages Amanda knows are harmless, and
the question mark is prepended to the rest.  While the backup of the
file mentioned on that line is probably worthless, the rest of the DLE is
backed up successfully.

Frank

> 
> -- 
> Jon H. LaBadie                  jon AT jgcomp DOT com
>  JG Computing
>  4455 Province Line Road        (609) 252-0159
>  Princeton, NJ  08540-4322      (609) 683-7220 (fax)



-- 
Frank Smith                                      fsmith AT hoovers DOT com
Sr. Systems Administrator                       Voice: 512-374-4673
Hoover's Online                                   Fax: 512-374-4501