Dea Bareos users.
I want to use (if possible) multiple disk filesystems for Storage. I
understand that it's possible to do this by making each filesystem its own
Device and giving each it's own name.. then I can manually divide jobs among
storage. But I was wondering if I can assign multiple devices to the same
Storage or same Pool and have Bareos automatically find an available volume on
any device and use it...
I searched previous questions and found this email quoted below from several
years ago, showing that Bareos will select the first device with free space.
But it causes problems when trying to restore...
Has any work been done on this in the last few years to make this work better?
Ideally I want bareos to just full up all my disks with volumes and use them as
needed and as available and keep track of what was stored where... but if that
is not possible then we are looking at using ZFS to make one huge device. But
ideally we would prefer not to.
Thanks
Ben
On Wednesday, December 4, 2013 at 3:20:44 AM UTC-5, Marco Weiß wrote:
> Hi Philipp,
>
> thanks a lot for that link but i think it will not fit.
> Hope i understand it the right way, with that feature you have to decide
> manually which Job uses which Poll with your Label/with/slashes to spread the
> volumes to different directories furthermore?
>
> So you don't need soft links any more but you have to manage where which
> volume resides manually or?
>
> I'm trying to create a configuration that will do that for me.
> Today i think it can be done by a configuration like this.
> With that configuration i have a "Pool" that Bareos will use to get a new
> "Volume" it is using on of the "Device" referenced in the "Storage" section.
> And the first half of the "Device" will write to the first path and the
> second half will write in the second path.
> Because i have two "RestoreStorage" devices defined, each for its "Archive
> Device" path it should be possible to get the volumes for a restore.
> Now the question is what happen if the smaller storage on the first path runs
> out of space? Will Bareos use new volumes from all devices with the second
> path and the storage that has free space?
>
> bareos-dir.conf
>
> Pool {
> Name = DefaultPool
> Pool Type = Backup
> AutoPrune = yes
> Volume Retention = 93 days
> Volume Use Duration = 21h
> Recycle = yes
> LabelFormat = "Vol"
> Storage = FileStorage
> Action On Purge = Truncate
> NextPool = DefaultPool
> }
>
> Storage {
> Name = FileStorage
> Address = servername.domain.tld
> Password = "my secret"
> Media Type = File
> Device = FileStorage1-1
> Device = FileStorage1-2
> Device = FileStorage2-1
> Device = FileStorage2-2
> Maximum Concurrent Jobs = 100
> Heartbeat Interval = 30
> }
>
> bareos-sd.conf
>
> Device {
> Name = RestoreStorage1
> Archive Device = /opt/backup/FileStorage1
> Device Type = File
> Media Type = File
> Maximum Concurrent Jobs = 10
> AlwaysOpen = no;
> RemovableMedia = No;
> Random Access = Yes;
> LabelMedia = yes;
> AutomaticMount = yes;
> }
>
> Device {
> Name = FileStorage1-1
> Archive Device = /opt/backup/FileStorage1
> Device Type = File
> Media Type = File
> LabelMedia = yes;
> Random Access = Yes;
> AutomaticMount = yes;
> RemovableMedia = no;
> Maximum Concurrent Jobs = 10
> AlwaysOpen = no;
> }
>
> Device {
> Name = FileStorage1-2
> Archive Device = /opt/backup/FileStorage1
> Device Type = File
> Media Type = File
> LabelMedia = yes;
> Random Access = Yes;
> AutomaticMount = yes;
> RemovableMedia = no;
> Maximum Concurrent Jobs = 10
> AlwaysOpen = no;
> }
>
> Device {
> Name = RestoreStorage2
> Archive Device = /opt/backup/FileStorage2
> Device Type = File
> Media Type = File
> Maximum Concurrent Jobs = 10
> AlwaysOpen = no;
> RemovableMedia = No;
> Random Access = Yes;
> LabelMedia = yes;
> AutomaticMount = yes;
> }
>
> Device {
> Name = FileStorage2-1
> Archive Device = /opt/backup/FileStorage2
> Device Type = File
> Media Type = File
> LabelMedia = yes;
> Random Access = Yes;
> AutomaticMount = yes;
> RemovableMedia = no;
> Maximum Concurrent Jobs = 10
> AlwaysOpen = no;
> }
>
> Device {
> Name = FileStorage2-2
> Archive Device = /opt/backup/FileStorage2
> Device Type = File
> Media Type = File
> LabelMedia = yes;
> Random Access = Yes;
> AutomaticMount = yes;
> RemovableMedia = no;
> Maximum Concurrent Jobs = 10
> AlwaysOpen = no;
> }
--
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.