Hi, 14.08.2009 19:26, Dan Langille wrote: > On Fri, August 14, 2009 12:23 pm, John Drescher wrote: >> On Fri, Aug 14, 2009 at 12:01 PM, Dan Langille<d...@langille.org> wrote: >>> On Fri, August 14, 2009 11:39 am, Dan Langille wrote: >>>> On Fri, August 14, 2009 11:13 am, Dan Langille wrote: >>>>> Changing the subject, given the change in subject. :) >>>>> >>>>> On Thu, August 13, 2009 3:14 pm, John Drescher wrote: >>>>>> On Thu, Aug 13, 2009 at 3:09 PM, John Drescher<dresche...@gmail.com> >>>>>> wrote: >>>>>>> On Thu, Aug 13, 2009 at 2:45 PM, Dan Langille<d...@langille.org> >>>>>>> wrote: >>>>>>>> On Thu, August 13, 2009 2:27 pm, Dan Langille wrote: >>>>>>>>> On Thu, August 13, 2009 1:19 pm, Dan Langille wrote: >>>>>>>>>> I am setting up a new autochanger / tape drive. I'm trying to >>>>>>>>>> run >>>>>>>>>> btape. >>>>>>>>>> The basic test works, but I see this message when I start btape: >>>>>>>>>> >>>>>>>>>> Autochanger "loaded? drive 0", result: nothing loaded. >>>>>>>>>> >>>>>>>>>> mtx-changer [and mtx] both disagree with this: >>>>>>>>>> >>>>>>>>>> $ sudo /etc/bacula/mtx-changer /dev/sg4 loaded 0 /dev/nst0 0 >>>>>>>>>> AAM240L4 >>>>>>>>> That is a problem. You don't want the label. You want the slt it >>>>>>>>> came >>>>>>>>> from. See >>>>>>>>> http://www.bacula.org/en/dev-manual/Autochanger_Resource.html#SECTION0017130000000000000000 >>>>>>>>> >>>>>>>>> loaded -- returns number of the slot that is loaded, base 1, >>>>>>>>> in the drive or 0 if the drive is empty. ... > Status now shows: > > [dlangi...@backup01 bacula]$ sudo /sbin/mtx -f /dev/sg4 status > Storage Changer /dev/sg4:1 Drives, 38 Slots ( 36 Import/Export ) > Data Transfer Element 0:Full (Unknown Storage Element Loaded):VolumeTag = > AAM241L4 > Storage Element 1:Full :VolumeTag=AAM274L4 > Storage Element 2:Full :VolumeTag=AAM275L4 > Storage Element 3 IMPORT/EXPORT:Full :VolumeTag=AAM242L4 > Storage Element 4 IMPORT/EXPORT:Full :VolumeTag=AAM265L4 > Storage Element 5 IMPORT/EXPORT:Empty > > > With the dreaded Unknown.
So it's right where you started? :-) I guess you'll have to track the slot numbers yourself, as the library simply doesn't do that for I/O-slots. (Which slots or magazines are used for im/export can probably be configured, but I assume that you want them as import/export slots so your operators can easily swap tapes.) Actually, all the information you need is already in the catalog, you've just got to modify mtx-changer to look the slot numbers up in the catalog, and when doing the listing, you need to ensure the I/O-slots are considered. I'm planning something similar for a customer who probably needs to use all the slots they have soon, but they are not there yet... Cheers, Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users