Bacula-users

Re: [Bacula-users] I don't understand why I get this error message

2009-10-22 10:40:07
Subject: Re: [Bacula-users] I don't understand why I get this error message
From: John Drescher <drescherjm AT gmail DOT com>
To: Gabriel - IP Guys <Gabriel AT impactteachers DOT com>
Date: Thu, 22 Oct 2009 10:36:12 -0400
On Thu, Oct 22, 2009 at 9:42 AM, Gabriel - IP Guys
<Gabriel AT impactteachers DOT com> wrote:
>
>
>> -----Original Message-----
>> From: John Drescher [mailto:drescherjm AT gmail DOT com]
>> Sent: 22 October 2009 14:08
>> To: Gabriel - IP Guys
>> Cc: Bacula-users AT lists.sourceforge DOT net
>> Subject: Re: [Bacula-users] I don't understand why I get this error
>> message
>>
>> > 21-Oct 23:10 Bacula-Director JobId 11: Fatal error:
>> >
>> >      Storage daemon didn't accept Device "FileStorage" because:
>> >
>> >      3924 Device "FileStorage" not in SD Device resources.
>> >
>> >
>> >
>> >  error message in bacula.log above
>> >
>> > I'm just confused that I can get this error message, when Device
>> > "FileStorage" is SD Device resources.
>> >
>> >  bacula-sd.conf excerpt below
>> >
>> >
>> >
>> > Device {
>> >
>> >   Name = FileStorage
>> >
>> >   Media Type = File
>> >
>> >   Archive Device = /backup
>> >
>> >   LabelMedia = yes;                   # lets Bacula label unlabeled
>> media
>> >
>> >   Random Access = Yes;
>> >
>> >   AutomaticMount = yes;               # when device opened, read it
>> >
>> >   RemovableMedia = no;
>> >
>> >   AlwaysOpen = no;
>> >
>> > }
>> >
>>
>> What about the storage resource in bacula-dir.conf? Also did you
>> restart the bacula-sd after making changes?
>>
>> John
>
>
>
> Storage {
>  Name = File
> # Do not use "localhost" here
>  Address = 172.30.0.65
>  SDPort = 9103
>  Password = notmyrealpasswordmyrealpasswordis50randomcharacters:)
>  Device = FileStorage
>  Media Type = File
> }
>
> This is my storage resource.... looking at is as the newbie I am, I think 
> that I have name, and device mixed up, but to be honest, that's a guess.
>

No, that looks correct. Here is what I have for a tape drive:

bacula-dir.conf

Storage {
  Name = "DEV6-LTO2-1"
  Address = dev6.radimg.pitt.edu
  SDPort = 9103
  Password = "XXXXXXXXXXXXXXXXXXXXXXXXXX"         # Console p$
  Device = "LTO2-1"
  Media Type = "LTO-2"
  Maximum Concurrent Jobs = 5
}


bacula-sd.conf
Device {
  Name = LTO2-1
  Media Type = LTO-2
  Drive Index = 1
  Archive Device = /dev/nst1
  Autochanger=yes
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Spool Directory = /mnt/tmp/bacula/tape
  Maximum Job Spool Size = 5G
#  Maximum Block Size = 262144
#  Minimum Block Size = 262144
#  Volume Poll Interval = 5 minutes
#  Close on Poll = Yes
#  Offline On Unmount = no
  LabelMedia = Yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"

#  Maximum blocksize = 512K

}




-- 
John M. Drescher

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users