Hi everyone,

I inherited a bareos system that AFAIK hasn't been set up properly.
Backups and the restoration of small backups (SQL dumps) seems to have worked 
so far.
But I ran into similar errors to the following one a lot when trying Baremetal 
recoveries:

bareos-sd JobId 90377: Warning: stored/acquire.cc:286 Read open device 
"FileStorageFull" (/backup/full) Volume "Differential-0544" failed: 
ERR=stored/dev.cc:716 Could not open: /backup/full/Differential-0544, ERR=File 
or directory not found

The Differential files should be in /backup/differential and not full.
The source of the problem seems to be that we use the same Media type for all 
our Storages/Devices as described here 
(https://groups.google.com/g/bareos-users/c/LPbuPXCFSl0/m/4K6BgJ0XAwAJ):

root@bareos:/etc/bareos# cat bareos-dir.d/storage/File.conf
Storage {
  Name = FileFull
  Address = bareos                # N.B. Use a fully qualified name here (do 
not use "localhost" here).
  Password = "*****"
  Device = FileStorageFull
  Media Type = File
}

Storage {
  Name = FileDiff
  Address = bareos                # N.B. Use a fully qualified name here (do 
not use "localhost" here).
  Password = "*****"
  Device = FileStorageDiff
  Media Type = File
}

Storage {
  Name = FileIncr
  Address = bareos                # N.B. Use a fully qualified name here (do 
not use "localhost" here).
  Password = "*****"
  Device = FileStorageIncr
  Media Type = File
}
...

root@bareos:/etc/bareos# cat bareos-sd.d/device/FileStorage.conf
Device {
  Name = FileStorageFull
  Media Type = File
  Archive Device = /backup/full
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
  Description = "File device. A connecting Director must have the same Name and 
MediaType."
}

Device {
  Name = FileStorageDiff
  Media Type = File
  Archive Device = /backup/diff
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
  Description = "File device. A connecting Director must have the same Name and 
MediaType."
}

Device {
  Name = FileStorageIncr
  Media Type = File
  Archive Device = /backup/incr
  LabelMedia = yes;                   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
  Description = "File device. A connecting Director must have the same Name and 
MediaType."
}

...

I've gathered that the Media Types should be changed to unique identifiers for 
each of Device/Storage entries but I am worried that changing it in a running 
environment will make all the old backups/volumes unusable.

So I'd really appreciate if someone could give me some advice on how to best 
change the Media Types in a running system.
Would probably be best to just configure new storage/devices and use those from 
now on. But maybe there is a way to salvage the old ones.

Please let me know if you got any tips or questions regarding this issue.

Best Regards

Niklas


-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/fc2d8f29b62f46f09cd0fc64afe2f9ab%40softconcis.de.

Reply via email to