Hi
I have been using amanda for some month now and its been behaving nicely..
until a few days ago when I decided to make a separate system backup once a
week. Just as an extra recovery option.
Im backing up one redhat7.1 box, amanda 2.4.2p2, compiled from source. The
working config is called daily which backup the complete filesystem i 5
days. The new config is called system, which backup all but /home on one
tape. The tapes can hold ~4GB uncompressed and the there are about 2.3gb
worth to be backed up.
Well, things are not going as expected and Im unable to get the /usr dir on
tape.. Im getting:
FAILURE AND STRANGE DUMP SUMMARY:
bifrost /usr lev 0 FAILED [dumper1 died]
[snip]
NOTES:
planner: Adding new disk bifrost:/usr.
driver: dumper0 pid 17976 is messed up, ignoring it.
driver: dumper0 died while dumping bifrost:/usr lev 0.
driver: dumper1 pid 17977 is messed up, ignoring it.
taper: tape system02 kb 0 fm 0
I have been searching the archives for this problem and not much useful
show up. When I run amstatus to keep up with progress I see this (strange):
bash-2.04$ amstatus system
bifrost:/usr 0 1511650k dumping 79584k
( 5.26%) (0:39:23)
bash-2.04$ amstatus system
bifrost:/usr 0 1511650k dumping 32k
( 0.00%) (0:39:41)
The first few seconds things look ok, next is dies and reports 32k and 0%.
It looks like its running allright in the begining but then dies after
~80000k (same every time). If I have index on I get:
sendbackup-gnutar: /usr/lib/amanda/runtar: pid 17854
sendbackup: started index creator: "/bin/tar -tf - 2>/dev/null | sed -e
's/^\.//'"
index tee cannot write [Connection reset by peer]
So, I thought about permissions on /var/lib/amanda/system and did chmod -R
777 * - same sh**.
Amcheck shows all to be fine and dandy. Below are all sorts of debug files,
which seem fine except for sendbackup.
Any ideas would be greatly appreciated
Best,
Kasper
****dumptype*****
define dumptype sys-tar {
program "GNUTAR"
comment "system partitions"
record no
index no
strategy noinc
priority high
compress none
}
**** dumptype end********
**************SENDBACKUP.x.debug start ***********
bash-2.04$ cat sendbackup.20020210115155.debug
sendbackup: debug 1 pid 17986 ruid 33 euid 33 start time Sun Feb 10
11:51:55 2002
/usr/lib/amanda/sendbackup: version 2.4.2p2
sendbackup: got input request: GNUTAR /usr 0 1970:1:1:0:0:0 OPTIONS
|;bsd-auth;no-record;
parsed request as: program `GNUTAR'
disk `/usr'
lev 0
since 1970:1:1:0:0:0
opt `|;bsd-auth;no-record;'
sendbackup: try_socksize: send buffer size is 65536
sendbackup: stream_server: waiting for connection: 0.0.0.0.32955
sendbackup: stream_server: waiting for connection: 0.0.0.0.32956
waiting for connect on 32955, then 32956
sendbackup: stream_accept: connection from 192.168.1.1.32957
sendbackup: stream_accept: connection from 192.168.1.1.32958
got all connections
sendbackup-gnutar: doing level 0 dump as listed-incremental to
/var/lib/amanda/gnutar-lists/bifrost_usr_0.new
sendbackup-gnutar: doing level 0 dump from date: 1970-01-01 0:00:00 GMT
sendbackup: spawning /usr/lib/amanda/runtar in pipeline
sendbackup: argument list: gtar --create --file - --directory /usr
--one-file-system --listed-incremental
/var/lib/amanda/gnutar-lists/bifrost_usr_0.new --sparse
--ignore-failed-read --totals .
sendbackup-gnutar: /usr/lib/amanda/runtar: pid 17987
**************SENDBACKUP.x.debug end ***********
As you can see sendbackup does not finish correctly, last line should be
"pid xxx finished time yyy"
************AMANDAD debug start **************
bash-2.04$ cat amandad.20020210115155.debug
amandad: debug 1 pid 17985 ruid 33 euid 33 start time Sun Feb 10 11:51:55 2002
amandad: version 2.4.2p2
amandad: build: VERSION="Amanda-2.4.2p2"
amandad: BUILT_DATE="Thu Apr 5 09:18:00 EDT 2001"
amandad: BUILT_MACH="Linux porky.devel.redhat.com 2.2.17-8smp #1 SMP
Fri Nov 17 16:12:17 EST 2000 i686 unknown"
amandad: CC="gcc"
amandad: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad: libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
amandad: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad: CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
amandad: RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
amandad: RESTORE="/sbin/restore" SAMBA_CLIENT="/usr/bin/smbclient"
amandad: GNUTAR="/bin/tar" COMPRESS_PATH="/usr/bin/gzip"
amandad: UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"
amandad: listed_incr_dir="/var/lib/amanda/gnutar-lists"
amandad: defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
amandad: DEFAULT_TAPE_SERVER="localhost"
amandad: DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
amandad: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
amandad: CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
got packet:
--------
Amanda 2.4 REQ HANDLE 000-A09D0708 SEQ 1013338258
SECURITY USER amanda
SERVICE sendbackup
OPTIONS hostname=bifrost;
GNUTAR /usr 0 1970:1:1:0:0:0 OPTIONS |;bsd-auth;no-record;
--------
sending ack:
----
Amanda 2.4 ACK HANDLE 000-A09D0708 SEQ 1013338258
----
bsd security: remote host bifrost.edwards.dk user amanda local user amanda
amandahosts security check passed
amandad: running service "/usr/lib/amanda/sendbackup"
amandad: sending REP packet:
----
Amanda 2.4 REP HANDLE 000-A09D0708 SEQ 1013338258
CONNECT DATA 32955 MESG 32956 INDEX -1
OPTIONS ;no-record;bsd-auth;
----
amandad: got packet:
----
Amanda 2.4 ACK HANDLE 000-A09D0708 SEQ 1013338258
----
amandad: pid 17985 finish time Sun Feb 10 11:51:55 2002
******************AMANDAD debug end ****************
***************SELFCHECK..debug START***********
bash-2.04$ cat selfcheck.20020210114957.debug
selfcheck: debug 1 pid 17956 ruid 33 euid 33 start time Sun Feb 10 11:49:57
2002
/usr/lib/amanda/selfcheck: version 2.4.2p2
selfcheck: checking disk /usr
selfcheck: device /usr
selfcheck: OK
selfcheck: pid 17956 finish time Sun Feb 10 11:49:57 2002
************SELFCHECK..DEBUG end************
**************RUNTAR..DEBUG start ************
bash-2.04$ cat runtar.20020210115155.debug
runtar: debug 1 pid 17987 ruid 33 euid 0 start time Sun Feb 10 11:51:55 2002
gtar: version 2.4.2p2
running: /bin/tar: gtar --create --file - --directory /usr
--one-file-system --listed-incremental
/var/lib/amanda/gnutar-lists/bifrost_usr_0.new --sparse
--ignore-failed-read --totals .
bash-2.04$
****************** RUNTAR..debug end*****
--------------------------------------------------------
Kasper Edwards
Ph.D. Stipendiat, Civilingeni�r
Institut for Produktion og Ledelse
Danmarks Tekniske Universitet
Byg 423, rum 028
2800 Lyngby
tlf. : +45 4525 6010
Mobil: +45 2225 6320
Fax. : +45 4593 4467
Web : http://www.its.dtu.dk/ansat/ke/index_d.htm
Email: [EMAIL PROTECTED]