Amanda-Users

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

2005-06-23 07:25:43
Subject: Re: server / lev 0 FAILED [/bin/tar returned 2] - server / lev 0 FAILED [dump to tape failed]
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: amanda-users AT amanda DOT org, chuck AT smtl.co DOT uk
Date: Thu, 23 Jun 2005 13:03:13 +0200
sgw AT amanda DOT org wrote:

/-- server / lev 0 FAILED [/bin/tar returned 2]
sendbackup: start [greenbottle.smtl.co.uk:/ level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/usr/bin/gzip -dc |/bin/tar -f... -
sendbackup: info COMPRESS_SUFFIX=.gz
sendbackup: info end
? gtar: ./media/cdrom: Cannot savedir: No medium found
? gtar: ./media/floppy: Cannot savedir: No medium found
? gtar: ./media/cdrom: Warning: Cannot savedir: No medium found
? gtar: ./media/floppy: Warning: Cannot savedir: No medium found
| gtar: ./dev/log: socket ignored
| gtar: ./tmp/.s.PGSQL.5432: socket ignored
| gtar: ./tmp/.ICE-unix/19580: socket ignored
| gtar: ./tmp/.ICE-unix/dcop19563-1118847061: socket ignored
| gtar: ./tmp/.X11-unix/X0: socket ignored
| gtar: ./tmp/ksocket-root/kdeinit-\:0: socket ignored
| gtar: ./tmp/ksocket-root/kdeinit__0: socket ignored
[...]
| gtar: ./var/spool/postfix/public/showq: socket ignored
| Total bytes written: 5874155520 (5.5GB, 3.5MB/s)


Maybe use exclusions for all those sockets? This would remove all
those nasty ignore-errors above.

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.

Thus there is no need to add the sockets in the ignore list.

Now the problem is: why does the OS complain about missing media in
those directories?
I cannot reproduce this on any of my systems, with or without media
inserted.

What version of Linux are you using?

How are the /media/* directories managed ? (in /etc/fstab?  automouter?)

What happens when you do:

gtar -cf - --sparse --one-file-sys --tot --dir /media . | cat >/dev/null



--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>