Amanda-Users

Re: amcheck fails but backup works

2007-04-18 10:13:04
Subject: Re: amcheck fails but backup works
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Yogesh Hasabnis <yhmail29 AT yahoo.co DOT in>
Date: Wed, 18 Apr 2007 10:08:38 -0400
Yogesh Hasabnis wrote:
Yes, I observe that the df command doesn't respond for
quite some time.
 Do you mean that I should run "strace
/usr/sbin/amcheck <config_name>" command?
no, run 'strace -p <pid of selfcheck>'

But don't it if 'df' hang.
You must fix your mount problem:
 - umount not responding partition.
 - reboot

Jean-Louis

Regards

Yogesh

--- Jean-Louis Martineau <martineau AT zmanda DOT com> wrote:

The selfcheck process is hang.
Could you strace it and attach a debugger to it and
get a backtrace.

It's often because of a stale mount point.
Did 'df' succeed?

Jean-Louis

Yogesh Hasabnis wrote:
Hello Jean-Louis,

Thanks for the reply.

The amcheck*.debug reads as follows:

amcheck: debug 1 pid 21824 ruid 30318 euid 0:
start at
Wed Apr 18 17:00:00 2007
amcheck-clients: time 0.036: bind_portrange2:
trying
port=639
amcheck-clients: time 0.041: dgram_bind: socket
bound
to 0.0.0.0.639
amcheck: spawning /usr/bin/Mail in pipeline
amcheck: argument list: /usr/bin/Mail -s "AMANDA
PROBLEM: FIX BEFORE RUN, IF POSSIBLE"
<email_address>
amcheck: pid 21824 finish time Wed Apr 18 17:01:32
2007
amcheck.20070418170000.debug (END)

amandad*.debug reads as below:
amandad: debug 1 pid 21832 ruid 30318 euid 30318:
start at Wed Apr 18 17:00:00 2007
amandad: version 2.5.0p2
amandad: build: VERSION="Amanda-2.5.0p2"
amandad:        BUILT_DATE="Thu May 18 13:30:21
PDT
2006"
amandad:        BUILT_MACH="Linux rhel3
2.4.21-40.EL
#1 Thu Feb 2 22:32:00 EST 2006 i686 athlon i386
GNU/Linux"
amandad:        CC="gcc"
amandad:        CONFIGURE_COMMAND="'./configure'
'--build=i386-redhat-linux' '--prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--libexecdir=/usr/lib/amanda'
'--datadir=/usr/share'
'--sysconfdir=/etc'
'--sharedstatedir=/var/lib/amanda'
'--localstatedir=/var/lib/amanda'
'--libdir=/usr/lib'
'--includedir=/usr/include' '--infodir=/usr/info'
'--mandir=/usr/share/man'

'--with-gnutar-listdir=/var/lib/amanda/gnutar-lists'
'--with-dumperdir=/usr/lib/amanda'
'--with-index-server=localhost'
'--with-tape-server=localhost'
'--with-user=amandabackup' '--with-group=disk'
'--with-owner=paddy' '--with-fqdn'"
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"
VDUMP=UNDEF
VRESTORE=UNDEF
amandad:        XFSDUMP=UNDEF XFSRESTORE=UNDEF
VXDUMP=UNDEF VXRESTORE=UNDEF
amandad:        SAMBA_CLIENT="/usr/bin/smbclient"
GNUTAR="/bin/gtar"
amandad:        COMPRESS_PATH="/bin/gzip"
UNCOMPRESS_PATH="/bin/gzip"
amandad:        LPRCMD="/usr/bin/lpr"
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="null:"
HAVE_MMAP
HAVE_SYSVSHM
amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID
DEBUG_CODE
amandad:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY
RSH_SECURITY USE_AMANDAHOSTS
amandad:        CLIENT_LOGIN="amandabackup"
FORCE_USERID HAVE_GZIP
amandad:        COMPRESS_SUFFIX=".gz"
COMPRESS_FAST_OPT="--fast"
amandad:        COMPRESS_BEST_OPT="--best"
UNCOMPRESS_OPT="-dc"
amandad: time 0.037: accept recv REQ pkt:
<<<<<
SERVICE noop
OPTIONS features=fffffeff9ffeffff07;
amandad: time 0.037: creating new service:
/usr/lib/amanda/noop
OPTIONS features=fffffeff9ffeffff07;

amandad: time 0.129: sending ACK pkt:
<<<<<
amandad: time 0.129: sending REP pkt:
<<<<<
OPTIONS features=fffffeff9ffeffff07;
amandad: time 0.130: received ACK pkt:
<<<<<
amandad: time 0.131: accept recv REQ pkt:
<<<<<
SERVICE selfcheck
OPTIONS

features=fffffeff9ffeffff07;maxdumps=1;hostname=<client_host>;
CALCSIZE GNUTAR /vol/vol1/home 0 OPTIONS
|;auth=BSD;srvcomp-fast;index;
amandad: time 0.131: creating new service:
/usr/lib/amanda/selfcheck
OPTIONS

features=fffffeff9ffeffff07;maxdumps=1;hostname=<client_host>;
CALCSIZE GNUTAR /vol/vol1/home 0 OPTIONS
|;auth=BSD;srvcomp-fast;index;

amandad: time 0.132: sending ACK pkt:
<<<<<
amandad: time 30.126: received REQ pkt:
<<<<<
SERVICE selfcheck
OPTIONS

features=fffffeff9ffeffff07;maxdumps=1;hostname=<client_host>;
CALCSIZE GNUTAR <volume_name> 0 OPTIONS
|;auth=BSD;srvcomp-fast;index;
amandad: time 30.126: received dup P_REQ packet,
ACKing it
amandad: time 30.126: sending ACK pkt:
<<<<<
amandad: time 60.128: accept recv REQ pkt:
<<<<<
SERVICE selfcheck
OPTIONS

features=fffffeff9ffeffff07;maxdumps=1;hostname=<client_host>;
CALCSIZE GNUTAR <volume_name> 0 OPTIONS
|;auth=BSD;srvcomp-fast;index;
amandad: time 60.128: /usr/lib/amanda/selfcheck
OPTIONS

features=fffffeff9ffeffff07;maxdumps=1;hostname=<client_host>;
CALCSIZE GNUTAR <volume_name> 0 OPTIONS
|;auth=BSD;srvcomp-fast;index;
: already running, acking req
amandad: time 60.128: sending ACK pkt:
<<<<<
amandad: time 89.128: pid 21832 finish time Wed
Apr 18
17:01:30 2007

selfcheck*.debug file reads as follows:
selfcheck: debug 1 pid 21837 ruid 30318 euid
30318:
start at Wed Apr 18 17:00:01 2007
selfcheck: version 2.5.0p2
selfcheck: time 0.000: checking disk <volume_name>
selfcheck.20070418170001.debug (END)

Thanks a lot!

Yogesh

--- Jean-Louis Martineau <martineau AT zmanda DOT com>
wrote:
Yogesh,

Always look in the log and debug files if you
have a
problem.

What's in the amcheck.*.debug, amandad.*.debug
and

=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


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