Bacula-users

Re: [Bacula-users] Can't relabel a tape

2009-05-28 11:04:08
Subject: Re: [Bacula-users] Can't relabel a tape
From: Bob Hetzel <beh AT case DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 28 May 2009 10:56:19 -0400
Previously John Drescher <drescherjm AT gmail DOT com> said,

> On Thu, May 28, 2009 at 5:52 AM, C.DriK <c.drik-achats AT orange DOT fr> 
> wrote:
>> > Hello,
>> >
>> > Thank you for your reply.
>> > My bacula configuration is not perfect, and sometimes I have some problem 
>> > (especially with the autochanger, it not change the tape automaticaly).
>> > Once a problem occurs, the "mt-f ..." no longer works and I have "device 
>> > busy" in the shell.
>> > I do not understand why it did that.
> 
> Use the unmount command in bacula first or stop the bacula-sd
> 
> John
> 

Looks like we got off topic on this thread but anyway...

That might resolve the problem once you've got it but this might help more 
in preventing the problem:

In the mtx-changer script, tweak see this section
----
case $cmd in
    unload)
       debug "Doing mtx -f $ctl unload $slot $drive"
#
# enable the following line if you need to eject the cartridge
      ${MT} -f $device offline
      sleep 5
       ${MTX} -f $ctl unload $slot $drive
       ;;

    load)
       debug "Doing mtx -f $ctl load $slot $drive"
       ${MTX} -f $ctl load $slot $drive
       rtn=$?
#
----
Also note, at least some versions of bacula's "make install" scripting 
overwrote the mtx-changer file so you'd wind up losing your mods when you 
upgrade if you're not careful.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
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>