Re: barcode reader help (and faq-o-matic-toast?)
On Thu, 13 Jan 2005 at 8:09pm, Will Lowe wrote Thanks! But I was looking for information on what amanda uses the barcode reader in the robot for, and how to make the tapechanger scripts do it -- not on how to print labels. As you label tapes, amanda will populate a file named $CONFIG/CHANGER-barcodes, with a list of tape labels and their corresponding barcodes. Whether or not amanda uses this list, I don't actually know. But it can be very helpful to you at restore time. To get your barcode reader working, install mtx. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: barcode reader help (and faq-o-matic-toast?)
To get your barcode reader working, install mtx. Hmm, and use which changer script? chg-zd-mtx? I've got barcodes set up and mtx seems to find them: Storage Changer /dev/sg1:1 Drives, 23 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 7 Loaded):VolumeTag = 07 Storage Element 1:Full :VolumeTag=01 but the barcodes file I told it to make is empty even after an amtape update run. -- thanks, Will
Re: barcode reader help (and faq-o-matic-toast?)
On Fri, 14 Jan 2005 at 8:39am, Will Lowe wrote To get your barcode reader working, install mtx. Hmm, and use which changer script? chg-zd-mtx? I've got barcodes set up and mtx seems to find them: Yep, that's what I use. Storage Changer /dev/sg1:1 Drives, 23 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 7 Loaded):VolumeTag = 07 Storage Element 1:Full :VolumeTag=01 but the barcodes file I told it to make is empty even after an amtape update run. Hm. Well, the man page says Update the changer label database, if it has one. Did it exist already before running that command? -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: barcode reader help (and faq-o-matic-toast?)
Will Lowe wrote: To get your barcode reader working, install mtx. Hmm, and use which changer script? chg-zd-mtx? That's what I use, and it works fine. Just follow the instructions inside the changer.conf file to get it working. Alex -- Alexander Jolk / BUF Compagnie tel +33-1 42 68 18 28 / fax +33-1 42 68 18 29
Re: barcode reader help (and faq-o-matic-toast?)
(and is the FOM gone for good?) no, it should be back up now. -Todd
Re: Barcode reader
On Sun, 17 Mar 2002, Thomas Hepper wrote: Hi, On Fri, Mar 15, 2002 at 10:48:24AM -0500, Eric Trager wrote: I added this to the chg-scsi-solaris.conf file I use and the chg-scsi [...] ChgExit in MapBarCode, reason MapBarCode, DB Version does not match You should drop the old labelfile and rerun an amtape conf show I did and unfortunately, while the show ran, a labelfile was not created. I also followed John's suggestion and ran an update but with no result. However, I did reset the changer and run ./chg-scsi -label TEMP-00 which was the label of the tape in the drive at the time. I got back 0 0 0 and the labelfile was created with an entry :2:TEMP-00 So I ran a amtape Temp slot next, which loaded the next tape, TEMP-01, and then ran the label command ./chg-scsi -label TEMP-01 and the labelfile changed, but the entry wrote over the first one: :2:TEMP-01 was all that was in the labelfile. I'm not sure what the 2 is, or what the fields are supposed to be. Just to show what the barcodes are like, here is a line from mtx: Storage Element 5:Full :VolumeTag=A4 What do you all think? Should I just throw in the towel? I feel like I'm getting there, but the road is all over the place. - Eric PS: Here are some lines from the debug file on the amtape Temp update command I ran earlier: changer: got exit: 0 str: 1 20 1 0 changer: got exit: 0 str: 1 /dev/rmt/1bn changer_label: TEMP-01 for slot 1 changer: got exit: 0 str: 1 20 1 0 changer_query: changer return was 20 1 0 changer_query: searchable = 0 changer: got exit: 0 str: 2 /dev/rmt/1bn changer_label: TEMP-02 for slot 2 [etc.]
Re: Barcode reader
Hi, On Fri, Mar 15, 2002 at 10:48:24AM -0500, Eric Trager wrote: I added this to the chg-scsi-solaris.conf file I use and the chg-scsi debug files now report that a barcode reader is available, but the labelfile for the configuration remains empty, even after running an amtape Config show. Any ideas on how to close the final gap on getting the mapping to work? Below is a debug file from a recent attempt to perform an amtape Config label LABEL. [...] ChgExit in MapBarCode, reason MapBarCode, DB Version does not match You should drop the old labelfile and rerun an amtape conf show Thomas -- --- | Thomas Hepper[EMAIL PROTECTED] | | ( If the above address fail try ) | | ( [EMAIL PROTECTED])| ---
Re: Barcode reader
On Mon, 11 Mar 2002, Thomas Hepper wrote: Hi, On Fri, Mar 08, 2002 at 11:38:32AM -0800, Stephen Carville wrote: [..] In changer.conf set havereader=1 Hmm i think it must be havebarcode 1 Thomas, et al: I added this to the chg-scsi-solaris.conf file I use and the chg-scsi debug files now report that a barcode reader is available, but the labelfile for the configuration remains empty, even after running an amtape Config show. Any ideas on how to close the final gap on getting the mapping to work? Below is a debug file from a recent attempt to perform an amtape Config label LABEL. TIA, Eric chg-scsi: debug 1 pid 22862 ruid 0 euid 0 start time Mon Mar 11 16:21:29 2002 chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.2 2001/12/30 17:26:22 martinea Exp $ ARG [0] : ./chg-scsi ARG [1] : -label ARG [2] : CMAG-12 Number of configurations: 1 Tapes need eject: Yes Inv. auto update: No barcode reader : Yes Tapes need sleep: 20 seconds Cleancycles : 1000 Changerdevice : /dev/changer Labelfile : /usr/cbel/opt/amanda-2.4.3b2/etc/amanda/Simple/labelfile Tapeconfig Nr: 0 Drivenumber : 0 Startslot : 0 Endslot : 19 Cleanslot : 30 Devicename: /dev/rmt/1bn changerident : none SCSITapedev : none tapeident : none statfile : /usr/cbel/opt/amanda-2.4.3b2/etc/amanda/Simple/tape1-status Slotfile : /usr/cbel/opt/amanda-2.4.3b2/etc/amanda/Simple/tape1-slot Cleanfile : /usr/cbel/opt/amanda-2.4.3b2/etc/amanda/Simple/tape1-clean Usagecount: /usr/cbel/opt/amanda-2.4.3b2/etc/amanda/Simple/totaltime DecodeModeSense : Element Address Assignment Page Medium Transport Element Address 1 Number of Medium Transport Elements 1 First Storage Element Address 256 Number of Storage Elements 30 First Import/Export Element Address 64 Number of ImportExport Elements1 First Data Transfer Element Address 128 Number of Data Transfer Elements 2 DecodeModeSense : MT can store data cartridges 1 DecodeModeSense : ST can store data cartridges 1 DecodeModeSense : IE can store data cartridges 1 DecodeModeSense : DT can store data cartridges 1 DecodeModeSense : MT to MT 0 DecodeModeSense : MT to ST 1 DecodeModeSense : MT to IE 1 DecodeModeSense : MT to DT 1 DecodeModeSense : ST to MT 1 DecodeModeSense : ST to MT 1 DecodeModeSense : ST to DT 1 DecodeModeSense : IE to MT 1 DecodeModeSense : IE to ST 1 DecodeModeSense : IE to ST 1 DecodeModeSense : IE to ST 1 DecodeModeSense : DT to MT 1 DecodeModeSense : DT to ST 1 DecodeModeSense : DT to IE 1 DecodeModeSense : DT to DT 1 ChgExit in MapBarCode, reason MapBarCode, DB Version does not match
Re: Barcode reader
... the labelfile for the configuration remains empty, even after running an amtape Config show. Any ideas on how to close the final gap on getting the mapping to work? ... I **think** (but I'm real fuzzy on the barcode stuff because I don't use it) that you need to run amtape Config update to create/update the label database. Eric John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]
Re: Barcode reader
Hi, On Fri, Mar 08, 2002 at 11:38:32AM -0800, Stephen Carville wrote: [..] In changer.conf set havereader=1 Hmm i think it must be havebarcode 1 Which version of chg-scsi do you have. This option works not with 2.4.2 Thomas -- --- | Thomas Hepper[EMAIL PROTECTED] | | ( If the above address fail try ) | | ( [EMAIL PROTECTED])| ---
Re: Barcode reader
On Mon, 11 Mar 2002, Thomas Hepper wrote: Hi, On Fri, Mar 08, 2002 at 11:38:32AM -0800, Stephen Carville wrote: [..] In changer.conf set havereader=1 Hmm i think it must be havebarcode 1 I'll try that. I actually already had havereader=1 in the conf but it didn't seem to make a difference. Which version of chg-scsi do you have. This option works not with 2.4.2 I have whatever version comes with 2.4.3b2 of Amanda. - - - -- Eric Trager
Re: Barcode reader
On Mon, 11 Mar 2002, Thomas Hepper wrote: - Hi, - On Fri, Mar 08, 2002 at 11:38:32AM -0800, Stephen Carville wrote: - [..] - In changer.conf set havereader=1 - - Hmm i think it must be - havebarcode 1 - - Which version of chg-scsi do you have. This option works not with 2.4.2 I wrote my own changer script based on chg-zd-mtx. That script uses 'havereader=1' and I just carried it over to my new script. I didn't know there was any other variant. I am using amanda 2.4.2p2. -- -- Stephen Carville UNIX and Network Administrator DPSI (formerly Ace USA Flood Services) 310-342-3602 [EMAIL PROTECTED]
Re: Barcode reader
On Fri, 8 Mar 2002, Eric Trager wrote: - - Hi all, - - I'm happily using chg-scsi with our StorEdge and backups are going well. - Thanks to you all for helping me sort out a couple of things. - - I've tried to find an answer to this in the archives but to no avail. The - StorEdge we use has a barcode reader, and the tapes are physically - labelled. If I use mtx to check status, I get a nice list of tapes and - barcode entries. - - I have an entry for labelfile in my changer config file, but when I run - the chg-scsi -info command, I get - - 10 20 1 0 - - The fourth entry indicates I have no reader, but I do. How can I tell - amanda and chg-scsi that there's a reader to use? In changer.conf set havereader=1 -- Stephen Carville UNIX and Network Administrator DPSI (formerly Ace USA Flood Services) 310-342-3602 [EMAIL PROTECTED]
Re: barcode reader update to labelfile?
I think I found my own answer to this question. I found that the labelfile will be created by amlabel as each tape is labeled... --doug At 01:42 PM 1/23/2001 -0500, you wrote: An additional question - the Ecrix VXA autopak has a bar code reader which amanda initially used and set up /usr/local/etc/amanda/daily/labelfile with tape labels and barcodes - Can I force amanda to re-examine this library and re-write the labelfile? Which command? Or just wipe out the existing file? --doug Doug Munsinger egenera, Inc. [EMAIL PROTECTED] 563 Main Street, Bolton, MA 01740 Tel: 508-786-9444 ext. 2612 OR 508-481-5493 fax: 978 779-9730 Doug Munsinger egenera, Inc. [EMAIL PROTECTED] 563 Main Street, Bolton, MA 01740 Tel: 508-786-9444 ext. 2612 OR 508-481-5493 fax: 978 779-9730