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.
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;
}
