Hi,

We have an old bacula setup with a single tape drive as part of an
autochanger, which holds three different pools for incremental,
differential and full backups. On restore, the correct tape is correctly
extracted from the database then mounted from the correct pool on our
single tape drive.

I'd like to replicate such functionnality on hard disks and a newer
release of bacula (2.4.4-1 under Debian Lenny, AMD64 architecture,
PostgreSQL backend).

During backups, all my pools and volumes are used as needed.

But during restore, what happens is that only volumes configured as
being part of the pool defined for the "RestoreFiles" job are
automatically mounted, and bacula waits for us to manually mount the
other volumes, which don't seem to be possible since they are file
volumes (i.e. always 'mounted')

Here's the message I've got in the logs :

myclient-dir JobId 29: Start Restore Job RestoreFiles.2009-11-16_10.45.10.03
myclient-dir JobId 29: Using Device "FileStorageFull"
myclient-sd JobId 29: Ready to read from volume "full0007" on device 
"FileStorageFull" (/backups/full/).
myclient-sd JobId 29: Forward spacing Volume "full0007" to file:block 0:202.
myclient-sd JobId 29: End of Volume at file 0 on device "FileStorageFull" 
(/backups/full/), Volume "full0007"
myclient-sd JobId 29: Warning: acquire.c:221 Read open device
"FileStorageFull" (/backups/full/) Volume "differential0009" failed:
 ERR=dev.c:490 Could not open: /backups/full/differential0009, ERR=No
 such file or directory

myclient-sd JobId 29: Please mount Volume "differential0009" for:
    Job:          RestoreFiles.2009-11-16_10.45.10.03
    Storage:      "FileStorageFull" (/backups/full/)
    Pool:         FullPool
    Media type:   File

As you can see bacula searches for volume differential0009 in
/backups/full instead of in /backups/differential, but my configuration
is as follows :

--- extracted from bacula-sd.conf ---
Device {
  Name = FileStorageFull
  Media Type = File
  Archive Device = /backups/full/
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = FileStorageDifferential
  Media Type = File
  Archive Device = /backups/differential/
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = FileStorageIncremental
  Media Type = File
  Archive Device = /backups/incremental/
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}
--- end of bacula-sd.conf ---

--- extracted from bacula-dir.conf ---
Storage {
  Name = FileFull
  Address = myclient.example.org
  SDPort = 9103
  Password = "yyy"
  Device = FileStorageFull
  Media Type = File
}

Storage {
  Name = FileDifferential
  Address = myclient.example.org
  SDPort = 9103
  Password = "yyy"
  Device = FileStorageDifferential
  Media Type = File
}

Storage {
  Name = FileIncremental
  Address = myclient.example.org
  SDPort = 9103
  Password = "yyy"
  Device = FileStorageIncremental
  Media Type = File
}

Pool {
  Name = FullPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 70 days
  Maximum Volume Bytes = 33554432
  LabelFormat = "full"
  Storage = FileFull
  Catalog Files = yes
}

Pool {
  Name = DifferentialPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 60 days
  Maximum Volume Bytes = 33554432
  LabelFormat = "differential"
  Storage = FileDifferential
  Catalog Files = yes
}

Pool {
  Name = IncrementalPool
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 16 days
  Maximum Volume Bytes = 33554432
  LabelFormat = "incremental"
  Storage = FileIncremental
  Catalog Files = yes
}

Job {
  Name = "RestoreFiles"
  Type = Restore
  Client = MyClient-fd
  Messages = Standard
  Where = /backups/restore
  FileSet="FullUnixSet"
  Pool = FullPool
}

Client {
  Name = MyClient-fd
  Address = myclient.example.org
  FDPort = 9102
  Catalog = MyCatalog
  Password = "xxx"
  File Retention = 45 days
  Job Retention = 60 days
  AutoPrune = yes
}
--- end of bacula-dir.conf ---

A solution would be for the "RestoreFiles" job to not have to specify
the pool, but this doesn't seem to be possible. Any reason for this ?

Anything wrong in my configuration ?

How to solve this big problem ?

Another small question :

As you can see above, I want to have very small volumes, but LOTS of
them. When labelling them automatically, bacula only uses 4 digits, what
will happen when it will reach 9999 ?

Thanks in advance for your help.

--
Jérôme Alet - <jerome.a...@univ-nc.nc> - Centre de Ressources Informatiques
      Université de la Nouvelle-Calédonie - BPR4 - 98851 NOUMEA CEDEX
   Tél : +687 266754                                  Fax : +687 254829

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to