On Wed, 2005-09-28 at 09:53 +0200, Kern Sibbald wrote: > On Wednesday 28 September 2005 03:47, Peter Sjoberg wrote: > > What is the correct way to do a thing like changing the magazine in a > > autoloader ? > > "unmount" any mounted drives using bconsole, and discharge the magazine. If > there are any loaded drives, most autochangers unload them. If that is not > the case, use mtx to unload the drives. I don't have much experience with different autochangers but none of the ones I worked with did unload the tape when it was dismounted. Using non-bacula commands like mtx to move around tapes feels wrong to me, that's why I asked here to start with, but if that's what it takes then it's not much to do. Any change that you implement "mtx" directly in the bacula console so bacula has a chance to see what's going on ?
> Alternatively, do what you did below, "update slots". > > > In the past it was only one drive in use and "update slots" > > did unload the drive. > > This is still the case. Nothing has changed in 1.37.x concerning "update > slots" and unloading the current drive. In looking at the output below, it > unloaded the drive. Perhaps something has changed, but I don't know what and > your output shows just the opposite. The output below shows how I update drive 1 and it unloads drive 0. Why did I even specify drive if it always uses 0 anyway ? > > > Now it properly handles multiple drives but now I > > no longer has a way to tell bacula-sd to unload the drive so I can > > change the magazine. > > > > [EMAIL PROTECTED]:/opt/bacula # echo update slots storage=TL892 > > drive=1|./bconsole > > Connecting to Director riker:9101 > > 1000 OK: riker-dir Version: 1.37.38 (04 September 2005) > > Enter a period to cancel a command. > > update slots storage=TL892 drive=1 > > Using default Catalog name=MyCatalog DB=bacula > > Connecting to Storage daemon TL892 at riker.intra.techwiz.ca:9103 ... > > 3306 Issuing autochanger "slots" command. > > Device "TL892" has 10 slots. > > Connecting to Storage daemon TL892 at riker.intra.techwiz.ca:9103 ... > > 3301 Issuing autochanger "loaded drive 0" command. > > 3302 Autochanger "loaded drive 0", result is Slot 6. > > 3307 Issuing autochanger "unload slot 6, drive 0" command. > > 3306 Issuing autochanger "list" command. > > Catalog record for Volume "FUL013" is up to date. > > ... > > > > Why do I have to specify the drive when it ignores it and goes for the > > first drive anyway ? > > > > It was talk about some auto changer move commands to be added but when I > > looked in http://www.bacula.org/dev-manual/Bacula_Console.html I dind't > > find any. > > > > Tonight I just restarted bacula to get it to rescan properly but I don't > > think everyone can do that. > ------------------------------------------------------- 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