Hello Dietz, I am on vacation with very limited Internet connections and do not have my normal development machine in front of me, so I am at this time until mid-Feb only answering very simple technical questions that are well defined that do not take any research or looking back at prior emails. Even when I am not on vacation, I tend to let the list answer almost everything.
In your case, if you are not getting a response, it could be because you have not sent in your Director's Storage resource, nor the full SD definitions. Also, from what I see below, you have a zillion directives in your Device resource. This makes things very complicated. In general the defaults are pretty well defined so you probably should have only half as many directives. This will make it easier for more experienced people to see what you really are doing differently. Perhaps you forget the Autochanger = yes directive in your Director's Storage resource. Best regards, Kern On 03/25/2016 03:47 AM, Dietz Pröpper wrote: > Hi Kern, > > sorry for mailing you directly, but just a humble question. > > Did this mail also miss necessary details? What else should I supply? > > Regards, > Dietz > > Dietz Pröpper wrote: >> Kern Sibbald wrote: >> >> Well, slap taken ;-). All the dirty little details follow. >> >> Version: 7.0.5, own build >> Storage device: Autochanger with two drives >> Device config: see below >> >> Expected behaviour: >> After I unmount a tape drive, a "status sd" in bconsole should give the >> status "Device is BLOCKED. User unmounted.\nDrive 0 is not loaded.". If I >> unmount all devices attached to the changer, no backup should be able to >> start. >> >> Observed behaviour: >> If "Always Open = yes" in sd config: >> (1) I unmount a "empty" device and get the response "3901 Device ""LTO0" >> (/dev/nst0)" is already unmounted.". But "status sd" yields only >> "Drive 0 is not loaded.", w/o the "BLOCKED" line. >> (2) All devices are empty on sd startup and I unmount all of them. Status >> as in (1). Afterwards I start a backup and the first tape is happily >> used. (3) To get a "BLOCKED" status from sd, I need to mount and unmount a >> device if the device is empty at sd startup. >> >> If "Always Open = no" (as in the config snippet from below): >> sd status always says "Drive 0 is not loaded." or "Slot xx was last loaded >> in drive 0.". Backups always start, regardless of device mount state. >> >> For the "why" part - no idea. I can also attach complete bconsole output, >> but this would be quite a lot. But if it would help or if you need further >> infos, just ask. >> >> Regards, >> Dietz >> >>> It would probably help get a response if you give some details about >>> "this seems to work no longer". >>> >>> Why doesn't it work? What does it do? What is the exact output? >>> >>> On 02/24/2016 04:04 AM, Dietz Pröpper wrote: >>>> Hi, >>>> >>>> I have a little problem: >>>> I have an autochanger with two devices. In former times, after I issued >>>> a >>>> "unmount storage=blah drive=0" the sd status for that device was >>>> displayed >>>> as "BLOCKED by user", which should still be the case, according to the >>>> documentation. >>>> >>>> Since some months, this seems to work no longer. >>>> >>>> The bacula version is 7.0.5 and the device definition is as follows: >>>> Device { >>>> >>>> Name = LTO0 >>>> Media Type = LTO-3 >>>> Device Type = Tape >>>> Archive Device = /dev/nst0 >>>> drive index = 0 >>>> AutomaticMount = yes; # when device opened, read it >>>> AlwaysOpen = no; >>>> RemovableMedia = yes; >>>> RandomAccess = no; >>>> Offline On Unmount = no >>>> >>>> Autochanger = yes; >>>> Drive Index = 0; >>>> Alert Command = "sh -c 'tapeinfo -f /dev/sg0 |grep TapeAlert|cat'" >>>> Maximum Network Buffer Size = 655360 >>>> >>>> Maximum Spool Size = 400g >>>> Spool Directory = /var/bacula/spool >>>> Maximum File Size=15g >>>> Maximum Block Size = 1290240 >>>> Maximum Network Buffer Size = 655360 >>>> >>>> Maximum Changer Wait = 300 s >>>> Maximum Open Wait = 180 s >>>> >>>> } >>>> >>>> Any idea? >>>> >>>> Regards, >>>> >>>> Dietz > ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users