On 4/22/2010 4:03 AM, [email protected] wrote: > I'm trying "label barcodes" on a changer. bacula 5.0.1, mtx 1.3.12, > Solaris 9. This is what happens: > > *label barcodes > Automatically selected Catalog: MyCatalog > Using Catalog "MyCatalog" > Automatically selected Storage: LTO-3-changer > Connecting to Storage daemon LTO-3-changer at nm-admin-1-back:9103 ... > 3306 Issuing autochanger "slots" command. > Device "LTO-3-changer" has 38 slots. > Connecting to Storage daemon LTO-3-changer at nm-admin-1-back:9103 ... > 3306 Issuing autochanger "list" command. > Invalid Slot number: /etc/bacula/mtx-changer: mktemp: not found
There's a problem. I think it's with your autochanger script. I suggest testing that to confirm it works. There is documentation on that. I also wrote up how I tested mine: http://www.freebsddiary.org/tape-library.php See below. > Illegal character "=" in a volume name. > Invalid Volume name: 1:Full:VolumeTag=000200L3 > Illegal character "=" in a volume name. > Invalid Volume name: 2:Full:VolumeTag=000201L3 > Illegal character "=" in a volume name. > Invalid Volume name: 3:Full:VolumeTag=000202L3 > Illegal character "=" in a volume name. > Invalid Volume name: 4:Full:VolumeTag=000203L3 > Illegal character "=" in a volume name. > Invalid Volume name: 5:Full:VolumeTag=000204L3 > Illegal character "=" in a volume name. > ... > No Volumes found to label, or no barcodes. > > The mktemp thing seems like a red herring; mtx-changer has a > workaround for that. So the problem seems to be with the "Illegal > character" message. > > The changer is defined like so: > > Autochanger { > Name = LTO-3-changer > Device = LTO-3-0 > Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" It is /etc/bacula/mtx-changer which you may need to customize. I suggest moving it to another location and modifying it there. See the URL pasted above for how I did this. > Changer Device = /dev/changer > } > > Device { > Name = LTO-3-0 > Media Type = LTO-3 > Archive Device = /dev/rmt/0cbn > AutomaticMount = yes; # when device opened, read it > Drive Index = 0 > AutoChanger = yes > AlwaysOpen = yes; > RemovableMedia = yes; > RandomAccess = no; > Maximum File Size = 4GB > } > > mtx -f /dev/changer status: > > Storage Changer /dev/changer:1 Drives, 38 Slots ( 0 Import/Export ) > Data Transfer Element 0:Empty > Storage Element 1:Full :VolumeTag=000200L3 > Storage Element 2:Full :VolumeTag=000201L3 > Storage Element 3:Full :VolumeTag=000202L3 > Storage Element 4:Full :VolumeTag=000203L3 > ... > > mtx -f /dev/changer inquiry: > > Product Type: Medium Changer > Vendor ID: 'QUANTUM ' > Product ID: 'PX500 ' > Revision: '001A' > Attached Changer API: No > > The autochanger seems to be working OK in bacula other than with the > barcodes, i.e. I could label the media in each slot manually. I poked > around in mtx-changer and found that it already had some handling for > VolumeTag=, which wasn't working. On Solaris, the default sed is > often a bad one, so I stuck the following earlier in the script: > > PATH=/usr/xpg4/bin:$PATH > > Seems to now be working. > > Not sure whether to report to bacula-users, bacula-devel, or file a > bug report. > > Thanks! > > - Morty > > ------------------------------------------------------------------------------ > _______________________________________________ > Bacula-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bacula-devel -- Dan Langille - http://langille.org/ ------------------------------------------------------------------------------ _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
