Bacula-users

[Bacula-users] Label command failed

2009-09-25 14:14:50
Subject: [Bacula-users] Label command failed
From: Gregory <grtou AT smile DOT fr>
To: bacula-users AT lists.sourceforge DOT net, nibou AT smile DOT fr, grtou AT smile DOT fr
Date: Fri, 25 Sep 2009 19:42:51 +0200
Hi,

I use bacula 2.4.4 in debian lenny and etch with FileStorages of 2 servers :
- localhost named bacula-srv (lenny)
- remote named bombarde (etch with backports)

The bacula-director is installed of bacula-srv.
The true server storage is bombarde and i use bacula-srv for storage 
only for test.

I do a label command of FileStorage at bacula-srv :
Connecting to Storage daemon FileStorage at bacula-srv:9103 ...
Sending label command for Volume "DD-SITE01-03" Slot 0 ...
3000 OK label. VolBytes=202 DVD=0 Volume="DD-SITE01-03" 
Device="FileStorage" (/home/bacula)
Catalog record for Volume "DD-SITE01-03", Slot 0  successfully created.
Requesting to mount FileStorage ...
3906 File device "FileStorage" (/home/bacula) is always mounted.

All is ok.

I do a label command of the FileStorageBombarde :
Connecting to Storage daemon FileStorageBombarde at bombarde:9103 ...
Sending label command for Volume "DD-SITE01-04" Slot 0 ...
3000 OK label. Volume=DD-SITE01-04 Device="FileStorageBombarde" 
(/home/bacula)
Label command failed for Volume DD-SITE01-04.
Do not forget to mount the drive!!!

In finally, the filestorage exist in bombarde:/home/bacula and label is 
ok but the FileStorage is not in the mysql database.

- Configuration in bombarde :
   * bacula-sd.conf
Storage {                             # definition of myself
  Name = bombarde-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = ip bombarde
}
Director {
  Name = bacula-dir
  Password = "password"
}
Device {
  Name = FileStorageBombarde
  Media Type = File
  Archive Device = /home/bacula
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

- Configuration in bacula-srv :
   * bacula-sd.conf
Storage {                             # definition of myself
  Name = bacula-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
  SDAddress = 127.0.0.1
}
Director {
  Name = bacula-dir
  Password = "password"
}
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /home/bacula
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

   * bacula-dir.conf
#----------STORAGES 
DEFINE-------------------------------------------------------
# Definition of file storage device
Storage {
  Name = FileStorage
# Do not use "localhost" here
  Address = bacula                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "password"
  Device = FileStorage
  Media Type = File
}
# Definition of file storage device
Storage {
  Name = FileStorageBombarde
# Do not use "localhost" here
  Address = bombarde                # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "password"
  Device = FileStorageBombarde
  Media Type = File
}

I search a solution since 2 days :(
Do you have an idea ?

Grégory

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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>
  • [Bacula-users] Label command failed, Gregory <=