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
barcode reader help (and faq-o-matic-toast?)
I've got a Dell PV132T changer I'm trying to get working and I'm looking for the stuff that used to be on the faq-o-matic about barcode readers. The FOM seems to be toast. Anybody know where I can find it? (and is the FOM gone for good?) -- thanks, Will
Re: Qualstar TLS-4480 barcode reader
Hi there, I just got a new Overland Data Neo2000 LTO-2 30-tape library. I found your post on creating barcode labels for tapes. Does is matter what data the barcode contains. For example, can I create a barcode that reads DailySet1-01 through DailySet1-30 Do you know if the Avery L7656 labels will work with LTO2 tapes? Sincerely, Jason Edgecombe Ron Snyder wrote: Thanks! That's one that I wasn't even aware of. -ron -Original Message- From: jens persson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:37 PM To: [EMAIL PROTECTED] Subject: Re: Qualstar TLS-4480 barcode reader On Thu, Feb 27, 2003 at 01:42:53PM -0800, someone wrote: We use a TLS-4480, with the chg-zd-mtx that I found someware :-) and it working well (as long as our home printed labels are readable). What are you using to print your labels? About a year ago I looked for anything that would create labels for me, but never could find any software that would work with my TLS. Since this might be useful to others, I'm answering to the list (after removing the name of the questioner, that asked of list). I'm using gnu-barcode (http://www.gnu.org/software/barcode/barcode.h tml) printing to Avery L7656 labels with the commandline: barcode -ucm -pa4 -iinfile.txt -ooutfile.ps -e code39 -t 4x21+0.6+1.5 \ -m.5x.1 where infile.txt contains the text of the labels I want and output.ps is a postscript file. Home this helps. /jp -- jens persson #One disk to rule them all, One disk to find [EMAIL PROTECTED]#them. One disk to bring them all and in the Mäster Olofsväg 24 #darkness grind them. In the Land of Redmond S-224 66 LUND;SWEDEN # where the shadows lie. # Henrique Holschuh The Silicon Valley Tarot
Re: Qualstar TLS-4480 barcode reader
On Mon, Jun 02, 2003 at 10:02:30AM -0400, Jason Edgecombe wrote: Hi there, I just got a new Overland Data Neo2000 LTO-2 30-tape library. I found your post on creating barcode labels for tapes. Does is matter what data the barcode contains. For example, can I create a barcode that reads DailySet1-01 through DailySet1-30 I'm not shure about the Overland drive but on our TLS-4480 it can be just about anything (up to some max length that I don't know). Just try printeing som labels put them on some tapes and try reading them using 'mtx status'. One thing that bit my (up to dumping SCSI packets and decoding them by hand) was the need for checksums in the code39 labels but it should be documented with your drive. Do you know if the Avery L7656 labels will work with LTO2 tapes? I have no clue, just use a ruler to measure the space on a tape and then look in some label catalog for something fitting. /jp -- jens persson #Good coding practice would accomplish this [EMAIL PROTECTED]# goal, but good programming practice can Mäster Olofsväg 24 # sometimes be in short supply, and mandatory S-224 66 LUND;SWEDEN # discipline makes a fair substitute. # - Todd Lewis
Re: Qualstar TLS-4480 barcode reader
On Thu, Feb 27, 2003 at 01:42:53PM -0800, someone wrote: We use a TLS-4480, with the chg-zd-mtx that I found someware :-) and it working well (as long as our home printed labels are readable). What are you using to print your labels? About a year ago I looked for anything that would create labels for me, but never could find any software that would work with my TLS. Since this might be useful to others, I'm answering to the list (after removing the name of the questioner, that asked of list). I'm using gnu-barcode (http://www.gnu.org/software/barcode/barcode.html) printing to Avery L7656 labels with the commandline: barcode -ucm -pa4 -iinfile.txt -ooutfile.ps -e code39 -t 4x21+0.6+1.5 \ -m.5x.1 where infile.txt contains the text of the labels I want and output.ps is a postscript file. Home this helps. /jp -- jens persson #One disk to rule them all, One disk to find [EMAIL PROTECTED]#them. One disk to bring them all and in the Mäster Olofsväg 24 #darkness grind them. In the Land of Redmond S-224 66 LUND;SWEDEN # where the shadows lie. # Henrique Holschuh The Silicon Valley Tarot
Qualstar TLS-4480 barcode reader
I'm using Mark Holm's chg-qs-mtx script to start my Backup with Amanda. All works fine, but have problems to use the barcode reader. Is there a way to use the barcode reader for faster library operations ? archiver:/# mtx status Storage Changer /dev/changer:1 Drives, 43 Slots ( 1 Import/Export ) Data Transfer Element 0:Full (Storage Element 27 Loaded):VolumeTag = A00026 Storage Element 1:Full :VolumeTag=A0 Storage Element 2:Full :VolumeTag=A1 Storage Element 3:Full :VolumeTag=A2 Storage Element 4:Full :VolumeTag=A3 Storage Element 5:Full :VolumeTag=A4 . . . . . . The VolumeTag is the barcode readers information. Is there a use for this information with Amanada or mtx to load the right tape Amanada want to use next ? Thanks in advance Daniel
Re: Qualstar TLS-4480 barcode reader
Hello1 We use a TLS-4480, with the chg-zd-mtx that I found someware :-) and it working well (as long as our home printed labels are readable). You can download it at http://persson.cx/code/chg-zd-mtx.gz /jp On Wed, Feb 26, 2003 at 10:27:16AM +0100, Daniel Gruendler wrote: I'm using Mark Holm's chg-qs-mtx script to start my Backup with Amanda. All works fine, but have problems to use the barcode reader. Is there a way to use the barcode reader for faster library operations ? archiver:/# mtx status Storage Changer /dev/changer:1 Drives, 43 Slots ( 1 Import/Export ) Data Transfer Element 0:Full (Storage Element 27 Loaded):VolumeTag = A00026 Storage Element 1:Full :VolumeTag=A0 Storage Element 2:Full :VolumeTag=A1 Storage Element 3:Full :VolumeTag=A2 Storage Element 4:Full :VolumeTag=A3 Storage Element 5:Full :VolumeTag=A4 . . . . . . The VolumeTag is the barcode readers information. Is there a use for this information with Amanada or mtx to load the right tape Amanada want to use next ? Thanks in advance Daniel -- jens persson # In the face of ambiguity, refuse the [EMAIL PROTECTED]# temptation to guess. Mäster Olofsväg 24 # -- Tim Peters 12th Pythonic Thesis S-224 66 LUND;SWEDEN #
Re: Qualstar TLS-4480 barcode reader
On 26 Feb 2003 at 10:27am, Daniel Gruendler wrote The VolumeTag is the barcode readers information. Is there a use for this information with Amanada or mtx to load the right tape Amanada want to use next ? I haven't sat next to my changer to confirm this, but I'm pretty sure 'amtape $CONFIG label $LABEL` uses the barcode information to load the right tape without trying every one. I'm using an Overland Library Pro AIT3 library with chg-zd-mtx on Linux. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Re: chg-scsi coredumps when enabling barcode reader.
An update to this problem: When I run amanda as root user this does not happen. I wonder why, amanda user has all rights on tape devices and loader device (it is in sys group). It is also the owner of configuration, debug, log and so on directories, the amanda group is allowed to execute every single binary from amanda directory. Again, it does work when no barcode reading is involved, what is so special in chg-scsi to require root rights when it has to access barcode reader ? Regards - Kirill Alder-Ponazdyr SGI / SUN UNIX Consultant Codeangels Solutions Phone : +41 43 844 90 10 Fax : +41 43 844 90 12 Mobile: +41 79 370 89 30 On Sun, 17 Nov 2002 16:08:39 +0100 Kirill Alder-Ponazdyr [EMAIL PROTECTED] wrote: Greetings, We have a following setup: Solaris 9 based Netra 1205 machine Amanda 2.4.3 Overland Data LibraryPro with 2 x AIT2 drives (4.20 firmware). The problem is, that chg-scsi crashes with segmentation fault when we enable barcode reader (havebarcode 1) for that library, it works well without barcode enabling. Does anyone has an idea why this crash happens ? Thanks, Kirill Truss ending: ~~~ Incurred fault #6, FLTBOUNDS %pc = 0x000182E4 siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 ~~~ changer.conf: ~~~ number_configs 1 eject 0 # Tapedrives need an eject command sleep 10 # Seconds to wait until the tape gets ready cleanmax10 # How many times could a cleaning tape get used debuglevel9 havebarcode 1 changerdev /dev/scsi/changer/c1t1d0 labelfile /opt/amanda/etc/amanda/daily/labelfile # # Next comes the data for drive 0 # config 0 drivenum0 dev /dev/rmt/0cbn startuse0 enduse 11 statfile/opt/amanda/etc/amanda/daily/tape0-slot cleanfile /opt/amanda/etc/amanda/daily/tape0-clean usagecount /opt/amanda/etc/amanda/daily/totaltime tapestatus /opt/amanda/etc/amanda/daily/tape0-status ~~~ debug file: ~~~ chg-scsi: debug 1 pid 2012 ruid 1020 euid 1020: start at Sun Nov 17 15:59:16 2002 chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.6 2002/08/26 13:57:39 martinea Exp $ 1037545156:scsi-changer-driver: $Id: scsi-changer-driver.c,v 1.1.2.27.2.7.2.9 2002/08/26 13:57:40 martinea Exp $ ARG [0] : /opt/amanda/libexec/chg-scsi ARG [1] : -slot ARG [2] : 0 Number of configurations: 1 Tapes need eject: No raw: 0 Inv. auto update: No raw: 0 barcode reader : Yes raw: 1 Emulate Barcode : No raw: 0 debug level : 9 Tapes need sleep: 10 seconds Cleancycles : 10 Changerdevice : /dev/scsi/changer/c1t1d0 Labelfile : /opt/amanda/etc/amanda/daily/labelfile Tapeconfig Nr: 0 Drivenumber : 0 Startslot : 0 Endslot : 11 Cleanslot : -1 Devicename: /dev/rmt/0cbn changerident : none SCSITapedev : none tapeident : none statfile : /opt/amanda/etc/amanda/daily/tape0-status Slotfile : /opt/amanda/etc/amanda/daily/tape0-slot Cleanfile : /opt/amanda/etc/amanda/daily/tape0-clean Usagecount: /opt/amanda/etc/amanda/daily/totaltime 1037545156:# START OpenDevice 1037545156:OpenDevice : /dev/scsi/changer/c1t1d0 1037545156:# START DecodeSCSI SCSI_ExecuteCommand : INQUIRY 12 00 00 00 38 00 1037545156:# STOP DecodeSCSI 1037545156:ioctl ret (0) 1037545156:using ident = generic_changer, type = Generic driver changer [generic_changer] 1037545156:# STOP OpenDevice 1037545156:# START OpenDevice 1037545156:OpenDevice : /dev/rmt/0cbn ioctl on 4 failed, errno 1, ret -1 # START DecodeSense SCSI_ExecuteCommand:Sense Keys ErrorCode 00 Valid 0 ASC 00 ASCQ 00 Sense key 00 No Sense 1037545156:ioctl ret (-1) 1037545156:# STOP OpenDevice failed 1037545156:# STOP OpenDevice (nothing found) !! warning open of /dev/rmt/0cbn: failed DecodeModeSense : Element Address Assignment Page Medium Transport Element Address 0 Number of Medium Transport Elements 1 First Storage Element Address 1 Number of Storage Elements 19 First Import/Export Element Address 224 Number of ImportExport Elements1
Re: chg-scsi coredumps when enabling barcode reader.
An update to this problem: When I run amanda as root user this does not happen. I wonder why, amanda user has all rights on tape devices and loader device (it is in sys group). It is also the owner of configuration, debug, log and so on directories, the amanda group is allowed to execute every single binary from amanda directory. Again, it does work when no barcode reading is involved, what is so special in chg-scsi to require root rights when it has to access barcode reader ? Regards - Kirill Alder-Ponazdyr SGI / SUN UNIX Consultant Codeangels Solutions Phone : +41 43 844 90 10 Fax : +41 43 844 90 12 Mobile: +41 79 370 89 30 On Sun, 17 Nov 2002 16:08:39 +0100 Kirill Alder-Ponazdyr [EMAIL PROTECTED] wrote: Greetings, We have a following setup: Solaris 9 based Netra 1205 machine Amanda 2.4.3 Overland Data LibraryPro with 2 x AIT2 drives (4.20 firmware). The problem is, that chg-scsi crashes with segmentation fault when we enable barcode reader (havebarcode 1) for that library, it works well without barcode enabling. Does anyone has an idea why this crash happens ? Thanks, Kirill Truss ending: ~~~ Incurred fault #6, FLTBOUNDS %pc = 0x000182E4 siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 ~~~ changer.conf: ~~~ number_configs 1 eject 0 # Tapedrives need an eject command sleep 10 # Seconds to wait until the tape gets ready cleanmax10 # How many times could a cleaning tape get used debuglevel9 havebarcode 1 changerdev /dev/scsi/changer/c1t1d0 labelfile /opt/amanda/etc/amanda/daily/labelfile # # Next comes the data for drive 0 # config 0 drivenum0 dev /dev/rmt/0cbn startuse0 enduse 11 statfile/opt/amanda/etc/amanda/daily/tape0-slot cleanfile /opt/amanda/etc/amanda/daily/tape0-clean usagecount /opt/amanda/etc/amanda/daily/totaltime tapestatus /opt/amanda/etc/amanda/daily/tape0-status ~~~ debug file: ~~~ chg-scsi: debug 1 pid 2012 ruid 1020 euid 1020: start at Sun Nov 17 15:59:16 2002 chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.6 2002/08/26 13:57:39 martinea Exp $ 1037545156:scsi-changer-driver: $Id: scsi-changer-driver.c,v 1.1.2.27.2.7.2.9 2002/08/26 13:57:40 martinea Exp $ ARG [0] : /opt/amanda/libexec/chg-scsi ARG [1] : -slot ARG [2] : 0 Number of configurations: 1 Tapes need eject: No raw: 0 Inv. auto update: No raw: 0 barcode reader : Yes raw: 1 Emulate Barcode : No raw: 0 debug level : 9 Tapes need sleep: 10 seconds Cleancycles : 10 Changerdevice : /dev/scsi/changer/c1t1d0 Labelfile : /opt/amanda/etc/amanda/daily/labelfile Tapeconfig Nr: 0 Drivenumber : 0 Startslot : 0 Endslot : 11 Cleanslot : -1 Devicename: /dev/rmt/0cbn changerident : none SCSITapedev : none tapeident : none statfile : /opt/amanda/etc/amanda/daily/tape0-status Slotfile : /opt/amanda/etc/amanda/daily/tape0-slot Cleanfile : /opt/amanda/etc/amanda/daily/tape0-clean Usagecount: /opt/amanda/etc/amanda/daily/totaltime 1037545156:# START OpenDevice 1037545156:OpenDevice : /dev/scsi/changer/c1t1d0 1037545156:# START DecodeSCSI SCSI_ExecuteCommand : INQUIRY 12 00 00 00 38 00 1037545156:# STOP DecodeSCSI 1037545156:ioctl ret (0) 1037545156:using ident = generic_changer, type = Generic driver changer [generic_changer] 1037545156:# STOP OpenDevice 1037545156:# START OpenDevice 1037545156:OpenDevice : /dev/rmt/0cbn ioctl on 4 failed, errno 1, ret -1 # START DecodeSense SCSI_ExecuteCommand:Sense Keys ErrorCode 00 Valid 0 ASC 00 ASCQ 00 Sense key 00 No Sense 1037545156:ioctl ret (-1) 1037545156:# STOP OpenDevice failed 1037545156:# STOP OpenDevice (nothing found) !! warning open of /dev/rmt/0cbn: failed DecodeModeSense : Element Address Assignment Page Medium Transport Element Address 0 Number of Medium Transport Elements 1 First Storage Element Address 1 Number of Storage Elements 19 First Import/Export Element Address 224 Number of ImportExport Elements1
Re: chg-scsi coredumps when enabling barcode reader.
Kirill Alder-Ponazdyr wrote: An update to this problem: When I run amanda as root user this does not happen. I wonder why, amanda user has all rights on tape devices and loader device (it is in sys group). It is also the owner of configuration, debug, log and so on directories, the amanda group is allowed to execute every single binary from amanda directory. Again, it does work when no barcode reading is involved, what is so special in chg-scsi to require root rights when it has to access barcode reader ? Regards - Kirill Alder-Ponazdyr SGI / SUN UNIX Consultant Codeangels Solutions Phone : +41 43 844 90 10 Fax : +41 43 844 90 12 Mobile: +41 79 370 89 30 Perhaps the barcode device has different ownership/permissions/group than the rest of the devices? I don't have a barcode reader device so I'm just throwing out possiblities... =G=
Re: chg-scsi coredumps when enabling barcode reader.
On Mon, 18 Nov 2002 11:42:11 -0500 Galen Johnson [EMAIL PROTECTED] wrote: Perhaps the barcode device has different ownership/permissions/group than the rest of the devices? I don't have a barcode reader device so I'm just throwing out possiblities... =G= Not really, the barcodes are being read trough the same device which is used to controll the library, and that one is readable / writable by sys group. Also, the chg-scsi is actually able to read the barcodes (visible in debug) but trashes somewhere past that point. I did 2 x trusses, one for root and one for amanda, this is what I see when looking at the area near crash: Amanda User: ~~~ cut write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 50) = 50 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 37) = 37 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : d.., 51) = 51 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 48) = 48 open64(/etc/amanda/daily.scsi/tape0-slot, O_RDONLY) = 4 fstat64(4, 0xFFBFF728) = 0 fstat64(4, 0xFFBFF5D0) = 0 ioctl(4, TCGETA, 0xFFBFF6B4)Err#25 ENOTTY read(4, 0\n, 8192) = 2 llseek(4, 0x, SEEK_CUR) = 1 close(4)= 0 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 31) = 31 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : u.., 57) = 57 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : u.., 64) = 64 time() = 1037635597 time() = 1037635597 time() = 1037635597 time() = 1037635597 time() = 1037635597 time() = 1037635597 Incurred fault #6, FLTBOUNDS %pc = 0x000182E4 siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 end Root User: ~~~ cut write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 50) = 50 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 37) = 37 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : d.., 51) = 51 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 48) = 48 open64(/etc/amanda/daily.scsi/tape0-slot, O_RDONLY) = 4 fstat64(4, 0xFFBFF718) = 0 fstat64(4, 0xFFBFF5C0) = 0 ioctl(4, TCGETA, 0xFFBFF6A4)Err#25 ENOTTY read(4, 0\n, 8192) = 2 llseek(4, 0x, SEEK_CUR) = 1 close(4)= 0 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 31) = 31 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : u.., 57) = 57 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : u.., 64) = 64 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 42) = 42 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 34) = 34 time() = 1037635622 write(10, S C S I _ E x e c u t e.., 38) = 38 time() = 1037635622 write(10,0 0, 3) = 3 time() = 1037635622 write(10,0 0, 3) = 3 time() = 1037635622 write(10,0 0, 3) = 3 time() = 1037635622 write(10,0 0, 3) = 3 time() = 1037635622 write(10,0 0, 3
Re: chg-scsi coredumps when enabling barcode reader.
A simple and dirtly walkaround we use now is to set root suid bit on chg-scsi, this solves all problems for now. Regards Kirill On Mon, 18 Nov 2002 17:53:11 +0100 Kirill Alder-Ponazdyr [EMAIL PROTECTED] wrote: On Mon, 18 Nov 2002 11:42:11 -0500 Galen Johnson [EMAIL PROTECTED] wrote: Perhaps the barcode device has different ownership/permissions/group than the rest of the devices? I don't have a barcode reader device so I'm just throwing out possiblities... =G= Not really, the barcodes are being read trough the same device which is used to controll the library, and that one is readable / writable by sys group. Also, the chg-scsi is actually able to read the barcodes (visible in debug) but trashes somewhere past that point. I did 2 x trusses, one for root and one for amanda, this is what I see when looking at the area near crash: Amanda User: ~~~ cut write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 50) = 50 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 37) = 37 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : d.., 51) = 51 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 48) = 48 open64(/etc/amanda/daily.scsi/tape0-slot, O_RDONLY) = 4 fstat64(4, 0xFFBFF728) = 0 fstat64(4, 0xFFBFF5D0) = 0 ioctl(4, TCGETA, 0xFFBFF6B4)Err#25 ENOTTY read(4, 0\n, 8192) = 2 llseek(4, 0x, SEEK_CUR) = 1 close(4)= 0 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : #.., 31) = 31 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : u.., 57) = 57 time() = 1037635597 write(10, 1 0 3 7 6 3 5 5 9 7 : u.., 64) = 64 time() = 1037635597 time() = 1037635597 time() = 1037635597 time() = 1037635597 time() = 1037635597 time() = 1037635597 Incurred fault #6, FLTBOUNDS %pc = 0x000182E4 siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 end Root User: ~~~ cut write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 50) = 50 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 37) = 37 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : d.., 51) = 51 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 48) = 48 open64(/etc/amanda/daily.scsi/tape0-slot, O_RDONLY) = 4 fstat64(4, 0xFFBFF718) = 0 fstat64(4, 0xFFBFF5C0) = 0 ioctl(4, TCGETA, 0xFFBFF6A4)Err#25 ENOTTY read(4, 0\n, 8192) = 2 llseek(4, 0x, SEEK_CUR) = 1 close(4)= 0 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 31) = 31 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : u.., 57) = 57 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : u.., 64) = 64 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 42) = 42 time() = 1037635622 write(10, 1 0 3 7 6 3 5 6 2 2 : #.., 34) = 34 time() = 1037635622 write(10, S C S I _ E x e c u t e.., 38) = 38 time() = 1037635622 write(10,0 0, 3) = 3 time() = 1037635622 write(10,0 0, 3) = 3 time
chg-scsi coredumps when enabling barcode reader.
Greetings, We have a following setup: Solaris 9 based Netra 1205 machine Amanda 2.4.3 Overland Data LibraryPro with 2 x AIT2 drives (4.20 firmware). The problem is, that chg-scsi crashes with segmentation fault when we enable barcode reader (havebarcode 1) for that library, it works well without barcode enabling. Does anyone has an idea why this crash happens ? Thanks, Kirill Truss ending: ~~~ Incurred fault #6, FLTBOUNDS %pc = 0x000182E4 siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0x0020 ~~~ changer.conf: ~~~ number_configs 1 eject 0 # Tapedrives need an eject command sleep 10 # Seconds to wait until the tape gets ready cleanmax10 # How many times could a cleaning tape get used debuglevel 9 havebarcode 1 changerdev /dev/scsi/changer/c1t1d0 labelfile /opt/amanda/etc/amanda/daily/labelfile # # Next comes the data for drive 0 # config 0 drivenum0 dev /dev/rmt/0cbn startuse0 enduse 11 statfile/opt/amanda/etc/amanda/daily/tape0-slot cleanfile /opt/amanda/etc/amanda/daily/tape0-clean usagecount /opt/amanda/etc/amanda/daily/totaltime tapestatus /opt/amanda/etc/amanda/daily/tape0-status ~~~ debug file: ~~~ chg-scsi: debug 1 pid 2012 ruid 1020 euid 1020: start at Sun Nov 17 15:59:16 2002 chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.6 2002/08/26 13:57:39 martinea Exp $ 1037545156:scsi-changer-driver: $Id: scsi-changer-driver.c,v 1.1.2.27.2.7.2.9 2002/08/26 13:57:40 martinea Exp $ ARG [0] : /opt/amanda/libexec/chg-scsi ARG [1] : -slot ARG [2] : 0 Number of configurations: 1 Tapes need eject: No raw: 0 Inv. auto update: No raw: 0 barcode reader : Yes raw: 1 Emulate Barcode : No raw: 0 debug level : 9 Tapes need sleep: 10 seconds Cleancycles : 10 Changerdevice : /dev/scsi/changer/c1t1d0 Labelfile : /opt/amanda/etc/amanda/daily/labelfile Tapeconfig Nr: 0 Drivenumber : 0 Startslot : 0 Endslot : 11 Cleanslot : -1 Devicename: /dev/rmt/0cbn changerident : none SCSITapedev : none tapeident : none statfile : /opt/amanda/etc/amanda/daily/tape0-status Slotfile : /opt/amanda/etc/amanda/daily/tape0-slot Cleanfile : /opt/amanda/etc/amanda/daily/tape0-clean Usagecount: /opt/amanda/etc/amanda/daily/totaltime 1037545156:# START OpenDevice 1037545156:OpenDevice : /dev/scsi/changer/c1t1d0 1037545156:# START DecodeSCSI SCSI_ExecuteCommand : INQUIRY 12 00 00 00 38 00 1037545156:# STOP DecodeSCSI 1037545156:ioctl ret (0) 1037545156:using ident = generic_changer, type = Generic driver changer [generic_changer] 1037545156:# STOP OpenDevice 1037545156:# START OpenDevice 1037545156:OpenDevice : /dev/rmt/0cbn ioctl on 4 failed, errno 1, ret -1 # START DecodeSense SCSI_ExecuteCommand:Sense Keys ErrorCode 00 Valid 0 ASC 00 ASCQ 00 Sense key 00 No Sense 1037545156:ioctl ret (-1) 1037545156:# STOP OpenDevice failed 1037545156:# STOP OpenDevice (nothing found) !! warning open of /dev/rmt/0cbn: failed DecodeModeSense : Element Address Assignment Page Medium Transport Element Address 0 Number of Medium Transport Elements 1 First Storage Element Address 1 Number of Storage Elements 19 First Import/Export Element Address 224 Number of ImportExport Elements1 First Data Transfer Element Address 240 Number of Data Transfer Elements 2 DecodeModeSense : MT can store data cartridges 0 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 0 DecodeModeSense : MT to IE 0 DecodeModeSense : MT to DT 0 DecodeModeSense : ST to MT 1 DecodeModeSense : ST to MT 1 DecodeModeSense : ST to DT 1 DecodeModeSense : IE to MT 0 DecodeModeSense : IE to ST 1 DecodeModeSense : IE to ST 1 DecodeModeSense : IE to ST 1 DecodeModeSense : DT to MT 0 DecodeModeSense : DT to ST 1 DecodeModeSense : DT to IE 1 DecodeModeSense : DT to DT 1 1037545157:# START DecodeSCSI SCSI_ExecuteCommand : TEST UNIT READY 00 00 00 00 00 00 1037545157:# STOP DecodeSCSI 1037545157:ioctl
Re: chg-scsi coredumps when enabling barcode reader.
Kirill Alder-Ponazdyr wrote: Greetings, We have a following setup: Solaris 9 based Netra 1205 machine Amanda 2.4.3 Overland Data LibraryPro with 2 x AIT2 drives (4.20 firmware). The problem is, that chg-scsi crashes with segmentation fault when we enable barcode reader (havebarcode 1) for that library, it works well without barcode enabling. Does anyone has an idea why this crash happens ? Thanks, Kirill What version of GCC did you use to compile this? If you used gcc3.2, I'm not sure that the code is ready for that...but I'm not sure. Have you had it working before? =G=
Re: chg-scsi coredumps when enabling barcode reader.
Here is gcc -v: Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.9/2.95.3/specs gcc version 2.95.3 20010315 (release) And that was not working before ether. For now we have rolled back to chg-zd-mtx, but would like to use chg-scsi if it would be working. Regards - Kirill Alder-Ponazdyr SGI / SUN UNIX Consultant Codeangels Solutions Phone : +41 43 844 90 10 Fax : +41 43 844 90 12 Mobile: +41 79 370 89 30 On Sun, 17 Nov 2002 11:08:54 -0500 Galen Johnson [EMAIL PROTECTED] wrote: Kirill Alder-Ponazdyr wrote: Greetings, We have a following setup: Solaris 9 based Netra 1205 machine Amanda 2.4.3 Overland Data LibraryPro with 2 x AIT2 drives (4.20 firmware). The problem is, that chg-scsi crashes with segmentation fault when we enable barcode reader (havebarcode 1) for that library, it works well without barcode enabling. Does anyone has an idea why this crash happens ? Thanks, Kirill What version of GCC did you use to compile this? If you used gcc3.2, I'm not sure that the code is ready for that...but I'm not sure. Have you had it working before? =G=
Error with barcode reader Email Message
Hi. I'm having a little trouble understanding why everytime I run amcheck or amdump I receive a large email with the subject Error with barcode reader on Fri ... and contains a list full of enties like:- Fri Nov 8 10:38:05 GMT 2002 Invoked with args '-info' STATUS - currently loaded slot = -1 INFO - current slot -1, last slot 9, can go backwards 1 Fri Nov 8 10:38:05 GMT 2002 Invoked with args '-search BacypMis12' SEARCH - WARNING!!! BacypMis12 not found in current ADIC- barcodes database. - WARNING!!! Check your typing, and/or update the database. From my point of view, the barcode reader is working perfectly. I can still run inventory commands etc. Even when amcheck is running the autoloader still looks for and locates the correct tapes but when either amcheck or amdump begin, amanda sends out the message! Any ideas would be most welcome Thank you!
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]
Barcode reader
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? - - - -- Eric Trager
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]
barcode reader update to labelfile?
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
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