You must make this storage also known to the bareos-director.
The bareos-storage-tape packages comes also with the
/etc/bareos/bareos-dir.d/storage/Tape.conf.example configuration file,
with following contents:

Storage {
  Name = Tape
  Address  = "Replace this by the Bareos Storage Daemon FQDN or IP address"
  Password = "Replace this by the Bareos Storage Daemon director password"
  Device = autochanger-0
  Media Type = LTO
  Auto Changer = yes
}

Just fill Address and Password to the same values as your File Storages
(assuming both are on the same storage daemon), reload the configuration
and it should work.


On 12.07.2017 at 15:21 wrote Paul Jähne:
> Hello,
> 
> I have a basically working BareOS installation. The test backup from section 
> 6 of the manual works.
> 
> I now want to add tape storage to BareOS but it isn't showing up, e.g. in the 
> WebGUI I only see the default file storage.
> 
> The package bareos-storage-tape is installed. Here is the configuration I 
> added:
> 
> /etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf:
> 
> ```
> Autochanger {
>   Name = "autochanger-0"
>   Changer Device = /dev/tape/by-id/scsi-1QUANTUM_D1H0332614_LLA
>   Device = tapedrive-0
>   Device = tapedrive-1
>   Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
> }
> ```
> 
> /etc/bareos/bareos-sd.d/device/tapedrive-0.conf:
> 
> ```
> Device {
>     Name = "tapedrive-0"
>     DeviceType = tape
>     DriveIndex = 0
>     ArchiveDevice = /dev/tape/by-id/scsi-3500308c38e0c9000-nst
>     MediaType = LTO
>     Check Labels = yes
>     AutoChanger = yes                       # default: no
>     AutomaticMount = yes                    # default: no
>     MaximumFileSize = 10GB                  # default: 1000000000 (1GB)
> }
> ```
> 
> /etc/bareos/bareos-sd.d/device/tapedrive-1.conf:
> 
> ```
> Device {
>     Name = "tapedrive-1"
>     DeviceType = tape
>     DriveIndex = 1
>     ArchiveDevice = /dev/tape/by-id/scsi-3500308c38e0c9004-nst
>     MediaType = LTO
>     Check Labels = yes
>     AutoChanger = yes                       # default: no
>     AutomaticMount = yes                    # default: no
>     MaximumFileSize = 10GB                  # default: 1000000000 (1GB)
> }
> ```
> 
> Afterwards I restarted the bareos-sd service.
> 
> The tape library is recognised by the OS and can be used, e. g. running the 
> mtx-changer script works:
> 
> ```
> sudo /usr/lib/bareos/scripts/mtx-changer 
> /dev/tape/by-id/scsi-1QUANTUM_D1H0332614_LLA list
> 1:000310
> ...
> ```
> 
> Can someone spot what is wrong or missing to get the tape library to show up 
> in BareOS?
> 
> Environement: Ubuntu Server 16.04 with BareOS 16.2.4.
> 
> Regards
> 
> Paul
> 


-- 
 Jörg Steffens                   [email protected]
 Bareos GmbH & Co. KG            Phone: +49 221 630693-91
 http://www.bareos.com           Fax:   +49 221 630693-10

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Komplementär: Bareos Verwaltungs-GmbH
 Geschäftsführer:
 S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

-- 
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 [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to