Установка пактов
yum install iscsi-initiator-utils
Подключение
iscsiadm -m discovery -t sendtargets -p 172.27.67.150 #IP адрес iscsi инициатора iscsiadm -m node -l
Установка пакетов
yum install -y bareos-storage-tape
/etc/bareos/bareos-sd.d/autochanger/autochanger-0.conf
Autochanger { Name = "autochanger-0" Changer Device = /dev/tape/by-id/scsi-1TANDBERGStorageLoader_AA45JC001732 # adapt this, to match your storage loader # an Autochanger can contain multiple drive devices 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 # default:0, only required if the autoloader have multiple drives. ArchiveDevice = /dev/tape/by-id/scsi-1HP_Ultrium_5-SCSI_C43A400001-nst MediaType = LTO 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-1HP_Ultrium_5-SCSI_C43A400002-nst MediaType = LTO AutoChanger = yes # default: no AutomaticMount = yes # default: no MaximumFileSize = 10GB # default: 1000000000 (1GB) }
/etc/bareos/bareos-dir.d/storage/Tape.conf
Storage { Name = Tape Address = bar-dir001 # N.B. Use a fully qualified name here (do not use "localhost" here). Password = "gh66GvtST3xmf0D95zWZ6VPnFGsuIrpVEQx0Yl2QiG/j" Device = autochanger-0 Media Type = LTO Auto Changer = yes }