I've made glacial progress. I decided that since amcheck is STILL giving me
errors about the scsi config file I'm using (here's a snippet), I'd go and try
amlabel and see what happens.
tpchanger "chg-scsi"
tapedev "0"
# this corresponds to config 0 in chg-scsi.conf --aha!!!
changerfile "chg-scsi.conf"
changerdev "/dev/scsi/changer/c1t0d0"
Now.
I put (what I think is error logging) on in my chg-scsi.conf by putting
a line saying debug9:9 in my config.
amanda amcheck: output
===============
I've used amlabel <configname> tape# and got the following error message.
(but amcheck passed this time I think!)
Amanda Tape Server Host Check
-----------------------------
Holding disk /dump/: 9034946 KB disk space available, that's plenty
amcheck-server: slot 0: not an amanda tape
amcheck-server: fatal slot <error>: <error> could not read result from
"/usr/local/libexec/chg-scsi" (got signal 11)
ERROR: new tape not found in rack
(expecting a new tape)
NOTE: skipping tape-writable test
Now amcheck.debug showed:
=========================
amcheck: debug 1 pid 21435 ruid 107 euid 0: start at Mon Jul 21 16:40:26 2003
amcheck: dgram_bind: socket bound to 0.0.0.0.885
(good)
changer: got exit: 0 str: 0 80 1 1
changer_query: changer return was 80 1 1
changer_query: searchable = 1
changer_find: looking for NULL changer is searchable = 1
changer: got exit: 0 str: 0 /dev/rmt/2bn
changer: got exit: 2 str: <error> <error> could not read result from
"/usr/local/libexec/chg-scsi" (got signal 11)
amcheck: pid 21435 finish time Mon Jul 21 16:40:58 2003
~
Huh? error 11?
and next my
chg-scsi.date.debug
====================
< Comments on my chg-scsi.date debug file inside <brackets>
(is long,my apologies:
chg-scsi: debug 1 pid 21438 ruid 107 euid 107: start at Mon Jul 21 16:40:26 2003
chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.8 2003/01/26 19:20:56 martinea Exp $
1058820026:scsi-changer-driver: $Id: scsi-changer-driver.c,v 1.1.2.27.2.7.2.10
2003/01/26 19:20:56 martinea Exp $
ARG [0] : /usr/local/libexec/chg-scsi
ARG [1] : -info
Number of configurations: 2
<looks good>
Tapes need eject: Yes
raw: 1
Inv. auto update: No
<looks good>
raw: 0
barcode reader : Yes
raw: 1
Emulate Barcode : No
raw: 0
Tapes need sleep: 15 seconds
Cleancycles : 15
Changerdevice : /dev/scsi/changer/c1t0d0
Labelfile : /usr/local/etc/amanda/DailyBackup/labelfile
Tapeconfig Nr: 0
Drivenumber : 0
Startslot : 1
Endslot : 80
Cleanslot : 0
Devicename : /dev/rmt/0bn
changerident : none
<What does this variable do?>
SCSITapedev : none
tapeident : none
statfile : /usr/local/etc/amanda/DailyBackup/tape1-status.log
Slotfile : /usr/local/etc/amanda/DailyBackup/drive1-stat-slot
Cleanfile : /usr/local/etc/amanda/DailyBackup/tape1-clean.log
Usagecount : /usr/local/etc/amanda/DailyBackup/totalcleanusage-count.log
***<NOTE: I had to "touch" all above files --got lots of errors before
this...***>
Tapeconfig Nr: 1
Drivenumber : 1
Startslot : 1
Endslot : 80
Cleanslot : 0
Devicename : /dev/rmt/2bn
changerident : none
SCSITapedev : none
tapeident : none
statfile : /usr/local/etc/amanda/DailyBackup/tape2-status.log
Slotfile : /usr/local/etc/amanda/DailyBackup/tape2-slot
Cleanfile : /usr/local/etc/amanda/DailyBackup/tape2-clean.log
Usagecount : /usr/local/etc/amanda/DailyBackup/totalcleanusage-count.log
ioctl on 6 failed, errno 1, ret -1
<Huh?>
##### START DecodeSense
SCSI_ExecuteCommand:Sense Keys
ErrorCode 00
Valid 0
ASC 00
ASCQ 00
Sense key 00
No Sense
warning open of /dev/rmt/2bn: failed
DecodeModeSense : Element Address
Assignment Page
Medium Transport Element Address 501
Number of Medium Transport Elements 1
First Storage Element Address 0
Number of Storage Elements 81
First Import/Export Element Address 401
Number of ImportExport Elements 5
First Data Transfer Element Address 451
Number of Data Transfer Elements 3
DecodeModeSense : MT can store data cartridges 1
<That's nice, so?>
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
##### START SenseHandler
Ident = [Exabyte X80], function = [generic_changer]
##### START GenericSenseHandler
##### START DecodeSense
GenericSenseHandler : Sense Keys
ErrorCode 00
Valid 0
ASC 46
ASCQ 00
Sense key 00
No Sense
Sense2Action START : type(8), ignsense(0), sense(0E), asc(83), ascq(09)
Sense2Action generic start :
Sense2Action generic END : no match for generic return -> 0/Default for
SENSE_CHG_ELEMENT_STATUS
##### STOP GenericSenseHandler
#### STOP SenseHandler
##### START SenseHandler
Ident = [Exabyte X80], function = [generic_changer]
##### START GenericSenseHandler
##### START DecodeSense
GenericSenseHandler : Sense Keys
ErrorCode 00
Valid 0
ASC 46
ASCQ 00
Sense key 00
No Sense
Sense2Action START : type(8), ignsense(0), sense(0E), asc(83), ascq(00)
Sense2Action generic start :
Sense2Action generic END : no match for generic return -> 0/Default for
SENSE_CHG_ELEMENT_STATUS
##### STOP GenericSenseHandler
#### STOP SenseHandler
##### START SenseHandler
Ident = [Exabyte X80], function = [generic_changer]
##### START GenericSenseHandler
##### START DecodeSense
GenericSenseHandler : Sense Keys
ErrorCode 00
Valid 0
ASC 46
ASCQ 00
Sense key 00
No Sense
Sense2Action START : type(8), ignsense(0), sense(0E), asc(83), ascq(00)
Sense2Action generic start :
Sense2Action generic END : no match for generic return -> 0/Default for
SENSE_CHG_ELEMENT_STATUS
##### STOP GenericSenseHandler
#### STOP SenseHandler
##### START SenseHandler
Ident = [Exabyte X80], function = [generic_changer]
##### START GenericSenseHandler
##### START DecodeSense
GenericSenseHandler : Sense Keys
ErrorCode 00
Valid 0
ASC 46
ASCQ 00
Sense key 00
No Sense
Sense2Action START : type(8), ignsense(0), sense(0E), asc(83), ascq(00)
Sense2Action generic start :
Sense2Action generic END : no match for generic return -> 0/Default for
SENSE_CHG_ELEMENT_STATUS
##### STOP GenericSenseHandler
#### STOP SenseHandler
chg-scsi: pid 21438 finish time Mon Jul 21 16:40:31 2003
< I have no idea what this means the error 11 and/or handler.:
thanks.
Mitch
|