> Sendsize may be run by hand.  Look for an amandad*debug file with
> SERVICE sendsize.  Take all the lines in the packet from the OPTIONS
> through the last DUMP line and put them in a temp file someplace.
> Then run sendsize by hand **as the Amanda user** with that file as
> standard input.

Great!

> You might try setting maxdumps to 1 in the OPTIONS line of the temp file
> to see if that makes any difference.  You might also try only listing
> the file system that shows the error.

It does. Here's sendsize.in

OPTIONS maxdumps=3;hostname=some.host.domain.org;
DUMP /var/spool/squid 0 1970:1:1:0:0:0 3
DUMP /var/spool/squid 1 2001:7:21:22:54:8 3
DUMP /var/spool/news 0 1970:1:1:0:0:0 2
DUMP /var/spool/news 2 2001:7:19:23:0:46 2
DUMP /var/spool/news 3 2001:7:22:7:31:34 2
DUMP /var/spool 0 1970:1:1:0:0:0 4
DUMP /var/spool 2 2001:7:21:22:59:19 4
DUMP /var/spool 3 2001:7:23:22:59:37 4
DUMP /var 0 1970:1:1:0:0:0 1
DUMP /var 1 2001:7:22:22:47:15 1
DUMP /usr 0 1970:1:1:0:0:0 1
DUMP /usr 1 2001:7:23:23:4:7 1
DUMP / 0 1970:1:1:0:0:0 1
DUMP / 1 2001:7:22:23:0:46 1

And the output:

OPTIONS maxdumps=3;
/var 0 SIZE 448301
/var 1 SIZE 138171
/var/spool 0 SIZE 4299533
/ 0 SIZE 133601
/var/spool 2 SIZE 1393488
/var/spool 3 SIZE 618897
/usr 0 SIZE 1048276
/ 1 SIZE 434
/usr 1 SIZE 11155
/var/spool/squid 0 SIZE -1
/var/spool/news 0 SIZE -1
/var/spool/news 2 SIZE -1
/var/spool/squid 1 SIZE -1
/var/spool/news 3 SIZE -1

When I change maxdumps to 1, the sizes are printed correctly:

OPTIONS maxdumps=1;
/ 0 SIZE 133601
/ 1 SIZE 434
/usr 0 SIZE 1048276
/usr 1 SIZE 11155
/var 0 SIZE 448456
/var 1 SIZE 138178
/var/spool 0 SIZE 4299727
/var/spool 2 SIZE 1393681
/var/spool 3 SIZE 619091
/var/spool/news 0 SIZE 7356950
/var/spool/news 2 SIZE 593094
/var/spool/news 3 SIZE 427060
/var/spool/squid 0 SIZE 17654653
/var/spool/squid 1 SIZE 541157

Reply via email to