On Wednesday 03 August 2005 00:32, Kern Sibbald wrote:
> On Wednesday 03 August 2005 01:09, George R. Kasica wrote:
> > Well, I've partially solved my own problem but don't know how to get
> > Bacula to do it automatically.
> >
> > The working sequence of load and eject is as follows:
> >
> > mtx -f /dev/sg0 load 1
> > mt -f /dev/nst0 rewind (OR WHATEVER YOU'RE DOING)
> > mt -f /dev/nst0 offline
> > mtx -f /dev/sh0 unload 1
> >
> > The catch seems to be needing the offline command, but how do I get
> > that into the bacula changer script and where???
>
> If I am not mistaken, the script *shows* you exactly where it should go.
> Try looking at the script.

At line 102 of mtx-changer (version 1.11.2.1, Bacula 1.36.1) there is a pair 
of lines that say:

# enable the following line if you need to eject the cartridge
     mt -f $device offline

I have it enabled in mine because I need the offline command.  You should be 
able to add the rewind command right above it.  Although, the offline command 
should perform a rewind, so I'm not sure if it is needed.

j----- k-----

-- 
Joshua Kugler
CDE System Administrator
http://distance.uaf.edu/


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to