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
I'm not sure if I understood you correctly.
I use the device IDs instead of device names in my config files, just to be on the safe side in case something changes. The IDs I use are pointing to the correct devices (/dev/nst0, /dev/nst1 and /dev/sg2). They are all connected via SCSI.
After the addition of the address and password in the storage section and the auto changer option the tape library recognises the tapes correctly.