Arno Lehmann wrote:
> Hello,
>
> On 5/26/2006 11:05 PM, Bill Moran wrote:
>> Gregory Brauer <[EMAIL PROTECTED]> wrote:
>>
>>> At the end of our weekly cycle I would like to command
>>> our loader to unload any tapes that are in the drive
>>> to make for easy tape swapping. With versions of bacula
>>> prior to 1.38 the director daemon was running as root,
>>> so ejecting the tape was a simple matter of creating a
>>> job that ran an "mtx unload" as a RunBeforeJob rule.
>>> Now that bacula-dir is running as the bacula user for
>>> security, the bacula-dir no longer has permission to run
>>> mtx commands directly. I was wondering if there is a way
>>> I can command bacula-sd to eject the tapes on behalf of the
>>> director.
>>
>>
>> I use a combination of sudo and RunAfterJob to accomplish this. If
>> there's
>> a better way, I'd love to hear it :)
>
> Use the umount command from a Bacula shell?
>
> (Also possible in a RunAfterJob like 'echo "umount XXX|bconsole -c ...'
> in a shell.)
umount only detaches the storage deamon from the tape drive. It doesn't
actually force a changer tape unload.
Looks like I'll be using the sudo method, but I'd sure like to
see this filed as a feature request:
Add a bconsole command that will unload all tapes from all
drives in all changers.
Greg
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users