Arno Lehmann wrote:
> Hi,
>
> On 6/30/2006 6:18 PM, Jeff Dickens wrote:
>   
>> I have an IBM VS160 tape drive.
>>
>> First I exercised the drive with tar & it seems to work fine.
>>
>> I added the following device definition to my bacula-sd.conf:
>>
>> Device {
>>   Name = VS160-1                        #
>>   Media Type = VS160
>>   Archive Device = /dev/nst0
>>   AutomaticMount = yes;               # when device opened, read it
>>   AlwaysOpen = yes;
>>   RemovableMedia = yes;
>>   RandomAccess = no;
>>   # Enable the Alert command only if you have the mtx package loaded
>>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>> }
>>     
>
> Looks good so far.
>
>   
>> I then restarted the sd.
>>
>> I did "btape -c /usr/bin/bacula/bacula-sd.conf /dev/nst0"
>>
>> and got  the
>>
>> Tape block granularity is 1024 bytes.
>> btape: btape.c:XXX Using device: /dev/nst0
>>
>> (I put in the XXX because I think it was a different line number)
>>
>> I don't think the asterisk prompt ever appeared.  I typed "test" and hit 
>> return.
>> Nothing happened for several minutes and the tape didn't move.
>>
>> Eventually I control-C'd out of it.
>>
>> Subsequent tape accesses (mt or tar) yield:
>>
>> /dev/nst0: Device or resource busy
>>     
>
> Yup.
> The SD holds the tape drive open ("AlwaysOpen = yes;") so no other 
> program can access it. Either unmount the device using bconsole, or stop 
> the SD to run other programs accessing the tape drive.
>
>   
>> I looked in my messages log and see this:
>>
>> Jun 30 11:36:43 otter kernel: st0: MTSETDRVBUFFER only allowed for root.
>>     
>
> This is - more or less - only informational. Searching the list, you 
> will find many mails with this message, but you won't find any 
> indication that the reported limitation causes any real problems. AFAIK etc.
>
>   
>> Any ideas ? This tape drive is used nightly by Backup Edge and gets 
>> successful bit-level verifies of sets over 100GB.
>>
>> I'm thinking I'll have to reboot to get my tape drive back now.
>>     
>
> No. Definitely not. Either 'kill `cat /var/run/bacula-sd.etc.`' or 
> 'umount DEVICENAME' in bconsole, for example.
>
> Arno
>
>   
Thanks for the background.. I will have to remember to unmount or maybe 
not automatically mount, as long as I'm depending on Backup Edge.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to