I've been trying to get Volume2catalog verification working, and thus
far, have met with failure.

The verify job is attempting to use the wrong volume in the right
storage device. From error output (below), it seems looks to me as if
all the verify jobs are using and overwriting the same bootstrap file,
and thus only the last verify succeeds. 

Even though I have a different bootstrap file specified in each job &
verify job, the verify jobs continue to use /var/lib/bacula/restore.bsr
rather than the path I've configured.

The problem only occurs when I run these jobs via a schedule. I can run
them manually without problems.

I have restarted the director and storage daemons.

Am I doing something wrong, or just misunderstanding how this is
supposed to work?

Software: bacula 1.36, mysql 4.1, debian sarge

The error I get via email is:

04-Jan 01:14 Yoda-dir: Start Verify JobId=4584 Level=VolumeToCatalog 
Job=HydeVerify.2007-01-04_01.00.20
04-Jan 01:14 Yoda-dir: Verifying against JobId=4577 Job=Hyde.2007-01-04_01.00.05
04-Jan 01:14 Yoda-dir: Bootstrap records written to /var/lib/bacula/restore.bsr
04-Jan 01:14 Yoda-dir: 
04-Jan 01:14 Yoda-dir: The job will require the following Volumes:
04-Jan 01:14 Yoda-dir:    
04-Jan 01:14 Yoda-dir:    HydeInc-0002
04-Jan 01:14 Yoda-dir: 
04-Jan 01:15 Yoda-sd: HydeVerify.2007-01-04_01.00.20 Fatal error: Open device 
/backup/Hyde volume KomodoInc-0005 failed, ERR=dev.c:340 Could not open: 
/backup/Hyde/KomodoInc-0005, ERR=No such file or directory

04-Jan 01:15 Hyde-fd: HydeVerify.2007-01-04_01.00.20 Fatal error: job.c:1665 
Bad response to Read Data command. Wanted 3000 OK data
, got 
04-Jan 01:15 Yoda-dir: HydeVerify.2007-01-04_01.00.20 Fatal error: No Job 
status returned from FD.
04-Jan 01:15 Yoda-dir: HydeVerify.2007-01-04_01.00.20 Error: Bacula 1.36.2 
(28Feb05): 04-Jan-2007 01:15:01
  JobId:                  4584
  Job:                    HydeVerify.2007-01-04_01.00.20
  FileSet:                Hyde FileSet
  Verify Level:           VolumeToCatalog
  Client:                 Hyde-fd
  Verify JobId:           4577
  Verify Job:             Hyde
  Start time:             04-Jan-2007 01:14:59
  End time:               04-Jan-2007 01:15:01
  Files Expected:         1,260
  Files Examined:         0
  Non-fatal FD errors:    0
  FD termination status:  Error
  SD termination status:  Error
  Termination:            *** Verify Error ***


A client config (client configs are mostly identical except for resource
names and filesets, etc):

# ----------------------------------------------------------- #
#   Hyde backup config                                      # 
# ----------------------------------------------------------- #

Client {
  Name = Hyde-fd
  Address = hyde.pearst.hrcsb.org 
  FDPort = 9102
  Catalog = MyCatalog
  Password = "xxxxxxxx"    
  File Retention = 30 days    
  Job Retention = 6 months   
  AutoPrune = yes           
}

Job {
  Name = "Hyde"
  JobDefs = "DefaultBackup"
  Client = Hyde-fd 
  FileSet = "Hyde FileSet"                  
  Schedule = "HydeSchedule"
  Write Bootstrap = "/var/lib/bacula/Hyde.bsr"
  Storage = HydeFile
  Full Backup Pool = HydeFulPool
  Differential Backup Pool = HydeDifPool
  Incremental Backup Pool = HydeIncPool
}

Job {
  Name = "HydeVerify"
  JobDefs = "DefaultVerify"
  Verify Job = "Hyde"
  Client = Hyde-fd
  FileSet = "Hyde FileSet"
  Schedule = "HydeVerifySchedule"
  Write Bootstrap = "/var/lib/bacula/HydeRestore.bsr"
  Storage = HydeFile
  Full Backup Pool = HydeFulPool
  Differential Backup Pool = HydeDifPool
  Incremental Backup Pool = HydeIncPool
}

Job {
  Name = "HydeRestore"
  JobDefs = "DefaultRestore"
  Type = Restore
  Client = Hyde-fd                 
  Storage = HydeFile
  FileSet = "Hyde FileSet"                  
  Bootstrap = "/var/lib/bacula/Hyde.bsr"
  Replace = always
}

FileSet {
  Name = "Hyde FileSet"
  Include {
    Options {
      signature = SHA1
      compression = gzip

      Exclude = yes
      wild = *.wmv
      wild = *.wav
      wild = *.mp3
      wild = *.ogg
    }

    File = /home
    File = /etc
    File = /usr/local
    File = /var
  }

  Exclude {
    File = /var/cache/apt/archives
  }
}

# Incremental Pool
Pool {
  Name = HydeIncPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
        Volume Use Duration = 12 hours
  Volume Retention = 1 month
  Accept Any Volume = yes
        Maximum Volumes = 31 
        Label Format = "HydeInc-"
}

# Differential Pool
Pool {
  Name = HydeDifPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 2 months
  Accept Any Volume = yes
        Maximum Volumes = 3 
        Label Format = "HydeDif-"
}

# Full Pool
Pool {
  Name = HydeFulPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
        Volume Use Duration = 12 hours
  Volume Retention = 2 months
  Accept Any Volume = yes
        Maximum Volumes = 3 
        Label Format = "HydeFul-"
}

Schedule {
  Name = "HydeSchedule"
  # every other month
  Run = Level=Full Pool=HydeFulPool Storage=HydeFile january 4th sat at 01:00
  Run = Level=Full Pool=HydeFulPool Storage=HydeFile march 4th sat at 01:00
  Run = Level=Full Pool=HydeFulPool Storage=HydeFile may 4th sat at 01:00
  Run = Level=Full Pool=HydeFulPool Storage=HydeFile july 4th sat at 01:00
  Run = Level=Full Pool=HydeFulPool Storage=HydeFile september 4th sat at 01:00
  Run = Level=Full Pool=HydeFulPool Storage=HydeFile november 4th sat at 01:00

  # differential every month
  Run = Level=Differential Pool=HydeDifPool Storage=HydeFile Monthly 1st sat at 
01:00
  # incremental every day
  Run = Level=Incremental Pool=HydeIncPool Storage=HydeFile tue-fri at 01:00
}

Schedule {
  Name = "HydeVerifySchedule"
  # every other month
  Run = Level=VolumeToCatalog Pool=HydeFulPool Storage=HydeFile january 4th sat 
at 01:00
  Run = Level=VolumeToCatalog Pool=HydeFulPool Storage=HydeFile march 4th sat 
at 01:00
  Run = Level=VolumeToCatalog Pool=HydeFulPool Storage=HydeFile may 4th sat at 
01:00
  Run = Level=VolumeToCatalog Pool=HydeFulPool Storage=HydeFile july 4th sat at 
01:00
  Run = Level=VolumeToCatalog Pool=HydeFulPool Storage=HydeFile september 4th 
sat at 01:00
  Run = Level=VolumeToCatalog Pool=HydeFulPool Storage=HydeFile november 4th 
sat at 01:00

  # differential every month
  Run = Level=VolumeToCatalog Pool=HydeDifPool Storage=HydeFile Monthly 1st sat 
at 01:00
  # incremental every day
  Run = Level=VolumeToCatalog Pool=HydeIncPool Storage=HydeFile tue-fri at 01:00
}

Storage {
  Name = HydeFile
  Address = yoda.mainst.hrcsb.org     # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "xxxxxxx"
  Device = HydeFileStorage
  Media Type = File
  Maximum Concurrent Jobs = 5
}



Any ideas what I might be doing wrong?

-davidc

--
If Chuck Norris were a calendar, every month would be named Chucktober,
and every day he'd kick your @$$.


-------------------------------------------------------------------------
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

Reply via email to