Bacula-users

[Bacula-users] Device and Media type not found

2009-02-25 08:01:32
Subject: [Bacula-users] Device and Media type not found
From: Prashant Ramhit <prashant AT bluebarracuda DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 25 Feb 2009 11:53:21 +0000
Hi All,
I am using Bacula version  and I have the following error

25-Feb 11:36 server-sd JobId 9: Fatal error:
     Device "TapeDrive" with MediaType "LTO-4" requested by DIR not found in SD Device resources.
25-Feb 11:36 backupserver-dir JobId 9: Fatal error:
     Storage daemon didn't accept Device "TapeDrive" because:
     3924 Device "TapeDrive" not in SD Device resources.



But I think my config files (see below) are correct.

Can any one please have a look at the config file, may be there is something i am not able to see.

Kind Regards,
Prashant


bacula-sd.conf

Storage {
  Name = server-sd
  SDPort = 9103
  WorkingDirectory = "/var/bacula/working"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

Director {
  Name = backupserver-dir
  Password = "password"
}

Device {
  Name = TapeDrive
  Media Type = LT0-4
  Archive Device = /dev/nst0
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

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

bacula-dir.conf

Director {
  Name = backupserver-dir
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/var/bacula/working"
  PidDirectory = "/var/run"
  Password = "password"         # Console password
  Messages = Daemon
}

Storage {
  Name = Tape
  Address = localhost
  SDPort = 9103
  Password = "password"
  Device = TapeDrive
  Media Type = LTO-4
  Maximum Concurrent Jobs = 5
}


Catalog {
  Name = MyCatalog
  dbname = bacula; DB Address = localhost; user = bacula; password = "password"
}



Schedule {
  Name = "DailySetCycle"
  Run = Full mon at 21:00
  Run = Incremental tue-sun at 21:30
}

FileSet {
  Name = "LocalhostBackup"
  Include {
    Options {
      signature = MD5
    }
    File = /root/cache
  }
}

Pool {
  Name = DailySet
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  Recycle Oldest Volume = yes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 20 days          # This for a 4-week tape reuse cycle
}

JobDefs {
  Name = "DailySetJob"
  Type = Backup
  Level = Full
  Schedule = "DailySetCycle"
  Storage = Tape
  Messages = Daemon
  Pool = DailySet
  Incremental Backup Pool = DailySet 
  Priority = 10
}

Job {
  Name = "client"
  JobDefs = "DailySetJob"
  Client = "client-fd"
  FileSet = "LocalhostBackup"
  Write Bootstrap = "/var/lib/bacula/client.bsr"
}

Client {
  Name = client-fd
  Address = localhost
  FDPort = 9102
  Catalog = MyCatalog
  Password = "password"
  File Retention = 20 days
  Job Retention = 6 months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

Console {
  Name = server-mon
  Password = "password"
}


# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  mail = root@localhost = all, !skipped           
  console = all, !skipped, !saved
  append = "/var/bacula/working/log" = all, !skipped
}



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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>