Try the attached patch.
Jean-Louis
McGraw, Robert P. wrote:
When I run amstatus --config daily --date"
zorn->[13] > amstatus --config daily --date
Using /var/amanda/daily/amdump from Fri May 25 07:51:23 EDT 2007
20070525075123 bers:/ 0
4649m finished (9:20:41)
20070525075123 bessel:/ 0
4621m finished (9:28:22)
20070525075123 bohr:/ 0
4967m finished (9:13:19)
:
taper writing, tapeq: 0
network free kps: 2090751
holding space : 8733m ( 2.13%)
chunker1 busy : 0:00:00 ( 0.00%)
chunker2 busy : 0:00:00 ( 0.00%)
chunker3 busy : 0:00:00 ( 0.00%)
chunker4 busy : 0:00:00 ( 0.00%)
chunker5 busy : 0:00:00 ( 0.00%)
chunker6 busy : 0:00:00 ( 0.00%)
chunker7 busy : 0:00:00 ( 0.00%)
chunker8 busy : 0:00:00 ( 0.00%)
chunker9 busy : 0:00:00 ( 0.00%)
dumper0 busy : 7:05:09 ( 87.98%)
dumper1 busy : 6:16:22 ( 77.88%)
dumper2 busy : 6:47:01 ( 84.22%)
My chunkers shows zero, but I have chunkers running.
My build is
zorn->[15] > amadmin daily version
build: VERSION="Amanda-2.5.2-20070523"
BUILT_DATE="Thu May 24 10:07:47 EDT 2007"
BUILT_MACH="SunOS zorn.math.purdue.edu 5.10 Generic_118833-03
sun4u sparc SUNW,Sun-Fire-280R"
Robert
_____________________________________________________________________
Robert P. McGraw, Jr.
Manager, Computer System EMAIL: rmcgraw AT purdue DOT edu
Purdue University ROOM: MATH-807
Department of Mathematics PHONE: (765) 494-6055
150 N. University Street FAX: (419) 821-0540
West Lafayette, IN 47907-2067
diff -u -r --show-c-function --new-file
--exclude-from=/home/martinea/src.orig/amanda.diff
--ignore-matching-lines='$Id:' amanda-2.5.2/server-src/amstatus.pl.in
amanda-2.5.2.amstatus.chunker/server-src/amstatus.pl.in
--- amanda-2.5.2/server-src/amstatus.pl.in 2007-05-23 08:04:53.000000000
-0400
+++ amanda-2.5.2.amstatus.chunker/server-src/amstatus.pl.in 2007-05-28
07:59:31.000000000 -0400
@@ -407,7 +407,7 @@ while(<AMDUMP>) {
$serial=$4;
$serial{$serial}=$hostpart;
#$chunk_started{$hostpart}=1;
- #$chunk_time{$hostpart}=$1;
+ $chunk_time{$hostpart}=$1;
#$chunk_finished{$hostpart}=0;
$holding_file{$hostpart}=$5;
}
@@ -421,7 +421,7 @@ while(<AMDUMP>) {
$serial=$4;
$serial{$serial}=$hostpart;
#$chunk_started{$hostpart}=1;
- #$chunk_time{$hostpart}=$1;
+ $chunk_time{$hostpart}=$1;
#$chunk_finished{$hostpart}=0;
$holding_file{$hostpart}=$5;
}
@@ -552,9 +552,9 @@ while(<AMDUMP>) {
$hostpart=$serial{$serial};
$size{$hostpart}=$outputsize;
$dump_finished{$hostpart}=1;
- $busy_time{$2}+=($1-$dump_time{$hostpart});
+ $busy_time{$2}+=($1-$chunk_time{$hostpart});
$running_dumper{$2} = "0";
- $dump_time{$hostpart}=$1;
+ $chunk_time{$hostpart}=$1;
$error{$hostpart}="";
if ($3 eq "PARTIAL") {
$partial{$hostpart} = 1;
|