I've been trying to get Bacula-3.0.3 to use a new-to-me LTO-2 drive. So
far, though, Bacula is apparently refusing to send any jobs to it. It
appears that Pool directives in the Job or JobDefs resource now
*override* changes to the Job specification made interactively to a
manually-run job in bconsole. Should this be happening?
To illustrate what I mean, here's the applicable JobDefs and Job:
JobDefs {
Name = Backup
Type = Backup
Level = Full
Pool = Full-Disk
Full Backup Pool = Full-Disk
Differential Backup Pool = Diff-Disk
Incremental Backup Pool = Incr-Disk
Schedule = "Monthly Rotation"
RunBeforeJob = "/opt/bacula/sbin/checkhost %c"
Write Bootstrap = "/opt/bacula/working/%c.bsr"
Rerun Failed Levels = yes
Messages = Daemon
Priority = 10
Allow Duplicate Jobs = no
Cancel Queued Duplicates = yes
}
Job {
Name = "Spikyfishthing Backup"
JobDefs = Backup
Client = spikyfishthing
FileSet = "Spikyfishthing Full Set"
}
Here's the available Pools:
Pool {
Name = Scratch
Storage = babylon4-sd
Pool Type = Backup
}
Pool {
Name = Full-Disk
Storage = babylon4-sd
Pool Type = Backup
Recycle = no
Recycle Oldest Volume = no
Recycle Current Volume = no
AutoPrune = yes # Prune expired volumes
Volume Retention = 3 months
Maximum Volume Jobs = 0
Volume Use Duration = 23h
Label Format =
"FULL-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
RecyclePool = Scratch
}
Pool {
Name = Diff-Disk
Storage = babylon4-sd
Pool Type = Backup
Recycle = no
Recycle Oldest Volume = no
Recycle Current Volume = no
AutoPrune = yes
Volume Retention = 2 months
Maximum Volume Jobs = 0
Volume Use Duration = 23h
Label Format =
"DIFF-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
RecyclePool = Scratch
}
Pool {
Name = Incr-Disk
Storage = babylon4-sd
Pool Type = Backup
Recycle = no
Recycle Oldest Volume = no
Recycle Current Volume = no
AutoPrune = yes
Volume Retention = 1 month
Maximum Volume Jobs = 0
Volume Use Duration = 23h
Label Format =
"INCR-$Year${Month:p/2/0/r}${Day:p/2/0/r}-${Hour:p/2/0/r}:${Minute:p/2/0/r}"
RecyclePool = Scratch
}
Pool {
Name = Full-Tape
Storage = babylon5-sd
Pool Type = Backup
Recycle = yes
Autoprune = yes
Volume Retention = 365d
Recycle Oldest Volume = yes
Recycle Current Volume = yes
Label Format = "ARCH-"
Maximum Volumes = 9
}
Here, I manually start a job, and modify it to use the Full-Tape pool
and the appropriate Storage device:
*run
A job name must be specified.
The defined Job resources are:
1: Babylon4 Backup
2: Babylon5 Backup
3: Lake Backup
4: Llioness Backup
5: Mabolgamp Backup
6: Spikyfishthing Backup
7: Vorlon Backup
8: Whitestar Backup
9: Zocalo Backup
10: Catalog Backup
11: Restore
Select Job resource (1-11): 6
Run Backup job
JobName: Spikyfishthing Backup
Level: Full
Client: spikyfishthing
FileSet: Spikyfishthing Full Set
Pool: Full-Disk (From Job resource)
Storage: babylon4-sd (From Pool resource)
When: 2009-12-28 00:40:12
Priority: 10
OK to run? (yes/mod/no): m
Parameters to modify:
1: Level
2: Storage
3: Job
4: FileSet
5: Client
6: When
7: Priority
8: Pool
9: Plugin Options
Select parameter to modify (1-9): 2
The defined Storage resources are:
1: babylon4-sd
2: babylon5-sd
Select Storage resource (1-2): 2
Run Backup job
JobName: Spikyfishthing Backup
Level: Full
Client: spikyfishthing
FileSet: Spikyfishthing Full Set
Pool: Full-Disk (From Job resource)
Storage: babylon5-sd (From user selection)
When: 2009-12-28 00:40:12
Priority: 10
OK to run? (yes/mod/no): m
Parameters to modify:
1: Level
2: Storage
3: Job
4: FileSet
5: Client
6: When
7: Priority
8: Pool
9: Plugin Options
Select parameter to modify (1-9): 8
The defined Pool resources are:
1: Scratch
2: Full-Disk
3: Diff-Disk
4: Incr-Disk
5: Full-Tape
Select Pool resource (1-5): 5
Run Backup job
JobName: Spikyfishthing Backup
Level: Full
Client: spikyfishthing
FileSet: Spikyfishthing Full Set
Pool: Full-Tape (From User input)
Storage: babylon5-sd (From user selection)
When: 2009-12-28 00:40:12
Priority: 10
OK to run? (yes/mod/no): y
Job queued. JobId=674
*
And here's what actually happened:
28-Dec 00:40 babylon4-dir JobId 674: shell command: run BeforeJob
"/opt/bacula/sbin/checkhost spikyfishthing"
28-Dec 00:40 babylon4-dir JobId 674: Start Backup JobId 674,
Job=Spikyfishthing_Backup.2009-12-28_00.40.48_35
28-Dec 00:40 babylon4-dir JobId 674: Created new Volume
"FULL-20091228-00:40" in catalog.
28-Dec 00:40 babylon4-dir JobId 674: Using Device "FileStorage"
28-Dec 00:40 babylon4-sd JobId 674: Labeled new Volume
"FULL-20091228-00:40" on device "FileStorage" (/spool/bacula).
28-Dec 00:40 babylon4-sd JobId 674: Wrote label to prelabeled Volume
"FULL-20091228-00:40" on device "FileStorage" (/spool/bacula)
Bacula was specifically told to write the job to the Full-Tape pool on
babylon5-sd. It wrote it to the Full-Disk pool on babylon4-sd anyway.
This cannot be correct behavior, can it...? Surely any modification to
a job made from the console should override ANYTHING set in ANY resource
directive.
--
Phil Stracchino, CDK#2 DoD#299792458 ICBM: 43.5607, -71.355
alaric AT caerllewys DOT net alaric AT metrocast DOT net phil AT
co.ordinate DOT org
Renaissance Man, Unix ronin, Perl hacker, Free Stater
It's not the years, it's the mileage.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|