Hello!,
I have a very important issue with Bacula, I have Bacula-dir and Bacula-fd
in one machine and Bacula-sd in another, Bacula-sd is conected via SCSI to a
Dell PowerVault 124-T, when I do a backup the log says that it is OK, but I
see in the log that there is no Files and Bytes writen to SD:

  FD Files Written:       2
  SD Files Written:       0
  FD Bytes Written:       938,878,492 (938.8 MB)
  SD Bytes Written:       0 (0 B)

however it appears that if there is data on the tape. When I try to
restore files from a job Bacula gives me an error:

10-Nov 10:40 Bacula-dir JobId 1706: Start Restore Job
RestoreFiles.2009-11-10_10.40.38_01
10-Nov 10:40 Bacula-dir JobId 1706: Using Device "DDS-4"
10-Nov 10:40 slsmsv1-sd JobId 1706: Fatal error: Bootstrap file error:
Keyword VolAddr not found
            : Line 7, col 7 of file
/var/lib/bacula/slsmsv1-sd.RestoreFiles.2009-11-10_10.40.38_01.1.bootstrap
VolAddr=678604832768-678604847332

10-Nov 10:40 slsmsv1-sd JobId 1706: Fatal error: Error parsing bootstrap file.
10-Nov 10:40 Bacula-dir JobId 1706: Fatal error: Bad response to
Bootstrap command: wanted 3000 OK bootstrap
, got 3904 Error bootstrap

10-Nov 10:40 Bacula-dir JobId 1706: Error: Bacula Bacula-dir 3.0.2
(18Jul09): 10-Nov-2009 10:40:40
  Build OS:               x86_64-unknown-linux-gnu debian 5.0.2
  JobId:                  1706
  Job:                    RestoreFiles.2009-11-10_10.40.38_01
  Restore Client:         Bacula-fd
  Start time:             10-Nov-2009 10:40:40
  End time:               10-Nov-2009 10:40:40
  Files Expected:         1
  Files Restored:         0
  Bytes Restored:         0
  Rate:                   0.0 KB/s
  FD Errors:              0
  FD termination status:
  SD termination status:
  Termination:            *** Restore Error ***

10-Nov 10:40 Bacula-dir JobId 1706: Error: Bacula Bacula-dir 3.0.2
(18Jul09): 10-Nov-2009 10:40:40
  Build OS:               x86_64-unknown-linux-gnu debian 5.0.2
  JobId:                  1706
  Job:                    RestoreFiles.2009-11-10_10.40.38_01
  Restore Client:         Bacula-fd
  Start time:             10-Nov-2009 10:40:40
  End time:               10-Nov-2009 10:40:40
  Files Expected:         1
  Files Restored:         0
  Bytes Restored:         0
  Rate:                   0.0 KB/s
  FD Errors:              1
  FD termination status:
  SD termination status:
  Termination:            *** Restore Error ***

I see that this file
/var/lib/bacula/slsmsv1-sd.RestoreFiles.2009-11-10_10.40.38_01.1.bootstrap
does not exist in the director and in the Storage Daemon.
*
This is my Bacula-dir config:*

Director {                            # define myself
  Name = Bacula-dir
  DIRport = 9101                # where we listen for UA connections
  Plugin Directory = "/usr/lib"
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/var/bacula"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 1
  Password = ";)"         # Console password
  Messages = Daemon
  DirAddress = 0.0.0.0
}

JobDefs {
  Name = "Ficheros"
  Type = Backup
  Schedule = "CicloMensual"
  Storage = DDS-4
  Messages = Standard
  Priority = 10
}

JobDefs {
  Name = "FullJob"
  Level = Full
  Type = Backup
  Schedule = "CicloExchange"
  Storage = DDS-4
  Messages = Standard
  Priority = 10
}
Job {
  Name = "NAS-CIFS"
  Client = Bacula-fd
  JobDefs = "Ficheros"
  FileSet = "local"
  Pool = "Default"
  Write Bootstrap = "/var/bacula/Client1.bsr"
}

... more jobs definitions ...

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  Client=Bacula-fd
  JobDefs = "FullJob"
  FileSet="Catalog"
  Pool = "Default"
  Schedule = "WeeklyCycleAfterBackup"
  Storage = File
  RunBeforeJob = "/etc/bacula/make_catalog_backup bacula root ;)"
  RunAfterJob  = "/etc/bacula/delete_catalog_backup"
  Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

Job {
  Name = "RestoreFiles"
  Type = Restore
  Fileset = "local"
  Client=Bacula-fd
  Pool = "Default"
  Storage = DDS-4
  Write Bootstrap = "/var/bacula/Restore.bsr"
  Messages = Standard
  Where = /nonexistant/path/to/file/archive/dir/bacula-restores
}

... FileSet definitions ...

Schedule {
  Name = "CicloMensual"
  Run = Level=Full Pool=Completo on 1 at 22:00
  Run = Level=Differential Pool=Diferencial mon-fri 2-31 at 22:00
  Run = Level=Incremental Pool=Incremental sat-sun 2-31 at 22:00
}

Schedule {
  Name = "CicloExchange"
  Run = Level=Full Pool=Completo 1-31 at 22:00
}

# This schedule does the catalog. It starts after the WeeklyCycle
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-sat at 23:10
}

# Client (File Services) to backup
Client {
  Name = Bacula-fd
  Address = Bacula
  FDPort = 9102
  Catalog = MyCatalog
  Password = ";)"          # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 12 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Client {
  Name = selene-fd
  Address = selene.fd.local
  FDPort = 9102
  Catalog = MyCatalog
  Password = ";)"      # password for FileDaemon
  File Retention =  180 days            # 30 days
  Job Retention = 12 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

... more client definitions ...

Storage {
  Name = File
  Address = Bacula                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = ";)"
  Device = FileStorage
  Media Type = File
}

Storage {
  Name = DDS-4
  Address = slsmsv1-sd
  SDPort = 9103
  Password = ";)"
  Device = DDS-4
  Media Type = DDS-4
  Autochanger = yes
}

...  catalog services, messages, pools, etc ...



*This is my Bacula-sd config*

Storage {                             # definition of myself
  Name = slsmsv1-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 172.26.128.230
}


Director {
  Name = Bacula-dir
  Password = ";)"
}

Director {
  Name = slsmsv1-mon
  Password = ";)"
  Monitor = yes
}

Autochanger {
  Name = Autochanger
  Device = DDS-4
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}

Device {
  Name = DDS-4                        #
  Media Type = DDS-4
  Drive Index = 0
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  AutoChanger = yes
}

Messages {
  Name = Standard
  director = Bacula-dir = all
}


Bacula-dir Version: 3.0.2
Bacula-sd Version: 2.4.4

PLEASE HELP ME
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to