Bacula-users

Re: [Bacula-users] eject DLT

2008-10-04 15:47:39
Subject: Re: [Bacula-users] eject DLT
From: "Erik P. Olsen" <epodata AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 30 Sep 2008 12:42:31 +0200
On 30/09/08 10:54, Tilman Schmidt wrote:
> On 29.09.2008 11:35, /me wrote:
>> On 28.09.2008 05:45, James Harper wrote:
> [...]
>>> The script that is executed is this ('scuse the line wrapping):
>>>
>>> "
>>> #!/bin/sh
>>> echo "unmount storage=bitvs2-tape-sd" | /usr/bin/bconsole -c
>>> /etc/bacula/bconsole.conf
>>> /bin/mt -f /dev/nst0 eject 2>/dev/null >/dev/null
>>> echo "mount storage=bitvs2-tape-sd" | /usr/bin/bconsole -c
>>> /etc/bacula/bconsole.conf
>>> "
>>>
>>> I think I put the 'mount' command in so that Bacula knows that the tape
>>> drive is ready for use again. Otherwise it remained unmounted and bacula
>>> wouldn't touch it.
>>
>> Interesting idea. I always assumed the "mount" command only made sense
>> after loading the next tape, because if I issued it with the drive still
>> empty it would complain thusly:
>>
>> 3901 open device failed: ERR=dev.c:433 Unable to open device "LTO1"
>> (/dev/nst0): ERR=No medium found
>>
>> Time for a little experiment, I guess.
> 
> Worked great. After the "mount" command on the empty drive, Bacula did
> detect and write to a tape I inserted later without issuing another
> "mount" command.

I think it is close to being a bug that you don't get a message to the effect
that the device indeed has been mounted.

-- 
Erik.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>