On Thursday 05 January 2006 08:31, Michael 'buk' Scherer wrote:
> Good morning.
>
> I'm just wondering if "Automatic Mount = yes" is still working as expected?
>
> My SD conf, upgraded from the old 1.36 to match the new autochanger:
> Autochanger {
> Name = TapeChanger
> Device = TapeStorage
> Changer Device = /dev/changer ## symlink to /dev/sgX
> Changer Command = "/u01/gis/bin/mtx-changer %c %o %s %a %d"
> }
>
> Device {
> Name = TapeStorage
> Drive Index = 0
> AutoChanger = yes
> Media Type = LTO
> Archive Device = /dev/tape ## symlink to /dev/nst0
> LabelMedia = yes
> RandomAccess = no
> AutomaticMount = yes
> RemovableMedia = yes
> AlwaysOpen = no
> Spool Directory = /u01/tmp/spool
> Maximum Spool Size = 20G
> Maximum Open Wait = 30 seconds
> Offline On Unmount = yes
> }
>
> As you can see I've set AlwaysOpen=no, AutomaticMount=yes.
> The docs now tell me, that with AutomaticMount=yes Bacula will check for
> tapes/media before every job.
I have the feeling that this is not correct. The AutomaticMount may only work
when the SD first starts. In any case, it will *definitely* not work if you
set "Offline on Unmount = yes". In that case, the drive requires an explict
mount command, if I am not mistaken. If you added this recently, it could
cause some problems.
>
> Now when I look at the status of the storage:
> Device "TapeStorage" (/dev/tape) open but no Bacula volume is mounted.
> Device is BLOCKED waiting for media.
> Slot 4 is loaded in drive 0.
> [...]
> In Use Volume status:
> D09251U on device "TapeStorage" (/dev/tape)
>
>
> Is there anything I'm missing? Did I miss some property to upgrade?
> I know that with "mount storage=LTO" everything would work fine but I'm not
> at work at night to issue the command.
> Usually we insert the tapes for the night during the day, at 7pm an "update
> slots storage=LTO" is issued via cron and the first jobs start running at
> 8pm. Currently this setup isn't working cause of the above issue.
>
> Any hints?
If neither of the two suggestions below work, you might try using "Volume Poll
Interval = 5 minutes". The only problem is that I have not tested this
lately in 1.38.3 and a lot has changed. In principle, it should resolve your
problem.
Second hint, you didn't specify, but if you are not already using 1.38.3,
please try it (I'll be officially releasing it later today). It has several
workarounds for kernel craziness.
Third hint. I *strongly* recommend running with "Always Open = yes". It saves
*lots* of wear and tear on your drives/tapes.
--
Best regards,
Kern
(">
/\
V_V
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users