Bacula-users

[Bacula-users] storeage authentication for new client / job

2015-03-24 12:44:36
Subject: [Bacula-users] storeage authentication for new client / job
From: Gary Stainburn <gary AT ringways.co DOT uk>
To: Bacula-users AT lists.sourceforge DOT net
Date: Tue, 24 Mar 2015 15:25:24 +0000
Hi folks.

I've set no a new server 'eddienew' which is going to replace 'eddie'

I've copied /etc/bacula/clients/eddie.conf to eddienew.conf and edited 
accordingly. The results are below. All I have done is change every instance 
of 'eddie' to 'eddienew' and for completeness changed the passwords.

The bacula-fd.conf on eddienew was copied and edited likewise.

I can successfully do:
status client=eddienew-fd
status client=eddie-fd
status storage=zeppo-servers
run job=eddie

However, when I try run job=eddienew it fails with autorization errors on the 
storeage.

******* eddienew.conf
Job {
  Name = "eddienew"
  JobDefs = "LinuxJob"
  enabled = yes
  Client = eddienew-fd
  Schedule = "Week2"
  Storage = zeppo-servers
  pool = Servers
  Messages = Standard
  Write Bootstrap = "/var/bacula/eddienew-bootstrap"
}
Client {
  Name = eddienew-fd
  Address = 10.1.1.226
  FDPort = 9102
  Catalog = MyCatalog
  Password = "<it's a secret>"
  File Retention = 90 days            # 90 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}
*******

******* Session Log
*status client=eddie-fd
Connecting to Client eddie-fd at 10.1.1.115:9102

eddie-fd Version: 2.4.2 (26 July 2008)  i686-pc-linux-gnu redhat 
Daemon started 03-Mar-15 20:39, 22 Jobs run since started.
 Heap: heap=958,464 smbytes=81,388 max_bytes=488,803 bufs=72 max_bufs=187
 Sizeof: boffset_t=8 size_t=4 debug=0 trace=0

Running Jobs:
Director connected at: 24-Mar-15 15:18
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name 
======================================================================
110658  Incr        483    345.8 M  OK       16-Mar-15 19:15 eddie
110768  Incr        442    683.3 M  OK       17-Mar-15 19:25 eddie
110891  Incr        456    275.8 M  OK       18-Mar-15 19:13 eddie
111006  Incr        418    345.8 M  OK       19-Mar-15 19:15 eddie
111152  Incr        420    210.6 M  OK       20-Mar-15 16:39 eddie
111167  Diff      1,030    744.8 M  OK       20-Mar-15 19:34 eddie
111278  Incr         45    51.97 M  OK       21-Mar-15 19:07 eddie
111388  Incr         39    30.25 M  OK       22-Mar-15 19:06 eddie
111506  Incr        611    727.6 M  OK       23-Mar-15 19:26 eddie
111611  Incr        329    308.9 M  OK       24-Mar-15 15:02 eddie
====
*status client=eddienew-fd
Connecting to Client eddienew-fd at 10.1.1.226:9102

eddienew-fd Version: 7.0.5 (28 July 2014)  x86_64-redhat-linux-gnu redhat One)
Daemon started 24-Mar-15 15:04. Jobs: run=0 running=0.
 Heap: heap=135,168 smbytes=149,513 max_bytes=153,951 bufs=54 max_bufs=110
 Sizes: boffset_t=8 size_t=8 debug=0 trace=0 mode=0,0 bwlimit=0kB/s

Running Jobs:
Director connected at: 24-Mar-15 15:18
No Jobs running.
====

Terminated Jobs:
====
*status storage=zeppo-servers
Connecting to Storage daemon zeppo-servers at zeppo.ringways.co.uk:9103

zeppo-sd Version: 5.0.0 (26 January 2010) x86_64-redhat-linux-gnu redhat 
Daemon started 24-Mar-15 14:57, 3 Jobs run since started.
 Heap: heap=135,168 smbytes=92,913 max_bytes=227,995 bufs=90 max_bufs=111
Sizes: boffset_t=8 size_t=8 int32_t=4 int64_t=8

Running Jobs:
No Jobs running.
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name 
===================================================================
111498  Full          0         0   Other    24-Mar-15 13:58 eddienew
111498  Full          0         0   Other    24-Mar-15 14:08 eddienew
111567  Incr          0         0   Other    24-Mar-15 14:16 wsales6
111498  Full          0         0   Other    24-Mar-15 14:18 eddienew
111498  Full          0         0   Other    24-Mar-15 14:29 eddienew
111498  Full          0         0   Other    24-Mar-15 14:39 eddienew
111609  Full          0         0   Cancel   24-Mar-15 14:57 eddienew
111610  Full          0         0   Cancel   24-Mar-15 14:58 eddienew
111611  Incr        329    309.0 M  OK       24-Mar-15 15:04 eddie
111613  Full          0         0   Cancel   24-Mar-15 15:13 eddienew
====

Device status:
Device "ServiceStorage" (/var/bacula/service) is not open.
Device "ServersStorage" (/var/bacula/servers) is not open.
====

Used Volume status:
====

Data spooling: 0 active jobs, 0 bytes; 1 total jobs, 309,413,234 max 
bytes/job.
Attr spooling: 0 active jobs, 0 bytes; 1 total jobs, 88,237 max bytes.
====

run job=eddienew
Using Catalog "MyCatalog"
Run Backup job
JobName:  eddienew
Level:    Incremental
Client:   eddienew-fd
FileSet:  Linux Full
Pool:     Servers (From Job resource)
Storage:  zeppo-servers (From Job resource)
When:     2015-03-24 15:21:14
Priority: 7
OK to run? (yes/mod/no): yes
*
Job queued. JobId=111615
24-Mar 15:21 eddie1-dir JobId 111615: No prior Full backup Job record found.
24-Mar 15:21 eddie1-dir JobId 111615: No prior or suitable Full backup found 
in catalog. Doing FULL backup.
24-Mar 15:21 eddie1-dir JobId 111615: shell command: run 
BeforeJob "/etc/bacula/jobcheck.sh eddienew-fd"
24-Mar 15:21 eddie1-dir JobId 111615: BeforeJob: PING 10.1.1.226 (10.1.1.226) 
56(84) bytes of data.
24-Mar 15:21 eddie1-dir JobId 111615: BeforeJob: 64 bytes from 10.1.1.226: 
icmp_seq=1 ttl=64 time=0.173 ms
24-Mar 15:21 eddie1-dir JobId 111615: BeforeJob: 
24-Mar 15:21 eddie1-dir JobId 111615: BeforeJob: --- 10.1.1.226 ping 
statistics ---
24-Mar 15:21 eddie1-dir JobId 111615: BeforeJob: 1 packets transmitted, 1 
received, 0% packet loss, time 0ms
24-Mar 15:21 eddie1-dir JobId 111615: BeforeJob: rtt min/avg/max/mdev = 
0.173/0.173/0.173/0.000 ms
24-Mar 15:21 eddie1-dir JobId 111615: Start Backup JobId 111615, 
Job=eddienew.2015-03-24_15.21.16_21
24-Mar 15:21 eddie1-dir JobId 111615: Using Device "ServersStorage" to write.
*
24-Mar 15:21 eddienew-fd JobId 111615: Fatal error: Authorization key rejected 
by Storage daemon.
Please see 
http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00260000000000000000
 
for help.
**
*******
-- 
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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>