Home > linux > bacula: rilanciare un job

bacula: rilanciare un job

dicembre 4, 2010

Rilanciare un JOB

Se un job fallisce avremo una mail da parte di Bacula di questo tipo:

 
 Oggetto: Bacula Test: Backup Error of myclient Full
 22-Nov 17:49 bckam102-dir JobId 9521: Fatal error: No Job status returned from FD.
 22-Nov 17:46 bckam102-dir JobId 9521: Warning: bsock.c:129 Could  not  connect to Client: myclient on myclient:9102. ERR=Connection refused
 Retrying ...
 22-Nov 17:49 bckam102-dir JobId 9521:  Fatal error: bsock.c:135 Unable  to connect to Client: myclient on  myclient:9102. ERR=Connection refused
 22-Nov 17:49 bckam102-dir JobId 9521: Error: Bacula bckam102-dir 3.0.3 (18Oct09): 22-Nov-2010 17:49:42
 Build OS:               x86_64-unknown-linux-gnu redhat Enterprise release
 JobId:                  9521
 Job:                    myclient.j.2010-11-22_17.00.00_49
 Backup Level:           Full
 Client:                 "myclient" 3.0.1 (30Apr09) i686-pc-linux-gnu,redhat,Enterprise release
 FileSet:                "all-unix" 2010-03-08 02:00:00
 Pool:                   "TESTPOOL4" (From Job resource)
 Catalog:                "MyCatalog" (From Client resource)
 Storage:                "TEST" (From Job resource)
 Scheduled time:         22-Nov-2010 17:00:00
 Start time:             22-Nov-2010 17:46:42
 End time:               22-Nov-2010 17:49:42
 Elapsed time:           3 mins 
 Priority:               10
 FD Files Written:       0
 SD Files Written:       0
 FD Bytes Written:       0 (0 B)
 SD Bytes Written:       0 (0 B)
 Rate:                   0.0 KB/s
 Software Compression:   None
 VSS:                    no
 Encryption:             no
 Accurate:               no
 Volume name(s):         
 Volume Session Id:      2414
 Volume Session Time:    1283529989
 Last Volume Bytes:      87,422,017,536 (87.42 GB)
 Non-fatal FD errors:    0
 SD Errors:              0
 FD termination status:  Error
 SD termination status:  Waiting on FD
 Termination:            *** Backup Error ***
 
 22-Nov 18:19 bckam102-dir JobId 9521: Fatal error: No Job status returned from FD.
 22-Nov 18:16 bckam102-dir JobId 9521: Warning: bsock.c:129 Could  not  connect to Client: myclient on myclient:9102. ERR=Connection refused

Risoluzione:

Leggendo gli errori notiamo subito un ‘connection error‘, bisogna quindi collegarsi sul client (myclient) e verificare che il servizio bacula-fd sia attivo.

1. Tornare sul server di bacula, aprire la bconsole e verificare l’agente di bacula

bconsole
* sta client=[myclient]

2. collegarsi sul client e verificare l’agente di bacula:

 ssh [user]@[server] 
 sudo su -
 service bacula-fd restart
Stopping Bacula File services:                              [FAILED]
 Starting Bacula File services:                             [  OK  ]

3. Tornare sul server di bacula, aprire la bconsole e verificare l’agente di bacula:

bconsole 
 * sta client=[myclient]

Categorie:linux Tag:, , ,