-------- Original Message -------- Subject: Re: [Bacula-users] Failed to Connect to Storage daemon File Date: Mon, 09 Dec 2013 08:51:05 +0100 From: Juraj Sakala <juraj.sak...@gmail.com> To: Prout, Richard Alun <richard.pr...@hp.com> CC: Drew, John (HPSD, Bristol) <john.d...@hp.com>, Saw, Philip <phil....@hp.com>, Grimwood, Malcolm <malcolm.grimw...@hp.com>, Pang, Peter (OEM - Bristol UK) <peter.p...@hp.com> Hi, If you are using FQDN (like micd3.gbr.hp.com-sd) you must be able to resolve this name via DNS. Director and File Daemon connects to this host an if the FQDN is not resolvable Director and File Daemon are not able to connect to Storage Daemon. Try to replace micd3.gbr.hp.com-sd with 16.24.171.151 in bacula-dir.conf storage resource. Address = 16.24.171.151 I think it will be sufficient. Juraj On 12/09/2013 08:32 AM, Prout, Richard Alun wrote: > Hi Juraj, > > No I can't resolve micd3.gbr.hp.com-sd using nslookup. > > When you say replace micd3.gbr.hp.com-sd with IP Address (which is > 16.24.171.151) should I replace every reference to micd3.gbr.hp.com-xxxxx in > the bacula-sd.conf, bacula-fd.conf and the bacula-dir.conf? > > If I change the name do I need the should it look like 16.24.171.151 or > 16.24.171.151-sd? > > Sorry if these are silly questions, as I said this is all really new to me. > > Thanks in anticipation, > > Rich > > -----Original Message----- > From: Juraj Sakala [mailto:juraj.sak...@gmail.com] > Sent: 04 December 2013 21:49 > To: Prout, Richard Alun; bacula-users@lists.sourceforge.net > Cc: Saw, Philip; Drew, John (HPSD, Bristol); Grimwood, Malcolm; Pang, Peter > (OEM - Bristol UK) > Subject: Re: [Bacula-users] Failed to Connect to Storage daemon File > > Are you able to resolve micd3.gbr.hp.com-sd to IP. For example wit nslookup? > Replace the name with IP address, restart director and storage daemon. > > Is the storage daemon running? > > Is there any interesting logs in log file? > > On 12/04/2013 05:22 PM, Prout, Richard Alun wrote: >> Hi, >> >> >> >> I am extremely new to Bacula and have run into a problem that I don't >> seem to be able fix. >> >> >> >> I have attached my */bacula-dir.conf/*, */bacula-fd.conf/* and my >> */bacula-sd.conf/* files in the hope that someone out there can take a >> quick look and ensure that they all look OK. Also attached are my >> */config.out/* and my */config.log/* from the install process. >> >> >> >> The error message I am seeing is when I run the */status storage/* >> command from the */bconsole/* prompt (the *). I am following the >> 'Running a Job' tutorial from the following >> http://www.bacula.org/5.2.x-manuals/en/main/main/Brief_Tutorial.html >> >> >> >> */show filesets/* returns the expected output >> >> */status dir/* returns expected output >> >> */status client/* returns expected output >> >> */status storage/* returns the following error >> >> >> >> */Automatically selected Storage: File/* >> >> */Connecting to Storage daemon File at micd3.gbr.hp.com-sd:9103/* >> >> */ /* >> >> */Failed to connect to Storage daemon File./* >> >> >> >> I tried to configure my bacula-dir.conf in the Storage entry with the >> following: >> >> >> >> >> >> */# Definition of file storage device/* >> >> */Storage {/* >> >> */ Name = LTO-6/* >> >> */# Do not use "localhost" here/* >> >> */ Address = micd3.gbr.hp.com-sd # N.B. Use a fully >> qualified name/* >> >> */here/* >> >> */ SDPort = 9103/* >> >> */ Password = "LZmffqI8xfbnpj5T88tB+r+tPTQI/9Z2FFPrLqrNxOl0"/* >> >> */ Device = FileStorage/* >> >> */ Media Type = LTO-6/* >> >> >> >> To correspond with the device entry in my baculu-sd.conf: >> >> >> >> */Device {/* >> >> */ Name = LTO-6/* >> >> */ Media Type = LTO-6/* >> >> */ Archive Device = /dev/nst0/* >> >> */ AutomaticMount = yes;/* >> >> */ AlwaysOpen = yes;/* >> >> */ RemovableMedia = yes;/* >> >> */ RandomAccess = no;/* >> >> */ Maximum File Size = 5GB/* >> >> */ Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a >> %d"/* >> >> */ Changer Device = /dev/sg0/* >> >> */ AutoChanger = yes/* >> >> */}/* >> >> >> >> But if I don't use */File/* in the bacula-dir.conf file next to >> */Name/* and */Media Type/* the Director daemons will not start. >> >> >> >> It looks as though there may be two different issues here. It would >> be good to resolve the */status storage/* issue and then move onto the >> */Director/* daemon issue. >> >> >> >> I have followed the Installing Bacula guide from >> http://www.bacula.org/5.2.x-manuals/en/main/main/Installing_Bacula.htm >> l >> >> >> >> Everything compiled and installed correctly as far as I could see. >> */bconsole/* starts and */bacula start/* and */stop /*works OK with >> the daemons (apart from when I change the name and the media type to >> correspond to my bacula-sd.conf file. So I am relatively confident >> that bacula is installed correctly (although I would be more than >> happy if someone could prove me wrong and thus fix my issue). >> >> >> >> I am running RedHat 5 UP6 X86_64 and bacula-5.2.13, I have an LTO-6 >> and an MSL6480 library zoned into the server. If I run the more >> /proc/scsi/scsi the operating system returns expected tape drive and >> robotics output. >> >> >> >> Hope someone out there in Bacula land has the time to help me out here >> as it would be much appreciated. >> >> >> >> >> >> Thanks, >> >> >> >> Rich >> >> HP_Blue_RGB_150_70px >> >> Richard Prout >> >> Hewlett Packard Ltd >> >> Building 3 >> >> Long Down Avenue >> >> Stoke Gifford >> >> Bristol BS34 8QZ >> >> United Kingdom >> >> >> >> 0117 3162580 >> >> richard.pr...@hp.com <mailto:richard.pr...@hp.com> >> >> >> >> __________________________________________________________________ >> >> Hewlett-Packard Limited Registered Office: Cain Road, Bracknell, Berks >> RG12 1HN >> >> Registered No: 690597 England >> >> >> >> The contents of this message and any attachments to it are >> confidential and may be legally privileged. If you have received this >> message in error, you should delete it from your system immediately >> and advise the sender. >> >> >> >> To any recipient of this message within HP, unless otherwise stated >> you should consider this message and attachments as "HP CONFIDENTIAL". >> >> >> >> >> >> ---------------------------------------------------------------------- >> -------- >> Sponsored by Intel(R) XDK >> Develop, test and display web and hybrid apps with a single code base. >> Download it for free now! >> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg. >> clktrk >> >> >> >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users >> ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users