jpoa
Dabbler
- Joined
- Oct 7, 2013
- Messages
- 24
Greetings!
Follows my current setup with FreeNAS to get an HP tape writer to work with the Bacula plugin. The end result is what I intended, with all custom options working (you can literally hear the pooling working - no shoe shine on the tape).
This thread is simply to clean place to discuss the configuration and possible optimisations rather than discussing/wondering if it works at all. The documentation results of a request from this thread here.
Admins, I considered putting this in the plugins section but I think it suits better in Storage, if you think otherwise please move it and accept my apologies.
WORD OF CAUTION: Under no circumstances apply the settings here and just move on! Do the tests, check, etc.. Take this guide as what it is, a guide.
That said, let's move on. The documentation is not perfect and I don't always hang around in the forums so you will have to understand a bit of what is going on, but I think this should do the trick for you.
# Bacula SD configuration on FreeNAS
We configure bacula via the web interface and let it start once.
This will create the config files and so on.
Since we are using a tape drive with FreeNAS we want to do some custom configuration to make sure everything is working properly and this has to be done via the cli. The complete configuration file in use is shown in [1] and should be located at the indicated path.
The problem with this approach is that the customised configuration will be overwritten with every start of the plugin, leading Bacula to fail some tests. Please bear in mind that these options are not supported via the bacula plugin UI so you need to do them via CLI and prevent the start script of bacula by IXSystems from overwriting it!
tl:dr; Risk of data loss if you use the bacula plugin with tapes without customisation!
To avoid the Bacula SD plugin on FreeNAS to rewrite the configuration file every time it starts:
Open the shell on the Jail and edit the start script
vi /usr/local/etc/rc.d/ix-bacula-sd
At the end change to match this:
name=ix-bacula-sd
#start_cmd=generate_bacula_sd
start_cmd=':'
stop_cmd=':'
So what we have done is disable the generation of a new bacula_sd file upon start. The complete file can be seen in [2] and should be located in the indicated path.
Also, in order to test btape you need to copy the config file to /usr/pbi/bacula-sd-amd64/etc/bacula/bacula-sd.conf since btape expects it to be there. The complete path from outside the jail is /mnt/<dataSet>/jails/bacula-sd_1/usr/pbi/bacula-sd-amd64/etc/bacula/bacula-sd.conf
[1] bacula-sd.9103.conf
Complete path, from the outside of the jail: /mnt/<dataSet>/jails/bacula-sd_1/usr/pbi/bacula-sd-amd64/etc/bacula-sd.9103.conf
[2] ix-bacula-sd
Complete path, from the outside of the jail: /mnt/<dataSet>/jails/bacula-sd_1/usr/local/etc/rc.d/ix-bacula-sd
Follows my current setup with FreeNAS to get an HP tape writer to work with the Bacula plugin. The end result is what I intended, with all custom options working (you can literally hear the pooling working - no shoe shine on the tape).
This thread is simply to clean place to discuss the configuration and possible optimisations rather than discussing/wondering if it works at all. The documentation results of a request from this thread here.
Admins, I considered putting this in the plugins section but I think it suits better in Storage, if you think otherwise please move it and accept my apologies.
WORD OF CAUTION: Under no circumstances apply the settings here and just move on! Do the tests, check, etc.. Take this guide as what it is, a guide.
That said, let's move on. The documentation is not perfect and I don't always hang around in the forums so you will have to understand a bit of what is going on, but I think this should do the trick for you.
# Bacula SD configuration on FreeNAS
We configure bacula via the web interface and let it start once.
This will create the config files and so on.
Since we are using a tape drive with FreeNAS we want to do some custom configuration to make sure everything is working properly and this has to be done via the cli. The complete configuration file in use is shown in [1] and should be located at the indicated path.
The problem with this approach is that the customised configuration will be overwritten with every start of the plugin, leading Bacula to fail some tests. Please bear in mind that these options are not supported via the bacula plugin UI so you need to do them via CLI and prevent the start script of bacula by IXSystems from overwriting it!
tl:dr; Risk of data loss if you use the bacula plugin with tapes without customisation!
To avoid the Bacula SD plugin on FreeNAS to rewrite the configuration file every time it starts:
Open the shell on the Jail and edit the start script
vi /usr/local/etc/rc.d/ix-bacula-sd
At the end change to match this:
name=ix-bacula-sd
#start_cmd=generate_bacula_sd
start_cmd=':'
stop_cmd=':'
So what we have done is disable the generation of a new bacula_sd file upon start. The complete file can be seen in [2] and should be located in the indicated path.
Also, in order to test btape you need to copy the config file to /usr/pbi/bacula-sd-amd64/etc/bacula/bacula-sd.conf since btape expects it to be there. The complete path from outside the jail is /mnt/<dataSet>/jails/bacula-sd_1/usr/pbi/bacula-sd-amd64/etc/bacula/bacula-sd.conf
[1] bacula-sd.9103.conf
Complete path, from the outside of the jail: /mnt/<dataSet>/jails/bacula-sd_1/usr/pbi/bacula-sd-amd64/etc/bacula-sd.9103.conf
[2] ix-bacula-sd
Complete path, from the outside of the jail: /mnt/<dataSet>/jails/bacula-sd_1/usr/local/etc/rc.d/ix-bacula-sd
Attachments
-
Hestia_Bacula_SD_A.png12 KB · Views: 1,076
-
Hestia_Bacula_SD_B.png14.2 KB · Views: 1,015
-
Hestia_Bacula_SD_C.png11.5 KB · Views: 975
-
Hestia_Bacula_SD_D.png16.6 KB · Views: 899
-
Hestia_Bacula_SD_E.png14.3 KB · Views: 908
-
Hestia_Bacula_SD_F.png16 KB · Views: 856
-
Hestia_Bacula_SD_G.png30.8 KB · Views: 874
-
Hestia_Bacula_SD_H.png16.7 KB · Views: 846
-
Hestia_Bacula_SD_I.png36.6 KB · Views: 882
-
Hestia_Bacula_SD_J.png20.4 KB · Views: 837