Hello,
Recently i've been having a lot of problems when replacing tapes. For example: i put in 8 tapes into scratch pool, then each job pulls tapes from there into their respective pools, then when the month goes by and i replace the tapes with 8 new tapes, bacula still wants to use the tapes i removed even when i do update slots, and indicate Autochanger = yes on the config.
So what can i do to ensure that when i replace the tapes, the new tapes are actually used instead of getting the error "manual mount might be required".
Here is what i currently have: Full back up the first Sunday of every month - Tape 1 - Mark as Used Incremental backup Monday through Friday - Tape 2 - Append Differential back up every sunday except the 1st - Tape 3 - Append
This works fine, but once i replace the set, bacula still want to use the tapes i use the first month. Here is my config: Bacula-sd.conf: Device { Name = FileStorage Media Type = File Archive Device = /srv/staging/backups LabelMedia = yes # lets Bacula label unlabeled media Random Access = Yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; # Maximum Network Buffer Size = 13107200 AlwaysOpen = no; }
Autochanger { Name = Autochanger Device = DLTv4 Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg4 }
Device { Name = DLTv4 Drive Index = 0 Media Type = tape Archive Device = /dev/nst0 AutomaticMount = yes LabelMedia = yes AlwaysOpen = yes Autoselect = yes RemovableMedia = yes RandomAccess = no AutoChanger = yes Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" }
Bacula-dir.conf:
JobDefs { Name = H34-FileServ-def Type = Backup Level = Full Schedule = "WeeklyCycle" Messages = Standard Pool = FileServPool-Full-tape Full Backup Pool = FileServPool-Full-tape Differential Backup Pool = FileServPool-Diff-tape Incremental Backup Pool = FileServPool-Incre-tape Write Bootstrap = "/var/lib/bacula/%c.bsr" Priority = 10 }
Job { Name = H34-FileServer JobDefs = H34-FileServ-def Client = housigma34-fd FileSet = "H34-FileServ" }
Schedule { Name = "WeeklyCycle" Run = Level=Full 1st sun at 18:00 Run = Level=Differential 2nd-5th sun at 18:00 Run = Level=Incremental mon-fri at 20:00 }
Client { Name = housigma34-fd Address = housigma34.DOMAIN.COM FDPort = 9102 Catalog = MyCatalog Password = File Retention = 30 days # 30 days Job Retention = 4 months # six months AutoPrune = yes # Prune expired Jobs/Files }
Pool { Name = FileServPool-Full-tape Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 1 months Maximum Volume Jobs = 1 # Label Format = Full- Maximum Volumes = 12 Storage = SLDLTv4 }
Pool { Name = FileServPool-Diff-tape Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 1 months # Maximum Volume Jobs = 1 # Label Format = Full- Maximum Volumes = 1 Storage = SLDLTv4 }
Pool { Name = FileServPool-Incre-tape Pool Type = Backup Recycle = yes AutoPrune = yes Volume Retention = 5 days # Maximum Volume Jobs = 1 # Label Format = "IncreFileServ-" Maximum Volumes = 1 Storage = SLDLTv4 } Thanks ------ Romer Ventura |