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 ________________________________ From: [email protected] <[email protected]> on behalf of Viswanathan R <[email protected]> Sent: Wednesday, June 14, 2017 7:03:05 AM To: bareos-users Subject: [bareos-users] configuring tape device in bareos Hi, I am trying to configure an IBM tape library in bareos but it couldn't use the tape drives while triggering backup. I am getting the below error while running "update slots" cmd in bconsole. *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 -- 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. -- 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.
