For starters you should do a "stat client" and a "stat director" while the job is running to see if the job is waiting on something like a tape or something.
Jerome Massano wrote: > Hello ! > > First, please excuse my bad english. Also excuse me for this is a very > long mail > > I'm all new to bacula. > I installed it yesterday, following the tutorial. Everything worked > fine, and I can backup the source tree of bacula with no problem, and > restore it with no problem. > I have modified my configuration files, and I am able to backup and > restore the entire system where bacula is installed with no problem... > Then "what's the problem ?", you would ask. > Here's my problem : > After configuring bacula to backup it's own system, I tried to set it > up to backup another system on my network. I think I configured it > well (please see my configuration files below), but when I run a > backup, it starts and does nothing (I can tell it does nothing cause > my HDD activity LED is idle, and I've let the job run for more than an > hour and it has never finished (I'm backing up only 300 Mb with no > compression, the entire system backup on the server backed up more > than 3GB in 10 minutes with GZIP6 compression) > > Here is what I get on the bconsole when I start a backup : > > [EMAIL PROTECTED] bacula]# ./bconsole > Connecting to Director nec:9101 > 1000 OK: nec-dir Version: 2.0.3 (06 March 2007) > Enter a period to cancel a command. > *run > Automatically selected Catalog: MyCatalog > Using Catalog "MyCatalog" > A job name must be specified. > The defined Job resources are: > 1: NecFullWeekly > 2: asperience-sp2 > 3: ChampFullWeekly > 4: BackupCatalog > 5: RestoreFiles > Select Job resource (1-5): 3 > Run Backup job > JobName: ChampFullWeekly > Level: Incremental > Client: champ-fd > FileSet: Home > Pool: Default (From Job resource) > Storage: File (From Job resource) > When: 2007-03-22 17:12:42 > Priority: 10 > OK to run? (yes/mod/no): yes > Job queued. JobId=5 > You have messages. > *messages > 22-mar 17:12 nec-dir: No prior Full backup Job record found. > 22-mar 17:12 nec-dir: No prior or suitable Full backup found in > catalog. Doing FULL backup. > 22-mar 17:12 nec-dir: Start Backup JobId 5, > Job=ChampFullWeekly.2007-03-22_17.12.46 > *messages > You have no messages. > > > This looks ok to me, Am I right ? > After more than an hour, i cancel the job, and here is what I get (for > this example, i canceled after just a few minutes, but it's the same) > > *cancel > Automatically selected Job: JobId=5 > Job=ChampFullWeekly.2007-03-22_17.12.46 > Confirm cancel (yes/no): yes > 3000 Job ChampFullWeekly.2007-03-22_17.12.46 marked to be canceled. > You have messages. > * > 22-mar 17:15 nec-sd: Job marked to be canceled. > 22-mar 17:15 nec-dir: Bacula 2.0.3 (06Mar07): 22-mar-2007 17:15:58 > JobId: 5 > Job: ChampFullWeekly.2007-03-22_17.12.46 > Backup Level: Full (upgraded from Incremental) > Client: "champ-fd" > FileSet: "Home" 2007-03-22 15:52:32 > Pool: "Default" (From Job resource) > Storage: "File" (From Job resource) > Scheduled time: 22-mar-2007 17:12:42 > Start time: 22-mar-2007 17:12:48 > End time: 22-mar-2007 17:15:58 > Elapsed time: 3 mins 10 secs > Priority: 10 > FD Files Written: 0 > SD Files Written: 0 > FD Bytes Written: 0 (0 B) > SD Bytes Written: 0 (0 B) > Rate: 0.0 KB/s > Software Compression: None > VSS: no > Encryption: no > Volume name(s): > Volume Session Id: 2 > Volume Session Time: 1174578407 > Last Volume Bytes: 0 (0 B) > Non-fatal FD errors: 0 > SD Errors: 0 > FD termination status: > SD termination status: Waiting on FD > Termination: Backup Canceled > > I think the " SD termination status: Waiting on FD " means that the > Storage Daemon never gets nothing from my File Daemon. Am I right ? > I have nothing more in /var/bacula/working/log. > > > > The server is running on an SME Server v7, and I build bacula 2.0.3 > from the sources, with just ./configure --enable-mysql > The client is running on a OpenSuse, and I build bacula 2.0.3 from the > sources, with just ./configure --enable-client-only > Here are my config files : > > on the client : > champ:/etc/bacula # cat /etc/bacula/bacula-fd.conf > # > # Default Bacula File Daemon Configuration file > # > # For Bacula release 2.0.3 (06 March 2007) -- suse 10.2 > # > # There is not much to change here except perhaps the > # File daemon Name to > # > > # > # List Directors who are permitted to contact this File daemon > # > Director { > Name = nec-dir > Password = "qi4cPV9FlF8Tge3KQs6LjboEJ7foLqg3vu5S5Ys/oHCX" > } > > # > # Restricted Director, used by tray-monitor to get the > # status of the file daemon > # > Director { > Name = champ-mon > Password = "ArSnktPs/LPbGrYMfLbEZG5swTycjMHLzlr7HAACxVnm" > Monitor = yes > } > > # > # "Global" File daemon configuration specifications > # > FileDaemon { # this is me > Name = champ-fd > FDport = 9102 # where we listen for the director > WorkingDirectory = /var/bacula/working > Pid Directory = /var/run > Maximum Concurrent Jobs = 20 > } > > # Send all messages except skipped files back to Director > Messages { > Name = Standard > director = nec-dir = all, !skipped, !restored > } > > > on the server : > [EMAIL PROTECTED] bacula]# cat /etc/bacula/bacula-dir.conf > # > # Default Bacula Director Configuration file > # > # The only thing that MUST be changed is to add one or more > # file or directory names in the Include directive of the > # FileSet resource. > # > # For Bacula release 2.0.3 (06 March 2007) -- redhat > # > # You might also want to change the default email address > # from root to your address. See the "mail" and "operator" > # directives in the Messages resource. > # > > Director { # define myself > Name = nec-dir > DIRport = 9101 # where we listen for UA connections > QueryFile = "/etc/bacula/query.sql" > WorkingDirectory = "/var/bacula/working" > PidDirectory = "/var/run" > Maximum Concurrent Jobs = 1 > Password = "ySPxzQ1S1ARTNEWRQez32DWAgdhVDW/Z8BkIMycVGsbi" # > Console password > Messages = Daemon > } > > JobDefs { > Name = "DefaultJob" > Type = Backup > Level = Incremental > Client = nec-fd > FileSet = "Full Set" > Schedule = "WeeklyCycle" > Storage = File > Messages = Standard > Pool = Default > Priority = 10 > } > > Job { > Name = "NecFullWeekly" > JobDefs = "DefaultJob" > Write Bootstrap = "/var/bacula/working/NecFullWeekly.bsr" > } > > Job { > Name = "asperience-sp2" > JobDefs = "DefaultJob" > Write Bootstrap = "/var/bacula/working/asperience-sp2.bsr" > Client = asperience-sp2-fd > FileSet = wintest > } > > Job { > Name = "ChampFullWeekly" > JobDefs = "DefaultJob" > Write Bootstrap = "/var/bacula/working/ChampFullWeekly.bsr" > Client = champ-fd > FileSet = Home > } > Job { > Name = "BackupCatalog" > JobDefs = "DefaultJob" > Level = Full > FileSet="Catalog" > Schedule = "WeeklyCycleAfterBackup" > # This creates an ASCII copy of the catalog > RunBeforeJob = "/etc/bacula/make_catalog_backup bacula root" > # This deletes the copy of the catalog > RunAfterJob = "/etc/bacula/delete_catalog_backup" > Write Bootstrap = "/var/bacula/working/BackupCatalog.bsr" > Priority = 11 # run after main backup > } > > # > # Standard Restore template, to be changed by Console program > # Only one such job is needed for all Jobs/Clients/Storage ... > # > Job { > Name = "RestoreFiles" > Type = Restore > Client=nec-fd > FileSet="Full Set" > Storage = File > Pool = Default > Messages = Standard > Where = /tmp/bacula-restores > } > > FileSet { > Name = "Home" > Include { > Options { > signature = MD5 > } > File = /home > } > } > > FileSet { > Name = wintest > Include { > File = "C:\\Windows\\System\\" > } > # List of files to be backed up > FileSet { > Name = "Full Set" > Include { > Options { > signature = MD5 > Compression=GZIP > } > File = / > } > Exclude { > File = /var/log > File = /proc > File = /tmp > File = /.journal > File = /.fsck > } > } > > 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 > } > > # This schedule does the catalog. It starts after the WeeklyCycle > Schedule { > Name = "WeeklyCycleAfterBackup" > Run = Full sun-sat at 23:10 > } > > # This is the backup of the catalog > FileSet { > Name = "Catalog" > Include { > Options { > signature = MD5 > } > File = /var/bacula/working/bacula.sql > } > } > > # Client (File Services) to backup > Client { > Name = nec-fd > Address = nec > FDPort = 9102 > Catalog = MyCatalog > Password = "Y/H49U1kgvREMtstUzlLRwu5JC3g7QD2CleJC6xxwS49" > File Retention = 30 days # 30 days > Job Retention = 6 months # six months > AutoPrune = yes # Prune expired Jobs/Files > } > > Client { > Name = champ-fd > Address = champ.chantrerie.asperience.fr > <http://champ.chantrerie.asperience.fr> > FDPort = 9102 > Catalog = MyCatalog > Password = "qi4cPV9FlF8Tge3KQs6LjboEJ7foLqg3vu5S5Ys/oHCX" > File Retention = 30 days > Job Retention = 6 months > AutoPrune = yes > } > > Client { > Name = asperience-sp2-fd > Address = asperience-sp2.chantrerie.asperience.fr > <http://asperience-sp2.chantrerie.asperience.fr> > FDPort = 9102 > Catalog = MyCatalog > Password = "2Bornot2Bthatisthequestion" > File Retention = 30 days > Job Retention = 6 months > AutoPrune = yes > } > Storage { > Name = File > # Do not use "localhost" here > Address = nec.chantrerie.asperience.fr > <http://nec.chantrerie.asperience.fr> # N.B. Use a > fully qualified name here > SDPort = 9103 > Password = "tJ24dVUSkZaHVPfed/xNOOSrHz6C43PyfEEOD9hNGg7M" > Device = FileStorage > Media Type = File > } > Catalog { > Name = MyCatalog > dbname = bacula; user = bacula; password = "" > } > Messages { > Name = Standard > # > # NOTE! If you send to two email or more email addresses, you will need > # to replace the %r in the from field (-f part) with a single valid > # email address in both the mailcommand and the operatorcommand. > # What this does is, it sets the email address that emails would display > # in the FROM field, which is by default the same email as they're being > # sent to. However, if you send email to more than one address, then > # you'll have to set the FROM address manually, to a single address. > # for example, a '[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>', is better since that tends to > # tell (most) people that its coming from an automated source. > > # > mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s > \"Bacula: %t %e of %c %l\" %r" > operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s > \"Bacula: Intervention needed for %j\" %r" > mail = [EMAIL PROTECTED] = all, !skipped > operator = [EMAIL PROTECTED] = mount > console = all, !skipped, !saved > # > # WARNING! the following will create a file that you must cycle from > # time to time as it will grow indefinitely. However, it will > # also keep all your messages if they scroll off the console. > # > append = "/var/bacula/working/log" = all, !skipped > } > > > # > # Message delivery for daemon messages (no job). > Messages { > Name = Daemon > mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s > \"Bacula daemon message\" %r" > mail = [EMAIL PROTECTED] = all, !skipped > console = all, !skipped, !saved > append = "/var/bacula/working/log" = all, !skipped > } > > # Default pool definition > Pool { > Name = Default > Pool Type = Backup > Recycle = yes # Bacula can automatically > recycle Volumes > AutoPrune = yes # Prune expired volumes > Volume Retention = 365 days # one year > LabelFormat = "Vol" > UseVolumeOnce = yes > } > > # > # Restricted console used by tray-monitor to get the status of the > director > # > Console { > Name = nec-mon > Password = "JLSxflNfcb7GiwQnqVHUBmcLmvbiIjTwFETH+3x+P8rn" > CommandACL = status, .status > } > > > > Can somebody tell me where the problem comes from ? > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users