"Mike Ruskai" <than...@earthlink.net> kirjoitti viestissä news:4afb06f0.1090...@earthlink.net...
> Just use "Media Type = File" in your director Storage definition block, > which changes volumes from individual tapes to individual files. Then > use something like this in your storage daemon configuration: > > Device { > Name = MiniTowerStorage > Device Type = File > Media Type = File > Archive Device = /backups > LabelMedia = yes > Random Access = yes > # Requires Mount = yes > # Mount Point = "/backups" > # Mount Command = "/etc/bacula/mountback" > # Unmount Command = "/etc/bacula/unmountback" > AutomaticMount = yes > RemovableMedia = no > AlwaysOpen = no > } > > That's from a 2.4.4 config. The 3.x options may be slightly different, > but I haven't migrated yet. > > The commented statements are what should make Bacula automatically mount > and unmount the storage, but it doesn't actually work. It will happily > mount the array, but when the job is done, it does not run the unmount > command. I worked around that by adding before/after scripts to each > job that do the mounting/unmounting. You could just leave the storage > mounted, of course, but I prefer being able to physically remove the > drive tower at any time when a job isn't running, without having to > manually log to unmount and stop the array first. > > Things get more complicated if you want to cycle multiple different > drives. You'll want to search the mailing list archive for info about > that - as I recall from what I've read, it's not all that easy to do > properly. > I have noticed the same problem of "unmount command not working". As far as I can recall, I cound not find any documentation what it exactly is expected to do, though the command was in the sample configs. I asked this a couple of times in this bacula user list, and after a long silence at both times I finally repeated it in the devel list on 30 May 2009. Then I got a reply quoted below from Kern. This reply below still left me wonder what that unmount command is really expected to do (if anything?), and if I should have filed a bug report or not. Does anyone have any more up-to-date information of this disk unmount issue? ----- Original Message ----- From: "Kern Sibbald" <k...@sibbald.com> Newsgroups: gmane.comp.sysutils.backup.bacula.devel To: <bacula-de...@lists.sourceforge.net> Cc: "Timo Neuvonen" <timo-n...@tee-en.net> Sent: Saturday, May 30, 2009 11:42 AM Subject: Re: Unmount Command in SD conf not working? > If I am not mistaken, Bacula only unmounts a disk on explicit user > command, > much like it does with tapes where once the tape is mounted, it is > unmounted > only by the user. > > If the unmount command does not work, then we could look at the problem. > > Regards, > > Kern > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users