Amanda-Users

Errors in amstatus output

2004-09-10 10:02:05
Subject: Errors in amstatus output
From: KEVIN ZEMBOWER <KZEMBOWE AT jhuccp DOT org>
To: amanda-users AT amanda DOT org
Date: Fri, 10 Sep 2004 09:56:45 -0400
I just noticed these errors in the output of amstatus, from a run last night:
amanda@www:/etc/amanda/Outside$ amstatus Outside
Using /var/amanda/Outside/amdump.1 from Fri Sep 10 00:45:02 EDT 2004

www:sda1   1        0k finished (0:51:14)
www:sda10  2     1919k finished (0:51:51)
www:sda11  0  3319737k finished (4:42:52)
www:sda12  1      150k wait for dumping driver: (aborted)
Use of uninitialized value in printf at /usr/local/sbin/amstatus line 742.
www:sda14  0        0k failed to tape (7:20:40)
Use of uninitialized value in addition (+) at /usr/local/sbin/amstatus line 757.
Use of uninitialized value in addition (+) at /usr/local/sbin/amstatus line 767.
www:sda2   2   104343k finished (0:56:14)
www:sda5   1      120k finished (0:52:07)
www:sda6   1     3094k wait for dumping driver: (aborted)
www:sda7   0  5295676k finished (3:01:40)
www:sda8   2    50437k finished (1:02:50)

SUMMARY          part      real  estimated
                           size       size
partition       :  10
estimated       :  10             14068515k
flush           :   0         0k
failed          :   0                    0k           (  0.00%)
wait for dumping:   2                 3244k           (  0.02%)
dumping to tape :   0                    0k           (  0.00%)
dumping         :   0         0k         0k (  0.00%) (  0.00%)
dumped          :   8  13847339k  14065271k ( 98.45%) ( 98.43%)
wait for writing:   1         0k   5075107k (  0.00%) (  0.00%)
wait to flush   :   0         0k         0k (100.00%) (  0.00%)
writing to tape :   0         0k         0k (  0.00%) (  0.00%)
failed to tape  :   1         0k   5075107k (  0.00%) (  0.00%)
taped           :   7   8772232k   8990164k ( 97.58%) ( 62.35%)
  tape 1        :   7   8772232k   8990164k ( 53.47%) Outside-04
4 dumpers idle  : not-idle
taper idle
network free kps:      5800
holding space   :      3392k (100.00%)
 dumper0 busy   :  6:29:10  ( 99.93%)
   taper busy   :  6:27:14  ( 99.43%)
 0 dumpers busy :  0:00:16  (  0.07%)          start-wait:  0:00:16  (100.00%)
 1 dumper busy  :  6:29:10  ( 99.93%)            not-idle:  6:27:14  ( 99.50%)
                                               start-wait:  0:00:59  (  0.25%)
                                             no-bandwidth:  0:00:56  (  0.24%)
amanda@www:/etc/amanda/Outside$ 

Has the bahavior of amstatus changed? I thought you couldn't get an amstatus 
after the run was completed.

Here's the section of the code:
     737                                         
elsif($taper_finished{$hostpart} < 0) {
     738                                                 if( defined 
$opt_failed  ||
     739                                                          (defined 
$opt_waittaper && ($taper_finished{$hostpart} == -1))) {
     740                                                         printf "%8s ", 
$datestamp if defined $opt_date;
     741                                                         printf 
"%-${maxnamelength}s%2d", "$host:$partition", $level{$hostpa
     741 rt};
     742                                                         printf "%9dk", 
$size{$hostpart};
     743                                                         if($in_flush 
== 0) {
     744                                                                 print 
" failed to tape";
     745                                                         }
     746                                                         else {
     747                                                                 print 
" failed to flush";
     748                                                         }
     749                                                         print " (will 
retry)" unless $taper_finished{$hostpart} < -1;
     750                                                         if( defined 
$starttime ) {
     751                                                                 print 
" (", &showtime($taper_time{$hostpart}), ")";
     752                                                         }
     753                                                         print "\n";
     754                                                 }
     755 
     756                                                 $tfpartition++;
     757                                                 $tfsize += 
$size{$hostpart};
     758                                                 if(defined 
$esize{$hostpart}) {
     759                                                         $tfesize += 
$esize{$hostpart};
     760                                                 }
     761                                                 else {
     762                                                         $tfesize += 
$size{$hostpart};
     763                                                 }
     764 
     765                                                 if($in_flush == 0) {
     766                                                         $twpartition++;
     767                                                         $twsize += 
$size{$hostpart};
     768                                                         if(defined 
$esize{$hostpart}) {
     769                                                                 
$twesize += $esize{$hostpart};
     770                                                         }
     771                                                         else {
     772                                                                 
$twesize += $size{$hostpart};
     773                                                         }
     774                                                 }

I'm not much of a coder, but these don't seem significant; just complaining 
about output strings which can't be printed.

Here's the version info:
amanda@www:/etc/amanda/Outside$ amadmin Outside version
build: VERSION="Amanda-2.4.4p3"
       BUILT_DATE="Wed Aug 18 16:27:23 EDT 2004"
       BUILT_MACH="Linux www.jhuccp.org 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 
CEST 2002 i686 unknown"
       CC="gcc"
       CONFIGURE_COMMAND="'./configure' '--with-user=amanda' 
'--with-group=disk' '--with-owner=amanda' '--with-tape-device=/dev/nst0' 
'--prefix=/usr/local' '--with-portrange=10080,10083' 
'--with-tcpportrange=10080,10083' '--with-udpportrange=850,854' 
'--with-debugging=/tmp/amanda-dbg/' '--with-configdir=/etc/amanda'"
paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
       libexecdir="/usr/local/libexec" mandir="/usr/local/man"
       AMANDA_TMPDIR="/tmp/amanda"
       AMANDA_DBGDIR="/tmp/amanda-dbg/" CONFIG_DIR="/etc/amanda"
       DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
       RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
       XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
       SAMBA_CLIENT=UNDEF GNUTAR="/bin/tar"
       COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
       LPRCMD=UNDEF MAILER="/usr/bin/Mail"
       listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
defs:  DEFAULT_SERVER="www.jhuccp.org" DEFAULT_CONFIG="DailySet1"
       DEFAULT_TAPE_SERVER="www.jhuccp.org"
       DEFAULT_TAPE_DEVICE="/dev/nst0" HAVE_MMAP HAVE_SYSVSHM
       LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
       AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
       CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
       COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
       COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amanda@www:/etc/amanda/Outside$ 

Thanks for your thoughts on this. Let me know if there's anything else I can to 
to help solve this problem.

-Kevin



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