i had somewhat similar problems with btape that i ended up resolving by 
modifying the 
configuration of my scsi controller. see this thread:

http://sourceforge.net/mailarchive/forum.php?thread_name=20071030014308.GA31765%40sif.lsd.ornl.gov&forum_name=bacula-users

-- michael



On Fri, Nov 09, 2007 at 01:07:13PM -0800, Brad M wrote:
> Hi there, I am having some problems trying to get my Tape drive working with 
> Bacula. I am very new to the world of Bacula as I was only introduced to it 
> back at the BSDCan 2007 gathering. Basically I am setting up a new file 
> server and need to backup the data on a daily basis but can't get past the 
> point of simply testing my drive. When running the btape test command, it 
> seems that it is able to write to the device but unable to read from it. Here 
> is the error output: # ./btape -c bacula-sd.conf /dev/sa0Tape block 
> granularity is 1024 bytes.btape: butil.c:285 Using device: "/dev/sa0" for 
> writing.btape: btape.c:368 open device "HP_Ultrium" (/dev/sa0): OK*test=== 
> Write, rewind, and re-read test ===I'm going to write 1000 records and an 
> EOFthen 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:827 Wrote 1000 blocks of 64412 bytes.btape: btape.c:501 Wrote 1 EOF 
> to "HP_Ultrium" (/dev/sa0)b
 tape: btape.c:843 Wrote 1000 blocks of 64412 bytes.btape: btape.c:501 Wrote 1 
EOF to "HP_Ultrium" (/dev/sa0)btape: btape.c:501 Wrote 1 EOF to "HP_Ultrium" 
(/dev/sa0)btape: btape.c:852 Rewind OK.1000 blocks re-read correctly.07-Nov 
15:28 btape JobId 0: Error: block.c:995 Read error on fd=3 at file:blk 0:1000 
on device "HP_Ultrium" (/dev/sa0). ERR=Operation not permitted.btape: 
btape.c:864 Read block 1001 failed! ERR=Operation not permitted   Here is a 
copy of my baculad-sd.conf file: Storage {                             # 
definition of myself  Name = quagmire-sd  SDPort = 9103                  # 
Director's port  WorkingDirectory = "/usr/local/bacula/bin/working"  Pid 
Directory = "/usr/local/bacula/bin/working"  Maximum Concurrent Jobs = 20}
> Director {  Name = quagmire-dir  Password = "somthing random"}
> Director {  Name = quagmire-mon  Password = "somthing random"  Monitor = yes}
> Device {  Name = HP_Ultrium  Media Type = LTO  Archive Device = /dev/sa0  
> AutomaticMount = yes;  Device Type = Tape  AlwaysOpen = yes  Removable Media 
> = yes  Random Access = no;  AutoChanger = no#FreeBSD Settings  Offline On 
> Unmount = no  Hardware End of Medium = no  BSF at EOM = yes  Backward Space 
> Record = no  Backward Space File = no  Fast Forward Space File = no  TWO EOF 
> = yes}
> Messages {  Name = Standard  director = quagmire-dir = all}   My software 
> setup is as follows:FreeBSD 5.5 x86Bacula 2.2.5 (Installed from source)MySQL 
> 5.0.45   My hardware setup is as follows:CPU - AMD AM2 5600+Motherboard - 
> Asus M2N-LRSCSI Card - Adaptec 2130SLP (PCIX Ultra320)Tape Drive - HP 
> StorageWorks Ultrium 448Data Cartridge - HP LTO2 Ultrium 400GB I have been 
> trying various FreeBSD suggested configuration changes but in the end, I'm 
> always getting the same error. I manually tar'd 40GB of data to the tape 
> drive then extracted it back and it worked flawlessly. So I am guessing its a 
> configuration setting that I either got wrong or am missing.Any help would be 
> very appreciated. Thanks! Brad.
>  
> (Sorry if this gets posted twice as I had a message awaiting approval but it 
> disappeared)
> _________________________________________________________________
> Send a smile, make someone laugh, have some fun! Start now!
> http://www.freemessengeremoticons.ca/?icid=EMENCA122
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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