Hello, if i understood correctly it's not possible to run two restore jobs at the same time when using File storage ? It's because there is only one "Device" that can mount a volume ? I'm right ? I hope i'm right, because if not then i just wasted few days of my work.
My solution to this problem is to create "virtual autochanger", that
will have more than one Device and will be able to run more then one
restore job at the time, here is my configuration:
FILE /etc/bacula/bacula-sd.conf
Autochanger {
Name = "Auto1"
Device = FileStorage00, FileStorage01, FileStorage02,
FileStorage03, FileStorage04, FileStorage05, FileStorage06,
FileStorage07, FileStorage08, FileStorage09
Changer Device = /storage/file1
Changer Command = "/etc/bacula/scripts/mtx-file %c %o %S %a"
}
Device {
Name = FileStorage00
Drive Index = 0
Media Type = File1
Device Type = File
Autochanger = yes;
Archive Device = /storage/file1/devices/dev00
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Device {
Name = FileStorage01
Drive Index = 1
Media Type = File1
Device Type = File
Autochanger = yes;
Archive Device = /storage/file1/devices/dev01
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
8 more devices here ........
Save attached file to /etc/bacula/scripts/mtx-file
mkdir /storage
mkdir /storage/file1
mount <some large disk> /storage/file1
mkdir /storage/file1/devices
mkdir /storage/file1/slots
chown -R bacula.bacula /storage/file1
#bconsole
*add
You probably don't want to be using this command since it
creates database records without labeling the Volumes.
You probably want to use the "label" command.
Automatically selected Catalog: root-catalog
Using Catalog "root-catalog"
Defined Pools:
1: Default
2: Scratch
3: File1
Select the Pool (1-3): 3
Automatically selected Storage: File1
Enter number of Volumes to create. 0=>fixed name. Max=1000: 1000
Enter base volume name: TEST-FILE1-
Enter the starting number: 0001
#bconsole
*update
Automatically selected Catalog: root-catalog
Using Catalog "root-catalog"
Update choice:
1: Volume parameters
2: Pool from resource
3: Slots from autochanger
4: Long term statistics
Choose catalog item to update (1-4): 3
Automatically selected Storage: File1
Connecting to Storage daemon File1 at backdir1.root.xxx.com:9103 ...
3306 Issuing autochanger "slots" command.
Device "Auto1" has 1000 slots.
Connecting to Storage daemon File1 at backdir1.root.xxx.com:9103 ...
3306 Issuing autochanger "list" command.
Catalog record for Volume "TEST-FILE1-0001" updated to reference slot 1.
Catalog record for Volume "TEST-FILE1-0002" updated to reference slot 2.
Catalog record for Volume "TEST-FILE1-0003" updated to reference slot 3.
Catalog record for Volume "TEST-FILE1-0004" updated to reference slot 4.
Now just configure your bacula director to use new device. I already
did some testing, so far this configuration works pretty well.
Would be nice to hear your opinions about this idea.
mtx-file
Description: Binary data
------------------------------------------------------------------------------ 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-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
