|
From: Stefan G. W. <li...@xu...> - 2024-10-11 18:00:41
|
Am 11.10.24 um 19:54 schrieb Stefan G. Weichinger: > Am 11.10.24 um 19:16 schrieb Marcin Haba: >> On Fri, 11 Oct 2024 at 17:23, Stefan G. Weichinger <li...@xu...> >> wrote: >>> Trying to set up an autochanger using a S3-compatible bucket in "the >>> cloud" (in my case at Contabo in germany). >>> >>> Fresh installation of Bacula-15.0.2, Bacularis-4.0.0 on a Debian-12.7 >>> machine. >> >> Hello Stefan, >> >>> Added the packages: bacula-cloud-storage-s3 plus >>> bacula-cloud-storage-common >> >> This is OK. >> >>> Restarted all the daemons. >>> >>> Looked at https://www.youtube.com/watch?v=MRdM2uKlHSI ... I don't get >>> that "Add cloud storage" button to begin with ... >> >> The "Add cloud storage" wizard is a function available since the >> latest Bacularis 4.3.0. Your Bacularis 4.0.0 does not have it. > > ok > >> This is almost correct. You need to change: >> >> ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" >> >> into: >> >> ChangerCommand = "/dev/null" >> >> and restart the storage daemon. > > did that > >>> The changer doesn't show up in bacularis, I add it in the API menu and >>> get things like "/dev/null is not an sg device, or old sg driver". Sure. >> >> To see this autochanger in Bacularis you need to add the Storage >> resource with the Autochanger for that in the Director configuration. > > Sorry, I don't get it right now. pls advise in more detail. I have: > > # sd > > Device { > Name = "CloudStorage1" > MediaType = "cloudS3-media" > DeviceType = "Cloud" > ArchiveDevice = "/tmp" > RemovableMedia = no > RandomAccess = yes > AutomaticMount = yes > LabelMedia = yes > AlwaysOpen = no > MaximumPartSize = 10000000 > Cloud = "contabo-bucket1" > } > Autochanger { > Name = "CloudAutoChanger1" > Device = "CloudStorage1" > ChangerDevice = "/dev/null" > ChangerCommand = "/dev/null" > } > > # dir > > Storage { > Name = "Cloud1" > SdPort = 9103 > Address = "tx100.loc.oops.co.at" > Password = "_swXHSgGzxxxxxxxx0" > MediaType = "cloud1" > Autochanger = "CloudAutoChanger1" > Device = "CloudStorage1" > MaximumConcurrentJobs = 4 > } > > what is wrong, what is missing? > > I lose track here ... getting tired already, sry ;-) I get : # /opt/bacula/bin/bacula-dir -t -u bacula -g bacula bacula-dir: ERROR TERMINATION at dird_conf.c:2346 Config error: Could not find Storage Resource CloudAutoChanger1 referenced on line 82 : Autochanger = "CloudAutoChanger1" : line 82, col 35 of file /opt/bacula/etc/bacula-dir.conf Autochanger = "CloudAutoChanger1" 11-Okt 19:59 bacula-dir: ERROR TERMINATION at dird_conf.c:2346 Config error: Could not find Storage Resource CloudAutoChanger1 referenced on line 82 : Autochanger = "CloudAutoChanger1" : line 82, col 35 of file /opt/bacula/etc/bacula-dir.conf Autochanger = "CloudAutoChanger1" But I don't understand the needed fix, sorry |