[Bacula-users] AutomaticMount=yes does not work
2008-11-17 10:25:53
Hello *,
I've a Debian/Lenny server with Bacula 2.4.2. Bacula should backup data on
File storage. I'm trying to use two external USB disks with a ext2
partition on each. I've labeled both disks, one as Backup1-0001, the other
as Backup2-0001. I've also forced Bacula to use a different disk each day
with the following schedule:
Schedule {
Name = "WeeklyCycle"
Run = Level=Full Pool=Disco1 Storage=File1 nov 1st sun at 23:05
Run = Level=Full Pool=Disco2 Storage=File2 jun 1st sun at 23:05
Run = Level=Differential Pool=Disco1 Storage=File1 jan 1st sun at 23:06
Run = Level=Differential Pool=Disco2 Storage=File2 feb 1st sun at 23:06
Run = Level=Differential Pool=Disco1 Storage=File1 mar 1st sun at 23:06
Run = Level=Differential Pool=Disco2 Storage=File2 apr 1st sun at 23:06
Run = Level=Differential Pool=Disco1 Storage=File1 may 1st sun at 23:06
Run = Level=Differential Pool=Disco1 Storage=File1 jul 1st sun at 23:06
Run = Level=Differential Pool=Disco2 Storage=File2 aug 1st sun at 23:06
Run = Level=Differential Pool=Disco1 Storage=File1 sep 1st sun at 23:06
Run = Level=Differential Pool=Disco2 Storage=File2 oct 1st sun at 23:06
Run = Level=Differential Pool=Disco2 Storage=File2 dec 1st sun at 23:06
Run = Level=Incremental Pool=Disco1 Storage=File1 2nd sun at 23:07
Run = Level=Incremental Pool=Disco2 Storage=File2 3rd sun at 23:07
Run = Level=Incremental Pool=Disco1 Storage=File1 4th sun at 23:07
Run = Level=Incremental Pool=Disco2 Storage=File2 5th sun at 23:07
Run = Level=Incremental Pool=Disco1 Storage=File1 mon at 23:07
Run = Level=Incremental Pool=Disco2 Storage=File2 tue at 23:07
Run = Level=Incremental Pool=Disco1 Storage=File1 wed at 23:07
Run = Level=Incremental Pool=Disco2 Storage=File2 thu at 23:07
}
where Disco1 and Disco2 contain Backup1-0001 and Backup2-0001 volumes
respectively.
My storage devices definitions are as follows:
Device {
Name = FileStorage1
Media Type = File
Device Type = File
Archive Device = /mnt/bacula-disk1
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = yes;
Requires Mount = yes;
Mount Point = /mnt/bacula-disk1;
Mount Command = "/bin/mount %m";
Unmount Command = "/bin/umount %m";
}
Device {
Name = FileStorage2
Media Type = File
Device Type = File
Archive Device = /mnt/bacula-disk2
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = yes;
Requires Mount = yes;
Mount Point = /mnt/bacula-disk2;
Mount Command = "/bin/mount %m";
Unmount Command = "/bin/umount %m";
}
The mount and unmount commands have been tested as bacula user and they
work, provided the correct disk is plugged in beforehand (thanks to a
custom fstab and udev rules).
The problem is that Bacula does not automatically mount those volumes. It
asks for Backup1-0001 but when I plug in the correct disk, it keeps asking
for Backup1-0001 ("waiting for a mount request"). If I enter bconsole and
manually mount it, the backup procedure starts correctly.
What am I missing?
--
Virtual Bit di Lucio Crusca
http://www.virtual-bit.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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] AutomaticMount=yes does not work,
Lucio Crusca <=
|
|
|