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:
>sudo mtx -f /dev/library_pv-124t status Storage Changer /dev/library_pv-124t:1 Drives, 16 Slots ( 0 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Empty Storage Element 2:Full :VolumeTag=MN1015L5 Storage Element 3:Full :VolumeTag=MN1005L5 Storage Element 4:Full :VolumeTag=MN1013L5 Storage Element 5:Full :VolumeTag=MN1014L5 Storage Element 6:Full :VolumeTag=MN1010L5 Storage Element 7:Full :VolumeTag=MN1009L5 Storage Element 8:Full :VolumeTag=MN1007L5 Storage Element 9:Full :VolumeTag=MN1008L5 Storage Element 10:Full :VolumeTag=MN1004L5 Storage Element 11:Full :VolumeTag=MN1011L5 Storage Element 12:Full :VolumeTag=MN1012L5 Storage Element 13:Full :VolumeTag=MN1006L5 Storage Element 14:Full :VolumeTag=MN1000L5 Storage Element 15:Empty Storage Element 16:Full :VolumeTag=CLNU00L1 -- Research Scientist Raytheon BBN Technologies 5775 Wayzata Blvd, Ste 630 Saint Louis Park, MN, 55416 Office: 952-545-5720 ________________________________ From: bareos-users@googlegroups.com <bareos-users@googlegroups.com> on behalf of Viswanathan R <visw...@gmail.com> Sent: Thursday, June 15, 2017 5:14:28 AM To: bareos-users Cc: visw...@gmail.com Subject: Re: [bareos-users] configuring tape device in bareos On Wednesday, June 14, 2017 at 7:15:38 PM UTC+5:30, Jon SCHEWE wrote: > 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: bareos...@googlegroups.com <bareos...@googlegroups.com> on behalf of > Viswanathan R <vis...@gmail.com> > > 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 bareos-users...@googlegroups.com. > > To post to this group, send email to bareos...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. Hi, I am not getting any output on that command. Regards, 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 bareos-users+unsubscr...@googlegroups.com. To post to this group, send email to bareos-users@googlegroups.com. 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 bareos-users+unsubscr...@googlegroups.com. To post to this group, send email to bareos-users@googlegroups.com. For more options, visit https://groups.google.com/d/optout.