Добрый день. Настраиваю Bareos для Бэкапов на ленточное хранилище. На одном приводе все работает.
*label barcodes storage=Tape slot=14 pool=Scratch Select Drive: 1: Drive 0 2: Drive 1 Select drive (1-2): 2 Connecting to Storage daemon Tape at sadm-bos-01:9103 … 3306 Issuing autochanger «list» command. The following Volumes will be labeled: Slot Volume
14 004948L5 Do you want to label these Volumes? (yes|no): yes Connecting to Storage daemon Tape at sadm-bos-01:9103 … Sending label command for Volume «004948L5» Slot 14 … 3304 Issuing autochanger «load slot 14, drive 1» command. 3305 Autochanger «load slot 14, drive 1», status is OK. stored/block.cc:301 Volume data error at 0:0! Wanted ID: «BB02», got «HP O». Buffer discarded. 3000 OK label. VolBytes=64512 Volume=«004948L5» Device=«Drive1» (/dev/tape/by-id/scsi-3500143801257d6a9-nst) Catalog record for Volume «004948L5», Slot 14 successfully created.
Когда выбираю второй привод то пишет
*label barcodes storage=Tape slot=9 pool=Scratch Select Drive: 1: Drive 0 2: Drive 1 Select drive (1-2): 1 Connecting to Storage daemon Tape at sadm-bos-01:9103 … 3306 Issuing autochanger «list» command. The following Volumes will be labeled: Slot Volume
9 ALF108L5 Do you want to label these Volumes? (yes|no): yes Connecting to Storage daemon Tape at sadm-bos-01:9103 … Sending label command for Volume «ALF108L5» Slot 9 … 3304 Issuing autochanger «load slot 9, drive 0» command. 3992 Bad autochanger «load slot 9, drive 0»: ERR=Child died from signal 15: Termination. Results=Program killed by BAREOS (timeout)
В чем может быть проблема? Куда копать?
tape-drive-0.conf
Device {
Name = Drive 0
DeviceType = tape
# default:0, only required if the autoloader have multiple drives.
DriveIndex = 0
# if only one drive is available, this is normally /dev/nst0.
# However, it is advised to access it via id (/dev/tape/by-id/...).
# ArchiveDevice = /dev/sg3
ArchiveDevice = /dev/tape/by-id/scsi-3500143801257d6ac-nst
# ArchiveDevice = /dev/tape/by-id/scsi-350011d00018a5f03-nst
# arbitrary string that descripes the the storage media.
# Bareos uses this to determine, which device can be handle what media.
MediaType = LTO-5
# enable "Check Labels" if tapes with ANSI/IBM labels
# should be preserved
# Check Labels = yes
AutoChanger = yes # default: no
AutomaticMount = yes # default: no
MaximumFileSize = 100GB # default: 1000000000 (1GB)
AlwaysOpen = yes
}
Device {
Name = Drive 1
DeviceType = tape
# default:0, only required if the autoloader have multiple drives.
DriveIndex = 1
# if only one drive is available, this is normally /dev/nst0.
# However, it is advised to access it via id (/dev/tape/by-id/...).
# ArchiveDevice = /dev/sg5
ArchiveDevice = /dev/tape/by-id/scsi-3500143801257d6a9-nst
# ArchiveDevice = /dev/tape/by-id/scsi-350011d00018a5f03-nst
# arbitrary string that descripes the the storage media.
# Bareos uses this to determine, which device can be handle what media.
MediaType = LTO-5
# enable "Check Labels" if tapes with ANSI/IBM labels
# should be preserved
# Check Labels = yes
AutoChanger = yes # default: no
AutomaticMount = yes # default: no
MaximumFileSize = 100GB # default: 1000000000 (1GB)
AlwaysOpen = yes
}
autochanger-0.conf
Autochanger { Name = «MSL_G3_Series»
adapt this, to match your storage loader
Changer Device = /dev/sg4
an Autochanger can contain multiple drive devices
Device = Drive 0, Drive 1 Changer Command = «/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d» }