Hello,
 
I've started recently the configuration of a backup system for our Linux Server. After seeking through www, we decided to trust in Bacula cause it seemed to us it covered our needs.
 
After installing it (following the instructions in the User's Guide), I tried to make a test of the storage media with 'btape' as it is recommended but it haven't been successful. Although I have searched a possible solution to the error I haven't been able to find an answer.
 
The btape output is as follows:
 

linux01:/opt/bacula/bin # ./btape -c bacula-sd.conf /dev/ht0
Tape block granularity is 1024 bytes.
btape: butil.c:266 Using device: "/dev/ht0" for writing.
btape: btape.c:338 open device "TRAVAN 40" (/dev/ht0): OK
*test

=== Write, rewind, and re-read test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and re-read the data to verify that it is correct.

This is an *essential* feature ...

btape: btape.c:795 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "TRAVAN 40" (/dev/ht0)
btape: btape.c:811 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "TRAVAN 40" (/dev/ht0)
btape: btape.c:820 Rewind OK.
1000 blocks re-read correctly.
Got EOF on tape.
1000 blocks re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===


=== Write, rewind, and position test ===

I'm going to write 1000 records and an EOF
then write 1000 records and an EOF, then rewind,
and position to a few blocks and verify that it is correct.

This is an *essential* feature ...

14-nov 17:56 btape: btape Error: block.c:538 Write error at 0:0 on device "TRAVAN 40" (/dev/ht0). ERR=Error de entrada/salida.
14-nov 17:57 btape: btape Error: Re-read last block at EOT failed. ERR= block.c:953 Read zero bytes at 0:0 on device "TRAVAN 40" (/dev/ht0).
btape: btape.c:903 Error writing block to device.

I have tried to make a little backup & recovery test using cpio and it functions.
The OS is Suse Linux 9.2.
The tape is a DELL PowerVault 100T Travan 40
 
The configuration file used includes the following Device definition:
 
Device {
  Name = "TRAVAN 40"
  Media Type = TRAVAN40
  Archive Device = /dev/ht0
  AutomaticMount = yes;               
  AlwaysOpen = yes;                   
  Close on Poll = yes;                
  Offline on Unmount = yes;          
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = no;
  Minimum block size = 64512;
  Maximum block size = 64512;
}
 
I established the Minimum & Maximum block size cause I read somewhere that It could be a problem related with a tape working in fixed blocks mode. But without these configuration parameters the test error persists.
 
I hope someone could help me.
 
Thank you,
 
Carles Biosca.

Reply via email to