SiegfriedKurz wrote:
> Hello forum,
> since several weeks I'm trying to use bacula to backup our Linux server in
> our small company.
> Beforehand we've used cpio to backup our Linux server (SuSE Enterprise 10,
> Linux kernel 2.6.16.60-0.21-smp i386).
> Since we're a small company, our server ist switched off overnight and the
> backup is done during the business times.
> When using cpio we didn't have any problem with this kind of backup process.
>
> But then the data grew more and more and didn't fit on a single tape any
> more,
> so I decided to try bacula. (Version is 3.0.2)
> I've run the btape test and the fill test (with 2 tapes) with my device (HP
> DAT 160) successfully.
>
> After some first problems, everything seems to work fine, but now I end up
> with this error, and I can't solve the problem:
>
> error message:
> ==========================================================================================
> 05-Mar 08:58 hit-linux-dir JobId 117: Start Backup JobId 117,
> Job=Tagessicherung.2010-03-05_08.57.58_09
> 05-Mar 08:58 hit-linux-dir JobId 117: Using Device "DDS-4"
> 05-Mar 08:58 hit-linux-sd JobId 117: Volume "Tagessicherung2" previously
> written, moving to end of data.
> 05-Mar 09:06 hit-linux-sd JobId 117: Error: Bacula cannot write on tape
> Volume "Tagessicherung2" because:
> The number of files mismatch! Volume=27 Catalog=28
> 05-Mar 09:06 hit-linux-sd JobId 117: Marking Volume "Tagessicherung2" in
> Error in Catalog.
> 05-Mar 09:07 hit-linux-sd JobId 117: Job
> Tagessicherung.2010-03-05_08.57.58_09 waiting. Cannot find any appendable
> volumes.
> Please use the "label" command to create a new Volume for:
> Storage: "DDS-4" (/dev/st0)
> Pool: TagessicherungPool
> Media type: DDS-4
> ===============================================================================================
>
>
> Bacula made a full backup on Tagessicherung1 and Tagessicherung2 on 04-Mar
> and directly after that,
> just for testing purposes, I once more started a "Tagessicherung"-job and
> bacula made a differential backup.
> So everything was ok on the 04-Mar, but today (05-Mar, after the nightly
> reboot), I got this error.
>
> I've already searched through the forum an found many hits concerning the
> "number of files mismatch"-problem,
> but I couldn't find any solution.
>
> I hope I gave enough information so that somebody could give me a hint to
> save my problem.
>
> Best regards
> Siegfried Kurz
>
>
> Here the config files:
> bacula-sd.conf:
> =====================================================================================
> Storage {
> Name = hit-linux-sd
> SDPort = 9103 # Director's port
> WorkingDirectory = "/etc/bacula/working"
> Pid Directory = "/etc/bacula/working"
> Maximum Concurrent Jobs = 20
> }
>
> Director {
> Name = hit-linux-dir
> Password = "XXX"
> }
>
> Director {
> Name = hit-linux-mon
> Password = "XXX"
> Monitor = yes
> }
>
> Device {
> Name = FileStorage
> Media Type = File
> Archive Device = /tmp
> LabelMedia = yes
> Random Access = yes
> AutomaticMount = yes
> RemovableMedia = yes
> AlwaysOpen = no
> }
>
> Device {
> Name = DDS-4
> Description = "DDS-4 for FreeBSD"
> Media Type = DDS-4
> Archive Device = /dev/st0
> AutomaticMount = no
> AlwaysOpen = yes
> Offline On Unmount = no
> Hardware End of Medium = no
> BSF at EOM = yes
> Backward Space Record = no
> Fast Forward Space File = no
> TWO EOF = yes
> # If you have smartctl, enable this, it has more info than tapeinfo
> Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
>
> Messages {
> Name = Standard
> director = hit-linux-dir = all
> }
> ===============================================================================================
>
> # bacula-fd.conf
> ==================================================================================
> Director {
> Name = hit-linux-dir
> Password = "XXX"
> }
> Director {
> Name = hit-linux-mon
> Password = "XXX"
> # Monitor = yes
> }
> FileDaemon { # this is me
> Name = hit-linux-fd
> FDport = 9102 # where we listen for the director
> WorkingDirectory = /etc/bacula/working
> Pid Directory = /etc/bacula/working
> Maximum Concurrent Jobs = 20
> }
> Messages {
> Name = Standard
> director = hit-linux-dir = all, !skipped, !restored
> }
> ===============================================================================================
>
> # bacula-dir.conf
> ==================================================================================
>
> Director {
> Name = hit-linux-dir
> DIRport = 9101
> QueryFile = "/etc/bacula/query.sql"
> WorkingDirectory = "/etc/bacula/working"
> PidDirectory = "/etc/bacula/working"
> Maximum Concurrent Jobs = 1
> Password = "XXX"
> Messages = Daemon
> }
> JobDefs {
> Name = "DefaultJob"
> Type = Backup
> Level = Incremental
> Client = hit-linux-fd
> FileSet = "Full Set"
> Schedule = "WeeklyCycle"
> Storage = File
> Messages = Standard
> Pool = Default
> Priority = 10
> }
>
> Job {
> Name = "BackupKurz"
> Client = kurz-fd
> JobDefs = "DefaultJob"
> FileSet = "windows"
> Storage = File
> Write Bootstrap = "/etc/bacula/working/Client2.bsr"
> }
>
> # Backup the catalog database (after the nightly save)
> Job {
> Name = "BackupCatalog"
> JobDefs = "DefaultJob"
> Level = Full
> FileSet="Catalog"
> Schedule = "WeeklyCycleAfterBackup"
> # This creates an ASCII copy of the catalog
> # WARNING!!! Passing the password via the command line is insecure.
> # see comments in make_catalog_backup for details.
> # Arguments to make_catalog_backup are:
> # make_catalog_backup <database-name> <user-name> <password> <host>
> RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
> # This deletes the copy of the catalog
> RunAfterJob = "/etc/bacula/delete_catalog_backup"
> Write Bootstrap = "/etc/bacula/working/BackupCatalog.bsr"
> Priority = 11
> }
>
>
> # List of files to be backed up
> FileSet {
> Name = "Full Set"
> Include {
> Options {
> signature = MD5
> }
> File = /usr/local/bacula/bin
> }
>
> Exclude {
> File = /etc/bacula/working
> File = /tmp
> File = /proc
> File = /.journal
> File = /.fsck
> }
> }
>
> FileSet {
> Name = u1
> Include {
> Options {
> }
> File = /u1
> }
> }
>
> FileSet {
> Name = "windows"
> Include {
> Options {
> WildFile = "*.obj"
> WildFile = "*.exe"
> exclude = yes
> }
> File = "c:/anpa"
> }
> }
>
> Schedule {
> Name = "WeeklyCycle"
> Run = Full 1st sun at 23:05
> Run = Differential 2nd-5th sun at 23:05
> Run = Incremental mon-sat at 23:05
> }
>
> Schedule {
> Name = HIT-Sicherung-Plan
> Run = Level=Full Pool=TagessicherungPool on 4 at 10:05
> Run = Level=Differential Pool=TagessicherungPool at 23:15
> }
>
> # Client (File Services) to backup
> Client {
> Name = hit-linux-fd
> Address = hit-linux
> FDPort = 9102
> Catalog = MyCatalog
> Password = "XXX"
> File Retention = 30 days
> Job Retention = 6 months
> AutoPrune = yes
> }
>
>
> Storage {
> Name = DDS-4
> Address = hit-linux
> SDPort = 9103
> Password = "XXX"
> Device = DDS-4
> Media Type = DDS-4
> Autochanger = no
> }
>
>
> # Generic catalog service
> Catalog {
> Name = MyCatalog
> dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
> }
>
> Messages {
> Name = Standard
> mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\)
> \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
> operatorcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\)
> \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
> mail = root@localhost = all, !skipped
> operator = root@localhost = mount
> console = all, !skipped, !saved
> append = "/etc/bacula/working/log" = all, !skipped
> catalog = all
> }
>
>
> Messages {
> Name = Daemon
> mailcommand = "/usr/local/bacula/bin/bsmtp -h localhost -f \"\(Bacula\)
> \<%r\>\" -s \"Bacula daemon message\" %r"
> mail = root@localhost = all, !skipped
> console = all, !skipped, !saved
> append = "/etc/bacula/working/log" = all, !skipped
> }
>
>
> # Default pool definition
> Pool {
> Name = Default
> Pool Type = Backup
> Recycle = yes
> AutoPrune = yes
> Volume Retention = 365 days
> }
>
> # Scratch pool definition
> Pool {
> Name = Scratch
> Pool Type = Backup
> }
>
>
> Console {
> Name = hit-linux-mon
> Password = "XXX"
> CommandACL = status, .status
> }
> FileSet {
> Name = "Alle Dateien"
> Include {
> File = /
> Options {
> }
> File = /u1
> }
> Exclude {
> File = /proc
> }
> }
> Job {
> Name = Tagessicherung
> Type = Backup
> Level = Differential
> Client = hit-linux-fd
> FileSet = "Alle Dateien"
> Schedule = HIT-Sicherung-Plan
> Storage = DDS-4
> Pool = TagessicherungPool
> Messages = Standard
> }
> Pool {
> Name = TagessicherungPool
> Pool Type = Backup
> Volume Retention = 365 days
> Recycle = yes
> AutoPrune = yes
> # Accept Any Volume = yes
> }
> Pool {
> Name = TagessicherungPoolDiff
> Pool Type = Backup
> Volume Retention = 365 days
> Recycle = yes
> AutoPrune = yes
> }
> ===============================================================================================
I solved the aboce problem by upgrading to Baula 5.0.1.
Everything works fine now except the "VersionBrowser" in the bat.
I doesn't diplay anything both in the Linux and in the Windows Version.
Does anybody have the same problem?
Best regards
Siegfried Kurz
+----------------------------------------------------------------------
|This was sent by skurz AT hit-john DOT de via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|