[Bacula-users] Mounting storage before job start
2010-08-12 10:10:06
Hello,
On Bacula 5.0.2 I would like to mount the storage before a backup job
starts in case it was unmounted by 'umount' before.
I added the following to the backup job:
RunScript {
RunsWhen = Before
Command = "echo 'mount storage=kvm1-sd' | /usr/bin/bconsole"
}
However this does not work: the job is put into the queue and remains
there until the storage is mounted, which should be done by the job
itself. Looks like a chicken egg problem!?
Is there really no way to get the storage mounted by the bacula?
Writing a cron job doing this just before bacula starts seems to me very
poor workaround.
By the way, the opposite (unmounting) does not work too:
RunScript {
RunsWhen = After
Command = "echo 'unmount storage=kvm1-sd' | /usr/bin/bconsole"
Command = "/bin/mt -f /dev/nst0 eject"
}
This ends with 'ClientAfterJob: /dev/nst0: Device or resource busy'
which I understand since the 'unmount' command did not work, the storage
daemon still locks the device.
Felix
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Bacula-users] Mounting storage before job start,
Felix Brack <=
|
|
|