Bacula-users

Re: [Bacula-users] Migration Problem

2008-08-25 08:16:51
Subject: Re: [Bacula-users] Migration Problem
From: Sebastian Lehmann <slehmann AT proficom-ag DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 25 Aug 2008 14:15:32 +0200 (CEST)
Hi,

i can't see any error in your config. Please post "list volumes
pool=file" to see, if your selection pattern would select this volumes.

Maybe you can try to use a existing volume-name as selection pattern
without wildcard to ensure, that migration works.

We use migration with selection typ = job and selection patter =
"job-name" without wildcards. This was working. Maybe the wildcard is
the problem!?

Please try and report. Could be a bug in migration-szenario.

Sebastian 

Am Mo 25.08.2008 08:51 schrieb Roland König <rkoenig13 AT gmail DOT com>:

> 
> Hi,
> 
> i have a problem migrating a volume to tape:
> when i run the job, it terminates with nothing to do. there were no
> jobs or files found.
> 
> before running the migrate job, i have run the BackupPC22 job
> successfully, which can also be found in the mysql database with
> correct poolid.
> 
> i use bacula-mysql 2.4.2 rpm version for suse enterprise server 10 and
> mysql
> database.
> 
> any ideas?
> 
>
> __________________________________________________________________________
> here is the email i get  from bacula:
> 
> 22-Aug 13:31 lbst-dir JobId 2: Query of Pool "File" returned no Jobs
> to
> migrate.
> 22-Aug 13:31 lbst-dir JobId 2: No JobIds found to migrate.
> 22-Aug 13:31 lbst-dir JobId 2: Bacula lbst-dir 2.4.2 (26Jul08):
> 22-Aug-2008 13:31:13
>  Build OS:               x86_64-suse-linux-gnu suse 5.x
>  Prev Backup JobId:      0
>  New Backup JobId:       0
>  Migration JobId:        2
>  Migration Job:          migrate.2008-08-22_13.31.06
>  Backup Level:           Full
>  Client:                 lbst-fd
>  FileSet:                "pc-22"
>  Read Pool:              "File" (From Job resource)
>  Read Storage:           "File" (From Pool resource)
>  Write Pool:             "File" (From Job resource)
>  Write Storage:          "LTO-4" (From Storage from Pool's NextPool
> resource)
>  Start time:             22-Aug-2008 13:31:13
>  End time:               22-Aug-2008 13:31:13
>  Elapsed time:           0 secs
>  Priority:               10
>  SD Files Written:       0
>  SD Bytes Written:       0 (0 B)
>  Rate:                   0.0 KB/s
>  Volume name(s):
>  Volume Session Id:      0
>  Volume Session Time:    0
>  Last Volume Bytes:      0 (0 B)
>  SD Errors:              0
>  SD termination status:
>  Termination:            Migration -- no files to migrate
> 
> 22-Aug 13:31 lbst-dir JobId 2: Begin pruning Jobs.
> 22-Aug 13:31 lbst-dir JobId 2: No Jobs found to prune.
> 22-Aug 13:31 lbst-dir JobId 2: Begin pruning Files.
> 22-Aug 13:31 lbst-dir JobId 2: No Files found to prune.
> 22-Aug 13:31 lbst-dir JobId 2: End auto prune.
> 
>
> __________________________________________________________________________
> here is my director configuration:
> 
> Director {                            # define myself
>  Name = lbst-dir
>  DIRport = 9101                # where we listen for UA connections
>  QueryFile = "/usr/lib64/bacula/query.sql"
>  WorkingDirectory = "/var/lib/bacula"
>  PidDirectory = "/var/run"
>  Maximum Concurrent Jobs = 1
>  Password = "lbst-dir_pw"         # Console password
>  DirAddress = 131.173.120.33
>  Messages = Daemon
> }
> 
> JobDefs {
>  Name = "DefaultJob"
>  Type = Backup
>  Level = Incremental
>  Client = lbst-fd
>  FileSet = "Full Set"
>  Schedule = "WeeklyCycle"
>  Storage = File
>  Messages = Standard
>  Pool = Default
>  Priority = 10
> }
> 
> Job {
>  Name = "BackupCatalog"
>  JobDefs = "DefaultJob"
>  Level = Full
>  FileSet="Catalog"
>  Schedule = "WeeklyCycleAfterBackup"
>  RunBeforeJob = "/usr/lib64/bacula/make_catalog_backup bacula bacula"
>  RunAfterJob  = "/usr/lib64/bacula/delete_catalog_backup"
>  Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"
>  Priority = 11                   # run after main backup
> }
> 
> Job {
>  Name = "RestoreFiles"
>  Type = Restore
>  Client=lbst-fd
>  FileSet="Full Set"
>  Storage = File
>  Pool = Default
>  Messages = Standard
>  Where = /bacula-restores
> }
> 
> Job {
>  Name = "BackupPC22"
>  Client = LBST-PC-22-fd
>  Type = Backup
>  Schedule = "ToDiscDailyCycle"
>  Fileset = "pc-22"
> Schedule = "ToDiscDailyCycle"
>  Fileset = "pc-22"
>  Pool = File
>  Messages = Standard
> }
> 
> Job {
>  Name = "migrate"
>  Type = Migrate
>  Level = Full
>  Client = lbst-fd
>  FileSet = "pc-22"
>  Messages = Standard
>  Pool = File
>  Maximum Concurrent Jobs = 4
>  Selection Type = Volume
>  Selection Pattern = "File*"
> }
> 
> FileSet {
>  Name = "All"
>  Include {
>    Options {
>      signature = MD5
>    }
>    File = /
>  }
> }
> 
> # List of files to be backed up
> FileSet {
>  Name = "Full Set"
>  Include {
>    Options {
>      signature = MD5
>    }
>    File = /usr/src/packages/BUILD/bacula-2.4.0
>  }
>  Exclude {
>    File = /proc
>    File = /tmp
>    File = /.journal
>    File = /.fsck
>  }
> }
> 
> Schedule {
>  Name = "ToDiscDailyCycle"
>  Run = Full fri at 23:00
>  Run = Incremental mon-thu at 23:00
> }
> 
> Schedule {
>  Name = "ToTapeDailyCycle"
> Schedule {
>  Name = "ToTapeDailyCycle"
>  Run = Full daily at 8:00
> }
> 
> 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/lib/bacula/bacula.sql
>  }
> }
> 
> FileSet {
>  Name = "pc-22"
>  Include {
>    Options {
>      signature = MD5
>    }
>    File = /backup-data
>  }
> }
> 
> # Client (File Services) to backup
> Client {
>  Name = lbst-fd
>  Address = 131.173.120.33
>  FDPort = 9102
>  Catalog = MyCatalog
>  Password = "lbst-fd_pw"          # password for FileDaemon
>  File Retention = 30 days            # 30 days
>  Job Retention = 6 months            # six months
>  AutoPrune = yes                     # Prune expired Jobs/Files
> }
> 
> Client {
>  Name = LBST-PC-22-fd
>  Address = 131.173.121.150
> Name = LBST-PC-22-fd
>  Address = 131.173.121.150
>  FDPort = 9102
>  Catalog = MyCatalog
>  Password = "021027"
>  File Retention = 30 days
>  Job Retention = 6 months
>  AutoPrune = yes
> }
> 
> # Definition of file storage device
> Storage {
>  Name = File
>  Address = 131.173.120.33
>  SDPort = 9103
>  Password = "lbst-sd_pw"
>  Device = FileStorage
>  Media Type = File
> }
> 
> # Definition of Dell tape storage device
> Storage {
>  Name = LTO-4
> Address = 131.173.120.33 # N.B. Use a fully qualified name
> here
>  SDPort = 9103
>  Password = "lbst-sd_pw"          # password for Storage daemon
> Device = LTO-4 # must be same as Device in Storage
> daemon
>  Media Type = LTO-4                  # must be same as MediaType in
> Storage daemon
> }
> 
> Storage {
>  Name = IBM-Autochanger
>  Address = 131.173.120.33
>  Password = "lbst-sd_pw"
>  Device = "LTO-4"
>  Media Type = LTO-4
>  Autochanger = yes
> }
> 
> Catalog {
>  Name = MyCatalog
>  dbname = bacula; user = bacula; password = ""
> }
> 
> Messages {
>  Name = Standard
>  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula: %t %e of %c %l\" %r"
>  operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\)
> \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
>  mail = r.koenig AT fh-osnabrueck DOT de = all, !skipped
>  operator = r.koenig AT fh-osnabrueck DOT de = mount
>  console = all, !skipped, !saved
>  append = "/var/lib/bacula/log" = all, !skipped
> }
> 
> }
> 
> # Message delivery for daemon messages (no job).
> Messages {
>  Name = Daemon
>  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\"
> -s \"Bacula daemon message\" %r"
>  mail = root@localhost = all, !skipped
>  console = all, !skipped, !saved
>  append = "/var/lib/bacula/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
> }
> 
> # Scratch pool definition
> Pool {
>  Name = Scratch
>  Pool Type = Backup
> }
> 
> Pool {
>  Name = File
>  Pool Type = Backup
>  AutoPrune = yes
>  Recycle = yes
>  Next Pool = Tape
>  Storage = File
> }
> 
> Pool {
>  Name = Tape
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Volume Retention = 365 days
>  Storage = LTO-4
> }
> 
> #
> # Restricted console used by tray-monitor to get the status of the
> director
> #
> Console {
>  Name = lbst-mon
>  Password = "lbst-mon_pw"
>  CommandACL = status, .status
> }
> -- 
> View this message in context:
> http://www.nabble.com/Migration-Problem-tp19138760p19138760.html
> Sent from the Bacula - Users mailing list archive at Nabble.com.
> 
> 
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>