Hi,

On 1/3/2007 7:32 PM, Alan Davis wrote:
> 
> I'm consistently running into a problem where whenever the SD has to
> reposition the tape to start a new job it fails the tape because the
> number of volume files it counts on the tape doesn't match the number
> stored in the database for that volume. The files on tape is always 1
> less than the catalog entry. 

After a quick look over your configuration...
...
> Device {
>   Name = Drive-0                      #
>   Drive Index = 0
>   Media Type = DLT-8000
>   Archive Device = /dev/rmt/0cbn
>   AutomaticMount = yes;               # when device opened, read it
>   AutoSelect = yes;
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
>   Changer Command = "/opt/bacula/bin/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/changer
>   # Enable the Alert command only if you have the mtx package loaded
>   Alert Command = "/sbin/sh -c '/usr/local/sbin/tapeinfo -f %c
> |/usr/bin/grep TapeAlert|/usr/bin/cat'"
> Offline On Unmount      = no
> Hardware End of Medium  = yes
> BSF at EOM              = yes

... have you tried the tests with "BSF at EOM = no"? My understanding is 
that an incorrect setting here should give you the results you see.

> Backward Space Record   = yes
> Backward Space File     = yes
> Fast Forward Space File = yes
> Use MTIOCGET            = yes
> TWO EOF                 = yes

Perhaps you should verify that you need the above; if you do - i.e., if 
your OS / tape driver understand only an EOM that consists of two EOFs 
(and I'm not sure how solaris handles that) than better don't try my 
above suggestion :-)

>   LabelMedia = yes;                   # lets Bacula label unlabeled
> media
> Maximum Network Buffer Size = 65536
> }
> 
> Do I have a combination of settings that works under btape but is
> incorrect for the logic of the SD?

Looks like it.

> What tools does bacula provide that I can use to track this down
> further?

Not much beyond the debug output. You will need a pretty high debug 
level for the SD to follow the SDs tape activity, IIRC.

Any many thanks for a really informative bug report!

Arno

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to