*update slots
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: Tape
Connecting to Storage daemon Tape at bc2cmk108.in.ibm.com:9103 ...
3998 Device ""3583-changer" (/dev/tape/by-id/scsi-1IBM_03584L32_0000078267420401)" is not an autochanger.
Device "3583-changer" has 0 slots.
No slots in changer to scan.
*label barcodes storage=Tape
Connecting to Storage daemon Tape at bc2cmk108.in.ibm.com:9103 ...
3998 Device ""3583-changer" (/dev/tape/by-id/scsi-1IBM_03584L32_0000078267420401)" is not an autochanger.
Select Drive:
Selection list for "Drive" is empty!
Connecting to Storage daemon Tape at bc2cmk108.in.ibm.com:9103 ...
3998 Device ""3583-changer" (/dev/tape/by-id/scsi-1IBM_03584L32_0000078267420401)" is not an autochanger.
Device "3583-changer" has 0 slots.
No slots in changer to scan.
But "btape" cmd is able to identify the drive and medium changer. The configuration info is as below.
/etc/bareos/bareos-dir.d/storage/Tape.conf (tape device conf file)
Storage {
Name = Tape
Address = server.com # N.B. Use a fully qualified name here (do not use "localhost" here).
Password = "KaqAI1Un4lXK4WOXpfUr1RV5l5Irmqxj9Q+DXL9N+Qcf"
Device = 3583-changer
Media Type = LTO
AutoChanger = yes
}
/etc/bareos/bareos-sd.d/autochanger/autochanger.conf (bareos sd conf file)
Autochanger {
Name = 3583-changer
Changer Device = /dev/tape/by-id/scsi-1IBM_03584L32_0000078267420401
Device = Drive1
Changer Command = "/usr/lib/bareos/scripts/mtx-changer %c %o %S %a %d"
}
Device {
Name = Drive1
Drive Index = 0
Media Type = LTO
Archive Device = /dev/tape/by-id/scsi-350050760440b5801-nst
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Maximum File Size = 3GB
AutoChanger = yes
Label Media = yes
}
/etc/bareos/bareos-sd.d/device/3583-changer.conf (device conf file)
Device {
Name = "3583-changer"
DeviceType = tape
# default:0, only required if the autoloader have multiple drives.
# 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/tape/by-id/scsi-1IBM_03584L32_0000078267420401
#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
# enable "Check Labels" if tapes with ANSI/IBM labels
# should be preserved
Check Labels = yes
AutoChanger = yes # default: no
AutomaticMount = yes # default: no
MaximumFileSize = 10GB # default: 1000000000 (1GB)
Label Media = yes
}
Please help me where am I going wrong. Let me know if you need any more information.
Thanks,
Viswa
What do you get from the following command?
mtx -f /dev/tape/by-id/scsi-1IBM_03584L32_0000078267420401
I've found that it's best to test with mtx and mt as that's what bareos calls to do things.
--
Research Scientist
Raytheon BBN Technologies
5775 Wayzata Blvd, Ste 630
Saint Louis Park, MN, 55416
Office: 952-545-5720
If you don't get any output, then that suggests that you have the wrong device or something is wrong with the changer or how it's connected to the operating system. You should see something like this:
--
Research Scientist
Raytheon BBN Technologies
5775 Wayzata Blvd, Ste 630
Saint Louis Park, MN, 55416
Office: 952-545-5720