Hi all,

i have been very successful in messing up my configuration today and
would like to share it with you, either for a laugh or maybe a hint.
:)

i still assume that a storage daemon can have multiple devices, but
i'm not even sure about that by now, this is why i'm looking for help
- i'll look through the src/examples directory after i send this
email, i already checked my little email archive but with no success.

my current state is that bacula's looking for a volume file-03 in a
directory storage/01 and so on,
so there's something dead wrong about my configuration, and i have to admit
I've been fiddling with it for too long. now it's in a state that
gives no errors, but
is not right either. :)

what i want to end up with is a number devices (file) to assign to the same pool
i.e.:
/bacula/storage/00 (10GB)
/bacula/storage/01 (50GB)
/bacula/storage/02 (10GB)
/bacula/storage/03 (...)

after labeling they'd look like this:

/bacula/storage/00/hostname-file-00
/bacula/storage/01/hostname-file-01
/bacula/storage/02/hostname-file-02
/bacula/storage/03/hostname-file-03

and be recycled forever.
at last i want to use one storage daemon per every two devices, so we
end up with the
following:

sd00:
/bacula/storage/00/hostname-file-00
/bacula/storage/01/hostname-file-01
sd01:
/bacula/storage/02/hostname-file-02
/bacula/storage/03/hostname-file-03



first, the sd config, still lacking a size declaration, but that's
nothing i worry about right now.
[passwords grepped out]

Storage {                             # definition of myself
  Name = bc00-sd00
  SDAddress = bc00-sd00
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/mnt/new/bacula/apps/bacula/var/bacula/working"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

Device {
  Name = FileStorage00
  Media Type = File
  Archive Device = /mnt/new/bacula/storage/00
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = FileStorage01
  Media Type = File
  Archive Device = /mnt/new/bacula/storage/01
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

side question: Label media = yes or no? I want the volume to keep it's
name, but to be recycled - does that include 're-labeling' now?


and here is the storage part of bacula-dir.conf
[ passwords grepped out, and the host name is in /etc/hosts, no issues there. ]
Storage {
  Name = FileStorage00
# Do not use "localhost" here
  Address = bc00-sd00               # N.B. Use a fully qualified name here
  SDPort = 9103
  Device = FileStorage00
  Media Type = File
}

Storage {
  Name = FileStorage01
# Do not use "localhost" here
  Address = bc00-sd00               # N.B. Use a fully qualified name here
  SDPort = 9103
  Device = FileStorage01
  Media Type = File
}

I *think* that my bacula-dir.conf is what's in error, but i'm not sure. :)

My default Job looks like this:

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = bc00-dir-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = FileStorage00
  Messages = Standard
  Pool = Default
  Priority = 10
}

It was giving me angry errors when i uncommented the Storage, this is
where another problem of understanding comes in.


*status storage
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: FileStorage00
     2: FileStorage01
     3: FileStorage02
Select Storage resource (1-3): 1
Connecting to Storage daemon FileStorage00 at bc00-sd00:9103

bc00-sd00 Version: 2.0.0 (04 January 2007) i686-pc-linux-gnu redhat (Zod)
Daemon started 13-Apr-07 09:36, 4 Jobs run since started.
 Heap: bytes=219,846 max_bytes=287,417 bufs=91 max_bufs=111

Running Jobs:
No Jobs running.
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
    16  Full      1,982    85.06 M  OK       22-Feb-07 19:03 bc01-dir
    21  Full      1,729    61.27 M  Error    24-Feb-07 03:38 bc00-dir
    22  Full      1,984    86.22 M  OK       24-Feb-07 03:46 bc00-dir
    23  Incr         31    17.66 M  OK       24-Feb-07 04:17 bc00-dir
    24  Incr          0         0   Error    24-Feb-07 23:05 bc00-dir
    25  Full          1    319.7 K  OK       24-Feb-07 23:10 BackupCatalog
    35  Incr          0         0   Error    13-Apr-07 09:39 egal
    36  Incr        260    6.940 M  OK       13-Apr-07 09:41 egal
    37  Full          0         0   Error    13-Apr-07 10:17 bc00-dir
    38  Full          0         0   Error    13-Apr-07 10:19 bc00-dir
====

Device status:
Device "FileStorage00" (/mnt/new/bacula/storage/00) is not open.
Device "FileStorage01" (/mnt/new/bacula/storage/01) is not open.
Device "FileStorage02" (/mnt/new/bacula/storage/02) is not open.
====



As the sd spills out status for all devices i assume i probably only
need one reference in bacula-dir.conf, or does it just not restrict
it's reply to the queried device?
(i wish i knew that!)

Can I achieve a state where bacula will pick an available device, as
long as it's in the right pool?
(I guess yes *g*)

Well, now.... any hints? :)

Florian


p.s.:
these are the last stitches for the bacula-related part of the bacula
cluster howto; there's a few gaps that will be filled once i build the
full setup once, tear it down and rebuilt it successfully.
i plan to complete it by end of this month - if you want to check it
out, have a look at
http://linuxlab.wordpress.com/2007/02/22/bacula-cluster-howto/


-- 
'Sie brauchen sich um Ihre Zukunft keine Gedanken zu machen'

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to