Hi,
I'm in the process of setting up bacula for the first time for our
network but am getting errors when I run btape fill. I'm running bacula
version 1.38.1 (installed from ports) on FreeBSD 5.4 with a Quantum SDLT
110/220 tape drive (which is inside a Overland LoaderXPress). If I run
the btape test command the output indicates everything worked
successfully, however when running btape fill using single tape mode
btape gives me the following error:
btape: btape.c:2329 End of tape 108:0. VolumeCapacity=102,275,630,752.
Write rate = 9689.8 KB/s
Done writing ...
Done filling tape at 108:0. Now beginning re-read of tape ...
ERROR! device at 1:1 count=1
ERROR! device at 1:1 count=1
Reposition from 1:1 to 106:10374
I waited about 30 minutes after receiving this last message but btape
didn't display anything else. Assuming it had hung I killed it with
<control>+<c>.
Output from btape fill, btape test and my bacula-sd.conf file are
included below.
Does anybody have any ideas about what might be wrong here? I'm trying
to get bacula into production in the next few days, so any help would be
greatly appreciated.
Thanks,
Joe
Here's the device definition from my bacula-sd.conf file:
Device {
Name = Overland
Description = "Overland on FreeBSD"
Media Type = SDLT-1
Archive Device = /dev/nsa0
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes
Offline On Unmount = no
Hardware End of Medium = no #FreeBSD secific
BSF at EOM = yes #FreeBSD secific
Backward Space Record = no #FreeBSD secific
Fast Forward Space File = no #FreeBSD secific
TWO EOF = yes #FreeBSD secific
# Autochanger = yes
# Changer Device = /dev/pass0
# Changer Command = "/usr/local/sbin/mtx-changer %c %o %S %a %d"
}
The device has an autochanger but I want to get it working without an
autochanger first.
Here's some of the output from btape fill:
[EMAIL PROTECTED] btape /dev/nsa0
Tape block granularity is 1024 bytes.
btape: butil.c:266 Using device: "/dev/nsa0" for writing.
btape: btape.c:338 open device "Overland" (/dev/nsa0): OK
*fill
This command simulates Bacula writing to a tape.
It requires either one or two blank tapes, which it
will label and write.
If you have an autochanger configured, it will use
the tapes that are in slots 1 and 2, otherwise, you will
be prompted to insert the tapes when necessary.
It will print a status approximately
every 322 MB, and write an EOF every 3.2 GB. If you have
selected the simple test option, after writing the first tape
it will rewind it and re-read the last block written.
If you have selected the multiple tape test, when the first tape
fills, it will ask for a second, and after writing a few more
blocks, it will stop. Then it will begin re-reading the
two tapes.
This may take a long time -- hours! ...
Do you want to run the simplified test (s) with one tape
or the complete multiple tape (m) test: (s/m) s
Simple test (single tape) selected.
Wrote Volume label for volume "TestVolume1".
Wrote Start of Session label.
Begin writing Bacula records to tape ...
Wrote blk_block=5000, dev_blk_num=4999 VolBytes=322,495,472 rate=10078.0
KB/s
Wrote blk_block=10000, dev_blk_num=9999 VolBytes=645,055,424
rate=10239.0 KB/s
Wrote blk_block=15000, dev_blk_num=14999 VolBytes=967,615,368
rate=10293.8 KB/s
Flush block, write EOF
Wrote blk_block=20000, dev_blk_num=5000 VolBytes=1,290,175,312
rate=10001.4 KB/s
Wrote blk_block=25000, dev_blk_num=10000 VolBytes=1,612,735,264
rate=10079.6 KB/s
Wrote blk_block=30000, dev_blk_num=15000 VolBytes=1,935,295,208
rate=9874.0 KB/s
Flush block, write EOF
.......
Wrote blk_block=1550000, dev_blk_num=5000 VolBytes=99,993,519,128
rate=9695.9 KB/s
Wrote blk_block=1555000, dev_blk_num=10000 VolBytes=100,316,079,072
rate=9697.1 KB/s
Wrote blk_block=1560000, dev_blk_num=15000 VolBytes=100,638,639,016
rate=9699.2 KB/s
Flush block, write EOF
Wrote blk_block=1565000, dev_blk_num=5000 VolBytes=100,961,198,968
rate=9692.9 KB/s
Wrote blk_block=1570000, dev_blk_num=10000 VolBytes=101,283,758,912
rate=9695.0 KB/s
Wrote blk_block=1575000, dev_blk_num=15000 VolBytes=101,606,318,864
rate=9697.1 KB/s
Flush block, write EOF
Wrote blk_block=1580000, dev_blk_num=5000 VolBytes=101,928,878,808
rate=9695.5 KB/s
Wrote blk_block=1585000, dev_blk_num=10000 VolBytes=102,251,438,752
rate=9697.6 KB/s
14-Dec 17:20 btape: End of Volume "TestVolume1" at 106:10375 on device
"Overland" (/dev/nsa0). Write of 64512 bytes got 0.
btape: btape.c:2295 Last block at: 106:10374 this_dev_block_num=10375
btape: btape.c:2329 End of tape 108:0. VolumeCapacity=102,275,630,752.
Write rate = 9689.8 KB/s
Done writing ...
Wrote state file last_block_num1=10374 last_block_num2=0
Done filling tape at 108:0. Now beginning re-read of tape ...
Reading the first 10000 records.
ERROR! device at 1:1 count=1
ERROR! device at 1:1 count=1
Reposition from 1:1 to 106:10374
Here is the output from btape test:
[EMAIL PROTECTED] btape /dev/nsa0
Tape block granularity is 1024 bytes.
btape: butil.c:266 Using device: "/dev/nsa0" for writing.
btape: btape.c:338 open device "Overland" (/dev/nsa0): 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 "Overland" (/dev/nsa0)
btape: btape.c:811 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
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 ...
btape: btape.c:907 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:923 Wrote 1000 blocks of 64412 bytes.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:932 Rewind OK.
Reposition to file:block 0:4
Block 5 re-read correctly.
Reposition to file:block 0:200
Block 201 re-read correctly.
Reposition to file:block 0:999
Block 1000 re-read correctly.
Reposition to file:block 1:0
Block 1001 re-read correctly.
Reposition to file:block 1:600
Block 1601 re-read correctly.
Reposition to file:block 1:999
Block 2000 re-read correctly.
=== Test Succeeded. End Write, rewind, and re-read test ===
=== Append files test ===
This test is essential to Bacula.
I'm going to write one record in file 0,
two records in file 1,
and three records in file 2
btape: btape.c:438 Rewound "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:338 open device "Overland" (/dev/nsa0): OK
btape: btape.c:438 Rewound "Overland" (/dev/nsa0)
btape: btape.c:1061 Now moving to end of medium.
btape: btape.c:490 Moved to end of medium.
We should be in file 3. I am at file 3. This is correct!
Now the important part, I am going to attempt to append to the tape.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:438 Rewound "Overland" (/dev/nsa0)
Done appending, there should be no I/O errors
Doing Bacula scan of blocks:
1 block of 64448 bytes in file 1
End of File mark.
2 blocks of 64448 bytes in file 2
End of File mark.
3 blocks of 64448 bytes in file 3
End of File mark.
1 block of 64448 bytes in file 4
End of File mark.
Total files=4, blocks=7, bytes = 451,136
End scanning the tape.
We should be in file 4. I am at file 4. This is correct!
The above Bacula scan should have output identical to what follows.
Please double check it ...
=== Sample correct output ===
1 block of 64448 bytes in file 1
End of File mark.
2 blocks of 64448 bytes in file 2
End of File mark.
3 blocks of 64448 bytes in file 3
End of File mark.
1 block of 64448 bytes in file 4
End of File mark.
Total files=4, blocks=7, bytes = 451,136
=== End sample correct output ===
If the above scan output is not identical to the
sample output, you MUST correct the problem
or Bacula will not be able to write multiple Jobs to
the tape.
Skipping read backwards test because BSR turned off.
=== Forward space files test ===
This test is essential to Bacula.
I'm going to write five files then test forward spacing
btape: btape.c:438 Rewound "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:1531 Wrote one record of 64412 bytes.
btape: btape.c:1533 Wrote block to device.
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:469 Wrote 1 EOF to "Overland" (/dev/nsa0)
btape: btape.c:438 Rewound "Overland" (/dev/nsa0)
btape: btape.c:1276 Now forward spacing 1 file.
We should be in file 1. I am at file 1. This is correct!
btape: btape.c:1288 Now forward spacing 2 files.
We should be in file 3. I am at file 3. This is correct!
btape: btape.c:438 Rewound "Overland" (/dev/nsa0)
btape: btape.c:1301 Now forward spacing 4 files.
We should be in file 4. I am at file 4. This is correct!
btape: btape.c:1319 Now forward spacing 1 more file.
We should be in file 5. I am at file 5. This is correct!
=== End Forward space files test ===
*quit
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users