Bacula-users

[Bacula-users] incorrect autolabel behaviour

2009-09-06 15:11:48
Subject: [Bacula-users] incorrect autolabel behaviour
From: Oleg Gawriloff <barzog AT telecom DOT by>
To: bacula-users AT lists.sourceforge DOT net
Date: Sun, 06 Sep 2009 21:37:52 +0300
We have test setup with 2 clients. Each of them must be backed up to 
separate volume (disk file). For this we using following config 
(attached). The problem is: when backup schedule time arrived and 2nd 
client have problems (for example turned-off) director _first_ creates 
new volume for this client and only then tries to connect to file daemon 
on this client. Which results in empty volume with status append. Then 
when next  backup time arrives for 1st client - director see that append 
volume exists and does not create separate volume for this. Its 
unacceptable. Any ideas how in any stance backup for each client goes 
only to its volumes?

In log files:
2nd client is turned off but volume automatically created.

05-Sep 23:06 ALBATROS-DIRECTOR JobId 31: Created new Volume 
"ALBATROS2-CLIENT-Level-Full-23-6-5-9-2009" in catalog.
05-Sep 23:06 ALBATROS-DIRECTOR JobId 31: Using Device "MAIN-STORAGE-DEVICE"
05-Sep 23:10 ALBATROS-DIRECTOR JobId 31: Fatal error: No Job status 
returned from FD.
05-Sep 23:09 ALBATROS-DIRECTOR JobId 31: Warning: bsock.c:129 Could not 
connect to Client: ALBATROS2-CLIENT on 172.16.2.242:9102. ERR=Operation 
timed out

1st client used volume created for 2nd client:
06-Sep 03:00 ALBATROS-DIRECTOR JobId 32: Start Backup JobId 32, 
Job=ALBATROS_FULL.2009-09-06_03.00.00_30
06-Sep 03:00 ALBATROS-DIRECTOR JobId 32: Using Device "MAIN-STORAGE-DEVICE"
06-Sep 03:00 MAIN-STORAGE JobId 32: Warning: dev.c:534 dev.c:532 Could 
not open: /var/tmp/bacula/ALBATROS2-CLIENT-Level-Full-23-6-5-9-2009, 
ERR=No such file or directory
06-Sep 03:00 MAIN-STORAGE JobId 32: Warning: dev.c:534 dev.c:532 Could 
not open: /var/tmp/bacula/ALBATROS2-CLIENT-Level-Full-23-6-5-9-2009, 
ERR=No such file or directory
06-Sep 03:00 MAIN-STORAGE JobId 32: Labeled new Volume 
"ALBATROS2-CLIENT-Level-Full-23-6-5-9-2009" on device 
"MAIN-STORAGE-DEVICE" (/var/tmp/bacula).
06-Sep 03:00 MAIN-STORAGE JobId 32: Wrote label to prelabeled Volume 
"ALBATROS2-CLIENT-Level-Full-23-6-5-9-2009" on device 
"MAIN-STORAGE-DEVICE" (/var/tmp/bacula)


At the director:

JobDefs {
   Name = "DefaultBackupJobDefinition"
   Enabled = yes
   Type = Backup
   Level = Incremental
   Accurate = yes
   Priority = 10
   FileSet = COMMON-FILESET
   Messages = STD-MESSAGES-DST
   Pool = STORAGE-POOL-MAIN
   Schedule = DEFAULT-SCHEDULE
   Write Bootstrap = "/var/db/bacula/%c.bsr"
}

Job {
   Name = "ALBATROS FULL"
   JobDefs = "DefaultBackupJobDefinition"
   Client = ALBATROS-CLIENT
}

Job {
   Name = "ALBATROS2 FULL"
   JobDefs = "DefaultBackupJobDefinition"
   Client = ALBATROS2-CLIENT
}

Client {
   Name = ALBATROS-CLIENT
   Address = 172.16.2.32
   FDPort = 9102
   Catalog = SQLITE-CATALOG
   Password = "baculapass"
   File Retention = 3 months
   Job Retention = 3 months
   Maximum Concurrent Jobs = 1
   Auto Prune = yes
}


Client {
   Name = ALBATROS2-CLIENT
   Address = 172.16.2.242
   FDPort = 9102
   Catalog = SQLITE-CATALOG
   Password = "baculapass"
   File Retention = 3 months
   Job Retention = 3 months
   Maximum Concurrent Jobs = 1
   Auto Prune = yes
}

Pool {
   Name = STORAGE-POOL-MAIN
   Pool Type = Backup
   Storage = MAIN-STORAGE
   Maximum Volume Jobs = 1 # Make new volume for each new backup
   Auto Prune = yes
   Volume Retention = 1 month
   Recycle = yes
   Recycle Oldest Volume = yes
   RecyclePool = STORAGE-POOL-RESERVE
   Label Format = 
"${Client}-Level-${Level}-${Hour}-${Minute}-${Day}-${Month}-${Year}"
}

At Storage Daemon:
Device {
   Name = "MAIN-STORAGE-DEVICE"
   Archive Device = "/var/tmp/bacula"
   Device Type = File
   Media Type = "MAIN-SHELF"
   Removable Media = No
   Random Access = Yes
   Automatic Mount = Yes
   Always Open = no
   Label Media = yes
}


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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>