On 05/10/16 02:14 PM, Jon Archer wrote: > Hi All, > > New to BareOS and so far I'm liking it. > > I've just setup a basic install, and am now trying to expand it to utilise > Gluster volumes as targets. > > I've followed the documentation here: > https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Bareos/ > > But seem to be hitting problems. > > /etc/bareos/bareos-sd.d/device-gluster.conf contains: > Device { > Name = GlusterStorage > Archive Device = "Gluster Device" > Device Options = "uri=gluster://ddvbkg01/bkg1/bareos" > Device Type = gfapi > Media Type = GlusterFile > Label Media = yes > Random Access = yes > Automatic Mount = yes > Removable Media = no > Always Open = no > } > > I've added the @/etc/bareos/bareos-sd.d/device-gluster.conf line to > /etc/bareos-sd.conf > > but when i change the default job (or create a new job and specify) > Storage = GlusterFile > and reload I get the following error in the log: > > Config error: Could not find config Resource "Storage" referenced on line 104 > : Storage = GlusterFile > > Any ideas? You are probably missing the fact that you need to tell the DIR in bareos-dir.conf that it has a extra device named GlusterStorage. e.g. something like
# # Definition of gluster storage device # Storage { Name = GlusterFile # Do not use "localhost" here Address = @hostname@ # N.B. Use a fully qualified name here Password = "@sd_password@" Device = GlusterStorage Media Type = GlusterFile } The director doesn't poll the SD for devices available. The idea is that you don't want to get all daemons speaking to each other on a restart and having external config sources. The above is the same as the normal FileStorage one but with the right name for the new Gluster Storage Device on the SD and the right Media Type which needs to be different then for the other device otherwise the DIR thinks he can access Gluster volumes via the File Device and the other way around. You can check if you did the config right by issuing a 'status storage=GlusterFile' in the bconsole when the director starts up. -- Marco van Wieringen marco.van.wierin...@bareos.com Bareos GmbH & Co. KG Phone: +49-221-63069389 http://www.bareos.com Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens, P. Storz, M. v. Wieringen -- 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 post to this group, send email to bareos-users@googlegroups.com. For more options, visit https://groups.google.com/d/optout.