On Friday 19 October 2007 13:26, you wrote:
> > If I set up 4 devices, one for each site/pool, how do I ensure that
> > correct device is used for the correct pool. I would like each site to be
> > in it's own directory.
>
> One way is to give each sd a seperate media type and then give all
> jobs for a single site/pool the same media type as the sd that will
> handle the jobs for that site/pool.
>
> John

I've managed to completely screw up my config so that nothing's backing up 
now.  I'm trying to do as you suggested.

There error message seems to say that it's looking for a media type 'File' but 
I don't know how to change it to 'leeds-tape'.

19-Oct 17:04 eddie1-dir: Start Backup JobId 391, 
Job=ladmin6.2007-10-19_17.04.30
19-Oct 16:56 larry2-sd: Failed command: 
19-Oct 16:56 larry2-sd: ladmin6.2007-10-19_17.04.30 Fatal error: 
     Device "PrimaStorage" with MediaType "File" requested by DIR not found in 
SD Device resources.
19-Oct 17:04 eddie1-dir: ladmin6.2007-10-19_17.04.30 Fatal error: 
     Storage daemon didn't accept Device "PrimaStorage" because:
     3924 Device "PrimaStorage" not in SD Device resources.
19-Oct 17:04 eddie1-dir: ladmin6.2007-10-19_17.04.30 Error: Bacula eddie1-dir 
2.2.4 (14Sep07): 19-Oct-2007 17:04:34
  Build OS:               i686-pc-linux-gnu redhat 
  JobId:                  391
  Job:                    ladmin6.2007-10-19_17.04.30
  Backup Level:           Incremental, since=2007-10-19 09:22:56
  Client:                 "ladmin6-fd" 2.2.4 (12Sep07) 
Linux,Cross-compile,Win32
  FileSet:                "Windows XP" 2007-10-08 17:16:43
  Pool:                   "Leeds" (From Job resource)
  Storage:                "larry2-File" (From Job resource)
  Scheduled time:         19-Oct-2007 17:04:21
  Start time:             19-Oct-2007 17:04:34
  End time:               19-Oct-2007 17:04:34
  Elapsed time:           0 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:      1
  Volume Session Time:    1192809363
  Last Volume Bytes:      0 (0 B)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  
  SD termination status:  
  Termination:            *** Backup Error ***



I've got the following in the director

JobDefs {
  Name = "LeedsJob"
  Type = Backup
  Level = Incremental
  FileSet = "Windows XP"
  Schedule = "WeeklyCycle"
  max start delay = 23h
  Reschedule On Error = yes
  Reschedule Times = 23
  reschedule interval = 1h
  Storage = larry2-File
  Messages = Standard
  Pool = Leeds
  Priority = 10
}
Job {
  Name = "ladmin6"
  JobDefs = "LeedsJob"
  Client = ladmin6-fd
  Schedule = "WeeklyCycle"
  Messages = Standard
  Write Bootstrap = "/var/bacula/ladmin6-bootstrap"
}
Client {
  Name = ladmin6-fd                
  Address = ladmin6
  FDPort = 9102
  Catalog = MyCatalog
  Password = "Bacula"         # password for ladmin6
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}
Storage {
  Name = larry2-File
# Do not use "localhost" here    
  Address = larry2.ringways.co.uk
  SDPort = 9103
  Password = "<password>"
  Device = LeedsStorage
  Device = DoncStorage
  Device = HalesStorage
  Device = PrimaStorage
  Media Type = File
  Maximum Concurrent Jobs = 20
}
Pool {
  Name = Leeds
  Pool Type = Backup
# Maximum Volume Jobs = 1
  Volume Use Duration = 23h
  Maximum Volume Bytes=5G
  Recycle = yes                       
  AutoPrune = yes                  
  Volume Retention = 365 days         # one year
  Label Format = "leeds"
}

And in the sd I have

Storage {                             # definition of myself
  Name = larry2-sd
  SDPort = 9103                  # Director's port      
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
  Client Connect Wait = 30s
}

Device {
  Name = LeedsStorage
  Device Type = File
  Media Type = leeds-tape
  Archive Device = /var/bacula/leeds
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = HalesStorage
  Device Type = File
  Media Type = hales-tape
  Archive Device = /var/bacula/hales
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}


-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to