Thanks a lot. it works.

________________________________
From: Bill Arlofski via Bacula-users <bacula-users@lists.sourceforge.net>
Sent: Monday, December 12, 2022 8:34 PM
To: bacula-users@lists.sourceforge.net <bacula-users@lists.sourceforge.net>
Subject: Re: [Bacula-users] Two Autochangers

On 12/12/22 05:55, Mansoor Hafeez wrote:
> Do you have any sample configuration file of SD where two Autochangers are 
> defined? I have tried two three different
> configurations but they didn't work.
>
> Regards,
> Mansoor

Hello Mansoor,

The default bacula-sd.conf file ships with at least two different (File) 
Autochangers:

`File1` and `File2`

Doing the same with tapes and/or tape libraries is no different:

- Create two new Storages/Autochangers in the Director config, both pointing to 
the same "Address = (IP or FQDN)" of the SD
server.

- Set a different `Device =` in each of those new Director Storage/Autochanger 
resources to point to a different
`Autochanger` resource in the bacula-sd.conf file

- Set a different `MediaType =` in each of those Director Storage/Autochanger 
resources. The MediaType  in each be unique and
must match each of the Devices in the Autochanger on the SD.



On the SD:

- Create two Autochangers matching the names of the Di
rector Storage/Autochangers's `Device =` is pointing to

- Create new Device (tape drive) Resources for each of the drives in the 
libraries

- In each Autochanger resource config, set the appropriate `Device =` listing 
to associate the library with the drives
residing in it.

- For each Device (tape drive) resource, make sure it has the correct 
`MediaType =` to match the Director's
Storage/Autochanger `MediaType =` which points to the SD Autochanger that the 
Drive(s) reside in.  (yeah, say that sentence
three times fast... :)

- Reload the Director, and restart the SD

- Now, point your Jobs to either Storage and the one SD will manage both.


If you have trouble, follow what I wrote above while looking at the File1 or 
File2 Storages and just follow those settings as
a template along with my instructions.


Hope this helps,
Bill

--
Bill Arlofski
w...@protonmail.com

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to