Amanda-Users

strange errors with 2.5.0p2

2006-07-28 07:10:17
Subject: strange errors with 2.5.0p2
From: Rodrigo Ventura <yoda AT isr.ist.utl DOT pt>
To: amanda-users AT amanda DOT org
Date: Fri, 28 Jul 2006 12:01:16 +0100
Hello all,

I'm having trouble with amdump. It has failed for the second time. The facts:

The relevant parts of the mail report:
[includes my comments starting with a (*) ]

--------------------------------------------------
These dumps were to tape ISR006.
*** A TAPE ERROR OCCURRED: [No more writable valid tape found].
Some dumps may have been left in the holding disk.
Run amflush to flush them to tape.
The next tape Amanda expects to use is: ISR004.

(*) NOTE: this is wrong, since there are no dumps for amflush to flush! Is it 
because the DLE is at the same server as the amanda server?

FAILURE AND STRANGE DUMP SUMMARY:
[...]
  omni    /home/mn  lev 0  FAILED [out of tape]
  omni    /home/mn  lev 0  FAILED [data write: Connection reset by peer]
  omni    /home/mn  lev 0  FAILED [dump to tape failed]

[...]

USAGE BY TAPE:
  Label        Time      Size      %    Nb    Nc
  ISR006       2:28 26803680k   73.9    42     0

(*) 26803680kb/1024=26175.5mb is the size of the successful dumps on tape, 
right?

[...]

NOTES:
[...]
  taper: tape ISR006 kb 36546272 fm 43 writing file: No space left on device

(*) What is the 36546272? The amount of data actually written on tape?
--------------------------------------------------

Now, the tape entry on amanda.conf contains:

--------------------------------------------------
define tapetype HP-DAT-72x6-nc {
    comment "HP autoloader DAT 72x6 (compression off)"
    # data provided by Rodrigo Ventura <yoda AT isr.ist.utl DOT pt>
    length 35400 mbytes
    filemark 0 kbytes
    speed 3002 kps
}
--------------------------------------------------

where 35400 is a bit lower than what amtapetype actually measured. So, 
36546272kb/1024=35689.7mb makes sense here.

Looking at the sendsize report for /home/mn we get:

--------------------------------------------------
sendsize[2154]: estimate time for /home/mn level 0: 45.958
sendsize[2154]: estimate size for /home/mn level 0: 11853650 KB
--------------------------------------------------

so this means amanda estimates /home/mn to take 11853650kb/1024=11575.8mb

My big question is why on earth amanda tries to dump /home/mn on a tape of 
size 35400mb with 26175.5mb already taken up, since 26175.5 + 11575.8 = 
37751.3 > 35400 !!!

Maybe amanda.conf has to be adjusted to the new amanda version.

Just for the record, amdump is run from cron using the following script:

#! /bin/sh
/bin/mt -f /dev/nst0 compression 0
/usr/local/sbin/amdump ISR
/usr/local/sbin/amtape ISR eject
# EOF

Thank you,

Rodrigo Ventura

-- 

*** Rodrigo Martins de Matos Ventura <yoda AT isr.ist.utl DOT pt>
***  Web page: http://www.isr.ist.utl.pt/~yoda
***   Teaching Assistant and PhD Student at ISR:
***    Instituto de Sistemas e Robotica, Polo de Lisboa
***     Instituto Superior Tecnico, Lisboa, PORTUGAL
*** PGP fingerprint = 0119 AD13 9EEE 264A 3F10  31D3 89B3 C6C4 60C6 4585

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