On Monday 03 October 2005 23:52, Arno Lehmann wrote: > Hello, > > On 03.10.2005 22:29, Tom Boyda wrote: > > Hello, > > > > I ran into an issue over the weekend where my tape library didn't know > > which slot to return a tape in the drive. I have a Qualstar RLS-8236 > > tape library - 2 LTO tape drives 36 tape slots. > > > > I believe mtx -f ... status for the drives returned "Unknown Storage > > Element" so when mtx-changer asked, the changer didn't know where to > > return the tape. > > > > Now bacula knew the tapes went into slots 1 and 6 because the volume > > entry in the DB said the tapes should be in slots 1 and 6. > > > > My question is - How can I get bacula to put the tape into the correct > > slot when the library doesn't know (remember) which slot it came from? > > > > Is there something that can be done to the mtx-changer script so that it > > can return the tape to the correct slot? > > Nothing simple I fear. > > The "right" solution would be that bacula before unloading a tape always > verifies that the slot it has in the catalog is actually free and passes > that slot as an argument to mtx-changer. > > In other words - code changes.
Uh, I am confused here. Doesn't the mtx-changer script *always* specify both a slot and a drive on the unload request when calling mtx? If somone has transferred a tape into a slot that Bacula has loading, that will undoubtedly cause confusion, but otherwise, it seems to me most likely to be an autoloader problem. This could be determined by turning on a little debug code in the mtx-changer script. > > One other solution could perhaps be done externally to bacula, but still > requires lots of new code. Basically, call the mtx-changer script with a > parameter representing the tape name or the slot it should go to. > > (By the way: Is there in the manual a reference of all the variables > that can be used, and where they are valid? I couldn't find one.) > > Then, query the autochanger if the requested slot is available right > now. If it is, unload to that slot. > > If the slot is not available, select another one and update the catalog > accordingly. > > > Thank you in advance for your help and pointers. > > Not much help if you want a solution now... > > Arno > > > Tom. > > ---- > > Thomas Boyda > > Consultant > > Daou Systems, Inc. > > [EMAIL PROTECTED] > > 276-739-2314 > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Bacula-users mailing list > > Bacula-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users