Hello Martin,

[EMAIL PROTECTED] (Eric Böse-Wolf) writes:

> Hello Martin,
>
> Martin Simmons <[EMAIL PROTECTED]> writes:
>
>>> ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
>>> Dell-TD6100-152 -i 'Archive-0001|Archive-0002|Archive-0003|Archive-0004\
>>> |Archive-0005|Archive-0006|Archive-0007|Archive-0008|Archive-0009' \
>>> -o 'Archive-Tape-1'

Now I wanted to test this Archive-Tape-1 Volume and did a bcopy to a 
filestorage, an bls on that file gave:

hq:/opt/bacula# bin/bls -c config/bacula-sd.conf -j -VArchive-File-1
teststorage
bls: match.c:249-0 add_fname_to_include prefix=0 gzip=0 fname=/
bls: butil.c:282 Using device: "teststorage" for reading.
13-Nov 18:33 bls JobId 0: Ready to read from volume "Archive-File-1" on
device "teststorage" (/opt/bacula/teststorage).
Volume Record: File:blk=0:64511 SessId=1 SessTime=1194963345 JobId=0
DataLen=163
Begin Job Session Record: File:blk=0:64710 SessId=1 SessTime=1194451494
JobId=1
   Job=archiving1.2007-11-07_17.08.04 Date=07-Nov-2007 17:08:35 Level=F
   Type=B
End Job Session Record: File:blk=4:1114443800 SessId=1
SessTime=1194451494 JobId=1
   Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
   Bytes=18,280,593,556 Errors=0 Status=T
End Job Session Record: File:blk=4:1114451634 SessId=1
SessTime=1194459666 JobId=1
   Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
   Bytes=18,280,593,556 Errors=0 Status=T
End Job Session Record: File:blk=4:1114452054 SessId=1
SessTime=1194459666 JobId=1
   Date=07-Nov-2007 19:07:30 Level=F Type=B Files=3,342
   Bytes=18,280,593,556 Errors=0 Status=T
End Job Session Record: File:blk=4:1886789674 SessId=1
SessTime=1194459666 JobId=2
   Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
   Bytes=771,763,332 Errors=0 Status=T
End Job Session Record: File:blk=4:1886797980 SessId=1
SessTime=1194461231 JobId=2
   Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
   Bytes=771,763,332 Errors=0 Status=T
End Job Session Record: File:blk=4:1886798442 SessId=1
SessTime=1194461231 JobId=2
   Date=07-Nov-2007 19:42:34 Level=F Type=B Files=1,323
   Bytes=771,763,332 Errors=0 Status=T
End Job Session Record: File:blk=8:1484177429 SessId=1
SessTime=1194461231 JobId=3
   Date=08-Nov-2007 01:45:10 Level=F Type=B Files=104,609
   Bytes=16,761,465,453 Errors=0 Status=T
End Job Session Record: File:blk=8:1484198239 SessId=3
SessTime=1194544349 JobId=3
   Date=08-Nov-2007 01:45:10 Level=F Type=B Files=104,609
   Bytes=16,761,465,453 Errors=0 Status=T
End Job Session Record: File:blk=8:1484198709 SessId=3
SessTime=1194544349 JobId=3
   Date=08-Nov-2007 01:45:10 Level=F Type=B Files=104,609
   Bytes=16,761,465,453 Errors=0 Status=T
End Job Session Record: File:blk=8:1523404827 SessId=3
SessTime=1194544349 JobId=10
   Date=08-Nov-2007 20:06:22 Level=F Type=B Files=21 Bytes=39,303,970
   Errors=0 Status=T
End Job Session Record: File:blk=8:1523404827 SessId=3
SessTime=1194544349 JobId=10
   Date=08-Nov-2007 20:06:22 Level=F Type=B Files=21 Bytes=39,303,970
   Errors=0 Status=T
End Job Session Record: File:blk=8:1523404827 SessId=3
SessTime=1194544349 JobId=10
   Date=08-Nov-2007 20:06:22 Level=F Type=B Files=21 Bytes=39,303,970
   Errors=0 Status=T
13-Nov 18:41 bls JobId 0: End of Volume at file 8 on device
"teststorage" (/opt/bacula/teststorage), Volume "Archive-File-1"
13-Nov 18:41 bls JobId 0: End of all volumes.

So there should be 4 Jobs on the tape, but there seem to be only 
End Job Session records and only one beginning job record ....

Is bcopy broken?

> As this complete line takes rather long to complete, I did setup a 
> teststorage and did
>
> ./bcopy -c ../config/bacula-sd.conf -w /opt/bacula/working/ DVD-RAM \
> teststorage -i 'Archive-0001' -o 'test1'
>
> and got the same error message (of course with different times):
>
>>> 09-Nov 20:32 bcopy JobId 0: Error: block.c:1091 Volume data error at
>>> 1:284417160! Short block of 4983 bytes on device "DVD-RAM"
>>> (/media/cdrom0) discarded.
>>> 
>>> 09-Nov 20:32 bcopy JobId 0: Error: read_record.c:142 block.c:1091 Volume
>>> data error at 1:284417160! Short block of 4983 bytes on device "DVD-RAM"
>>> (/media/cdrom0) discarded.
>
>> The error means that the block length recorded in the block's header is 
>> longer
>> than the data read from the device.
>>
>> I would expect that to be impossible unless the volume is corrupted.  Did you
>> get any syslog messages?  Is the error repeatable with the same numbers in 
>> the
>> message?  Which version of Bacula wrote the volume?
>
> Version: 2.2.5 all on linux.
> No syslog message on Read. 
> I looked through my syslog in the time the volume was written and
> nothing.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to