Bacula-users

Re: [Bacula-users] bacula 5.0.2 sd bind to 0.0.0.0 and respond only to localhost

2010-05-12 10:21:08
Subject: Re: [Bacula-users] bacula 5.0.2 sd bind to 0.0.0.0 and respond only to localhost
From: Josh Fisher <jfisher AT pvct DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 12 May 2010 10:18:25 -0400

On 5/12/2010 3:42 AM, frank cheong wrote:
> Dear All,
>
> I have just finished setting up bacula 5.0.2 and have no problem in
> backing up local host, while it complained the following error when I
> add a second client :-
>
> Fatal error: Failed to connect to Storage daemon: server:9103 12-May
> 12:41 server-dir JobId 17: Fatal error: Bad response to Storage
> command: wanted 2000 OK storage , got 2902 Bad storage
>
> I then tried to local the storage daemon server's 9103 port from the
> second client but failed. While I can successfully telnet to 9103 port
> from storage daemon server localhost. Have checked no firewall is
> running on the storage daemon server. I then run the sd with -d100
> with the following output:-
>
>
> [root@server sbin]# ./bacula-sd -d100 -c /etc/bacula/bacula-sd.conf
> bacula-sd: stored_conf.c:698-0 Inserting director res: server-mon
> bacula-sd: stored_conf.c:698-0 Inserting device res: LTO-4
> [root@server sbin]# server-sd: jcr.c:138-0 read_last_jobs seek to 188
> server-sd: jcr.c:145-0 Read num_items=10
> server-sd: jcr.c:611-0 setting my_thread_stuffs 0x0 =>  0xb7de4b90
> server-sd: stored.c:534-0 calling init_dev /tmp
> server-sd: dev.c:284-0 init_dev: tape=0 dev_name=/tmp
> server-sd: stored.c:536-0 SD init done /tmp
> server-sd: stored.c:534-0 calling init_dev /dev/nst0
> server-sd: dev.c:284-0 init_dev: tape=1 dev_name=/dev/nst0
> server-sd: stored.c:536-0 SD init done /dev/nst0
> server-sd: autochanger.c:272-0 Run program=/etc/bacula/mtx-changer
> /dev/sg4 loaded 0 /dev/nst0 0
> server-sd: bnet_server.c:96-0 Addresses host[ipv4:0.0.0.0:9103]
> server-sd: autochanger.c:274-0 run_prog: /etc/bacula/mtx-changer
> /dev/sg4 loaded 0 /dev/nst0 0 stat=0 result=2
> server-sd: stored.c:549-0 calling first_open_device "LTO-4" (/dev/nst0)
> server-sd: dev.c:361-0 open dev: type=2 dev_name="LTO-4" (/dev/nst0)
> vol= mode=OPEN_READ_ONLY
> server-sd: dev.c:411-0 Open dev: device is tape
> server-sd: dev.c:426-0 Try open "LTO-4" (/dev/nst0) mode=OPEN_READ_ONLY
> server-sd: dev.c:448-0 Rewind after open
> server-sd: dev.c:2585-0 In set_os_device_parameters
> server-sd: dev.c:2591-0 Set block size to zero
> server-sd: dev.c:2607-0 MTSETDRVBUFFER
> server-sd: dev.c:500-0 open dev: tape 3 opened
> server-sd: dev.c:374-0 preserve=0x0 fd=3
> server-sd: label.c:81-0 Enter read_volume_label res=0 device="LTO-4"
> (/dev/nst0) vol= dev_Vol=*NULL*
>
> Volume Label:
> Id                : Bacula 1.0 immortal
> VerNo             : 11
> VolName           : Daily-0002
> PrevVolName       :
> VolFile           : 0
> LabelType         : VOL_LABEL
> LabelSize         : 179
> PoolName          : Daily
> MediaType         : LTO-4
> PoolType          : Backup
> HostName          : server
> Date label written: 06-May-2010 19:52
> server-sd: label.c:236-0 Call reserve_volume=Daily-0002
>
>
> I attached the relevant portion of bacula-sd.conf and  bacula-dir.conf
> for your quick reference:-
>
> bacula-sd.conf
> Storage {                             # definition of myself
>    Name = server-sd
>    SDPort = 9103                  # Director's port
>    WorkingDirectory = "/var/bacula/working"
>    Pid Directory = "/var/run"
>    Maximum Concurrent Jobs = 20
> }
>
> bacula-dir.conf
> Storage {
>    Name = LTO-4
> # Do not use "localhost" here
>    Address = server                # N.B. Use a fully qualified name here
>    

Does 'dig server' show the correct address for the SD?

>    SDPort = 9103
>    Password = "44QsasdfNNasdf7bPa2asdfDR7vYbeRejW2PKDKsadfm"
>    Device = ULT3580-HH4
>    Autochanger = yes
>    Media Type = LTO-4
>    Maximum Concurrent Jobs = 1
> }
>
>
> What seems to goes wrong here? My current running OS is CentOS 5.4.
>
> Frank
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>    

------------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users