-
Dear all, The server has bacula 15.0.2 and bacularis 3.2.1, installed with RPM. The first thing I wanted to do was to setup the tape drive via the web interface but I have a problem. After creating the Tape ,and then the autoloader, the web interface does not display either of the two devices. The bacula-sd.conf is modified correctly. Any ideas ? Has anyone had this problem? What is the correct sequence to add and display a tape in bacularis ? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments
-
Hello @becchett, The process of adding the autoloader to be displayed and managed in the web interface consists of two steps.
The 1) can be done on the Bacularis web interface by adding the appropriate Bacula configuration resources to the Bacula Storage and Bacula Director components. They are: On the Bacula Storage Daemon side they are:
On the Director side:
The
The
Here you can see examples how sample configs could look like: https://www.bacula.org/15.0.x-manuals/en/main/Autochanger_Resource.html Once you configure
Here you can read details about the Storage resource directives: For the device special files, the At this stage, the Devices are ready to use with Bacula and Bacularis. It enables doing many tasks with the autochanger like: label tapes, update slots, mount, umount, release...etc. In the future we are going to automate this process in Bacularis by adding the tape autochanger wizard. Once you will try your Device with Bacula, after you may be interesting adding the mentioned advanced autochanger management ( 2) ) in Bacularis. You can read about it and see it here: https://bacularis.app/doc/brief/configuration.html#autochanger-management Good luck with configuring this autoloader :-) Best regards, |
Beta Was this translation helpful? Give feedback.
-
dear @ganiuszka |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett Yes, it is exactly as you said. On the Director side in the Storage resource we add only the autochanger device. For the second question, it is correct as well. Once you have the autoloader working with Bacula, then you can add both autochanger and drive to Bacularis API panel. Best regards, |
Beta Was this translation helpful? Give feedback.
-
dear @ganiuszka Now inside Storage I see only autochanger : in bacula-sd.conf there is LTO-8 drive section and with bconsole LTO-8 correctly appeare. Inside Storage section I see "manage autochanger" but this feature is currently unavailable: I've already settings API with the same device names maybe I'm make some other errors Best Regards |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett, Well done. You have almost everything :-) On the Storage list page the autochanger is fine. Devices are not listed on this page and it is correct. The For the rest settings, it looks OK. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett, One more thing. If you used Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hi @ganiuszka , Hi all I'm trying to complete this job because I need to start using a new bacula backup system with I've reconfigured everything twice without success ! My scsi devices are seen correctly by linux standard tools: `[root@infn-vm05 enrico]# lsscsi -g [0:1:0:0] disk HP LOGICAL VOLUME 8.00 /dev/sda /dev/sg1 [1:0:0:0] disk HP P2000 G3 FC T252 /dev/sdb /dev/sg2 [1:0:1:0] tape HPE Ultrium 8-SCSI N4Q1 /dev/st0 /dev/sg3 [1:0:1:1] mediumx HP 1x8 G2 AUTOLDR 6.00 /dev/sch0 /dev/sg4 ...omissis... they run on Autochanger and LTO, for example: `[root@infn-vm05 enrico]# mtx -f /dev/sg4 status Storage Changer /dev/sg4:1 Drives, 8 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 7 Loaded):VolumeTag = ADB000L8
and `[root@infn-vm05 enrico]# tar -tvf /dev/st0 -rw-rw---- bacula/apache 1317 2024-09-05 16:12 opt/bacula/etc/bacula-sd.conf` "tar" doesn't work with /dev/sg3 but it doesn't seem to be a problem. After I reconfigure all I'm unable to manage autochanger with bacularis: If you have more time for this case it will be much appreciated ! The following screeshots show configuration of: Storage , Director and Bacularis API: Is there any error ? |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett Thanks for your detailed report. I think that you are close to enable support for autochanger in Bacularis. I noticed only one place where is something wrong. I am attaching screenshot what is to change. Rest looks to be correct. After changing the Please let us know how it went. Good luck. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett One more important thing. Could you tell me if the address that you use in the current API host is the same as storage address:
If not, it will not work and it will behave as on your screenshots. To check it, please go to the:
and in the window, please check if in field:
there is:
If not, you will need to change it to Best regards, |
Beta Was this translation helpful? Give feedback.
-
dear @ganiuszka Now I've changed the "device" name and I see this : Bacularis can manage Autochanger ! After that I check the hostname inside API Host and I see this value: Do I leave it or it must be changed to infn-vm05.management ? I've got just one server for everything: Storage Directory Web. I should now be almost ready to perform my first tape backup Thanks a lot again ! |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett, Great to hear that it started working. Well done, Enrico 😄 If you have the only one Bacularis instance, then this change with Best regards, |
Beta Was this translation helpful? Give feedback.
-
dear @ganiuszka I chose to put everything in a single server to have more performance between directory and storage. I think that in my configuration when the server bacula saves a local directory to tape the data flow remains internal and does not pass through the network or the tcp/ip stack. To make the first backup I have to configure a fileset, a job , the spool, and the first tape. What do you recommend for the tape label? As you saw I have an autoloader with a barcode reader, so I have to add it? Which type is best between: ANSI, IBM or Bacula? I don't want to use the spooling area for this backup because Bacula FD SD and DIRector are on the same server , I hope this doesn't cause any problems. Bye |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett, Sure, having everything on the same host has advantages. I don't see any problem with it too. For the Label Type, I would propose to not set this directive at all. It is specific directive that I have never heard that anybody needed to change it. If not set, the default value is 'Bacula' and it work well with tapes managed by Bacula. For labeling tapes, it is possible to do in two places:
or
Before labeling there is needed to prepare tapes. You will need to manually load each tape to tape drive and then run:
If your tapes are new, probably you will not need to do it at all. The key here is to write the Please make sure that this drive at the moment of preparing tapes is unmounted in Bacula Storage daemon. Othewrise you will see a message in mt that the device is busy. After having all tapes prepares, you can choose label with barcodes option in the label volumes window. Best regards, |
Beta Was this translation helpful? Give feedback.
-
dear @ganiuszka
Log from Bacula:
Details from Tar run:
What can I do to improve the writing speed? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett Since a couple of years I have not been using physical tape devices, but I will try to advise something. I remember that you mentioned, you don't want to use data spooling because your Bacula components are on the same host. Despite this, I would propose to enable it ( For Good luck with improving the performance. Please let us know what you were able to achieve in this matter. Best regards, |
Beta Was this translation helpful? Give feedback.
-
dear @ganiuszka I've never use MinimumBlockSize. Does the difference between Tar and Bacula depend from hardware compression or not ? Best Regards |
Beta Was this translation helpful? Give feedback.
-
Hello @becchett, OK, thanks for sharing with us your best settings. In Bacula the software compression is possible to configure in For "shoe-shine" it is not something to check directly. It is just effect when tape goes many times back and forth through the the tape drive head and becomes worn. Without continues write with data spooling, the drive can stop/start and do positioning much often. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Aaa, you wrote about hardware compression. This compression for Bacula is transparent, I think. |
Beta Was this translation helpful? Give feedback.
Hello @becchett,
The process of adding the autoloader to be displayed and managed in the web interface consists of two steps.
The 1) can be done on the Bacularis web interface by adding the appropriate Bacula configuration resources to the Bacula Storage and Bacula Director components. They are:
On the Bacula Storage Daemon side they are:
Device
resource for each tape driveAutochanger
resource for the changer deviceOn the Director side:
Storage
resource with connection parameters to thisAutochanger
The
Device
resources you can create in Bacularis in the path: