Hi, Tom:

Thank you very much for your suggestion!

I tried to add the "changerident FastStor_DLT" to my changer.conf file
and rerun "amtape daily show", I still got the same error "scanning
all 7 slots in tape-changer rack: slot1: date X Label DailySet11
amtape: could not load slot DeviceCapabilitiesPage: == NULL."

Below is my changer.conf file and debug file, can you pls take a look
to see what is wrong with it... I appreciate your help!!!

[root@apple DailySet1]# more changer.conf
number_configs 1
eject          1        # Tapedrives need an eject command
sleep          70       # Seconds to wait until the tape gets ready
                        # The driver first sleeps for <sleep>/2
seconds,
                        # then polls the drive every ??? seconds.
cleanmax       20       # How many times could a cleaning tape get
used
changerdev     /dev/sg1
changerident   FastStor_DLT
#
# Next comes the data for drive 0
#
config         0
drivenum       0
dev            /dev/nst0        # the device that is used for the
tapedrive 0
startuse       0                # The slots associated with the drive
0
enduse         6                #
statfile       /etc/amanda/DailySet1/tape5-slot # The file where the
actual slot
 is
cleancart      -1               # the slot where the cleaningcartridge
for drive
 0 is 
                                # located.  -1 means none.
cleanfile      /etc/amanda/DailySet1/tape0-clean # The file where the
cleanings 
are recorded
usagecount     /etc/amanda/DailySet1/totaltime

#
# This is the end
----- end of /etc/amanda/DailySet1/changer.conf -----

[root@apple DailySet1]# more changer.conf
number_configs 1
eject          1        # Tapedrives need an eject command
sleep          70       # Seconds to wait until the tape gets ready
                        # The driver first sleeps for <sleep>/2
seconds,
                        # then polls the drive every ??? seconds.
cleanmax       20       # How many times could a cleaning tape get
used
changerdev     /dev/sg1
changerident   FastStor_DLT
#
# Next comes the data for drive 0
#
config         0
drivenum       0
dev            /dev/nst0        # the device that is used for the
tapedrive 0
startuse       0                # The slots associated with the drive
0
enduse         6                #
statfile       /etc/amanda/DailySet1/tape5-slot # The file where the
actual slot
 is
cleancart      -1               # the slot where the cleaningcartridge
for drive
 0 is 
                                # located.  -1 means none.
cleanfile      /etc/amanda/DailySet1/tape0-clean # The file where the
cleanings 
are recorded
usagecount     /etc/amanda/DailySet1/totaltime

#
# This is the end
----- end of /etc/amanda/DailySet1/changer.conf -----

[root@apple amanda]# more chg-scsi.20020318095009.debug 
chg-scsi: debug 1 pid 20170 ruid 33 euid 33 start time Mon Mar 18
09:50:09 2002
ARG [0] : /usr/lib/amanda/chg-scsi
ARG [1] : -slot
ARG [2] : next
Number of configurations: 1
Tapes need eject: Yes
barcode reader  : No
Tapes need sleep: 70 seconds
Cleancycles     : 20
Changerdevice   : /dev/sg1
Tapeconfig Nr: 0
  Drivenumber   : 0
  Startslot     : 0
  Endslot       : 6
  Cleanslot     : -1
  Devicename    : /dev/nst0
  changerident  : FastStor DLT
  SCSITapedev   : none
  tapeident     : none
  statfile      : none
  Slotfile      : /etc/amanda/DailySet1/tape5-slot
  Cleanfile     : /etc/amanda/DailySet1/tape0-clean
  Usagecount    : /etc/amanda/DailySet1/totaltime
##### START OpenDevice
OpenDevice : /dev/sg1
SCSI_OpenDevice : use SG interface
SCSI_OpenDevice : current timeout 6000
SCSI_OpenDevice : timeout set to 60000
##### START SCSI_Inquiry
SCSI_Inquiry start length = 56:
##### START DecodeSCSI
SCSI_ExecuteCommand :  INQUIRY 12 00 00 00 38 00
##### STOP DecodeSCSI
08 80 02 02 33 00 00 00 41 44 49 43 20 20 20 20    ....3...ADIC....
46 61 73 74 53 74 6F 72 20 44 4C 54 20 20 20 20    FastStor.DLT....
30 31 31 38 00 00 00 00 00 00 00 00 00 00 00 00    0118............
00 00 00 00 00 00 00 00 
SCSI_Inquiry : end 0
##### START PrintInquiry
qualifier       0
type            8
data_format     2
ansi_version    2
ecma_version    0
iso_version     0
type_modifier   0
removable       1
vendor_info     ADIC    
prod_ident      FastStor DLT    
prod_version    0118
vendor_specific 
using ident = generic, type = Generic driver tape/robot [generic]
##### START OpenDevice
OpenDevice : /dev/nst0
SCSI_OpenDevice : checking if /dev/nst0 is a sg device
No link /dev/nst0
using ident = generic, type = Generic driver tape/robot [generic]
need_eject set to 2
###### START get_drive_count
get_drive_count      : fd 3
##### START GenericElementStatus
##### START SCSI_ModeSense
SCSI_ModeSense start length = 255:
##### START DecodeSCSI
SCSI_ExecuteCommand :  MODE SENSE 1A 08 3F 00 FF 00
##### STOP DecodeSCSI
SCSI_ModeSense end: 0
##### START DecodeModeSense
65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    e...............
1D 12 00 56 00 01 00 01 00 07 00 00 00 00 00 52    ...V...........R
00 01 00 00 1E 02 00 00 1F 0E 0A 00 0A 0B 00 03    ................
00 00 00 00 00 00 00 00 00 2C 43 6F 70 79 72 69    ..........Copyri
67 68 74 20 28 43 29 20 31 39 39 37 20 2D 20 32    ght..C..1997...2
30 30 30 20 41 44 49 43 20 20 32 30 30 30 2D 30    000.ADIC..2000.0
35 2D 32 35 57 F6 00 00 00 05 08 00 00 00 00 00    5.25W...........
00 80 00 05 00 00 00 00 00 06 08 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 07 08 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 04 00 00 10 00 00 00 10    ................
00 52 09 00 00 00 20 03 00 80 00 01 00 00 00 00    .R..............
AC 00 C0 F5 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 00 00 00 95 14 00 00    ................
00 00 C0 F5 30 BB 11 C0 60 00 36 C0 00 00 00 00    ....0.....6.....
01 00 00 00 00 00 00 00 00 00 00 00 C5 81 9A 
buffer length = 97
##### START BarCode
BarCode              : fd 3
Ident = [FastStor DLT], function = [generic]
##### START GenericBarCode
08 80 02 02 33 00 00 00 41 44 49 43 20 20 20 20    ....3...ADIC....
46 61 73 74 53 74 6F 72 20 44 4C 54 20 20 20 20    FastStor.DLT....
30 31 31 38 00 00 00 00 00 00 00 00 00 00 00 00    0118............
00 00 00 00 00 00 00 00 
##### STOP GenericBarCode => 0
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 00 00 00 FF FF 00 00 00
08 00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength B0, ret 0
00 01 00 09 00 00 00 A8 
##### START DecodeSCSI
SCSI_ExecuteCommand :  READ ELEMENT STATUS B8 00 00 00 FF FF 00 00 00
B0 00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 01 00 09 00 00 00 A8 01 00 00 10 00 00 00 10    ................
00 56 00 00 00 00 00 00 00 00 00 00 00 00 00 00    .V..............
02 00 00 10 00 00 00 70 00 01 08 00 00 00 00 00    .......p........
00 00 00 00 00 00 00 00 00 02 09 00 00 00 00 00    ................
00 80 00 02 00 00 00 00 00 03 09 00 00 00 00 00    ................
00 80 00 03 00 00 00 00 00 04 08 00 00 00 00 00    ................
00 80 00 04 00 00 00 00 00 05 08 00 00 00 00 00    ................
00 80 00 05 00 00 00 00 00 06 08 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 00 07 08 00 00 00 00 00    ................
00 00 00 00 00 00 00 00 04 00 00 10 00 00 00 10    ................
00 52 09 00 00 00 20 03 00 80 00 01 00 00 00 00    .R..............



        Media Transport Elements (robot arms) :
                Element #0086 E
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 1 From = -001
                        TAG = 


        Storage Elements (Media slots) :
                Element #0001 E
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = -001
                        TAG = 
                Element #0002 F
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = 0002
                        TAG = 
                Element #0003 F
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = 0003
                        TAG = 
                Element #0004 E
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = 0004
                        TAG = 
                Element #0005 E
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = 0005
                        TAG = 
                Element #0006 E
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = -001
                        TAG = 
                Element #0007 E
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 2 From = -001
                        TAG = 


        Data Transfer Elements (tape drives) :
                Element #0082 F
                        EXCEPT = 00
                        ASC = 00 ASCQ = 00
                        Type 4 From = 0001
                        TAG = 
                        SCSI ADDRESS = 3


        Import/Export Elements  :
###### START drive_loaded
drive_loaded         : fd 3 drivenum 0 
##### START eject_tape
##### START GenericEject
GenericEject : use mtio ioctl for eject on /dev/nst0
##### STOP eject_tape [0]
###### START unload
unload               : fd 3, slot 1, drive 0 
unload               : unload drive 0[82] slot 1[2]
unload : Slot 0 address 2 is full
###### START find_empty
start at 0, end at 7
###### END find_empty [0]
unload : try to unload to slot 0
##### START GenericMove
GenericMove          : from = 82, to = 1
GenericMove : can't send SCSI commands to tape, no log pages read
##### START LookupElement
##### STOP LookupElement (DTE)
##### START LookupElement
##### STOP LookupElement (STE)
CheckMove : pDeviceCapabilitiesPage == NULLChgExit in CheckMove,
reason DeviceCa
pabilitiesPage == NULL
[root@apple amanda]#   
-------------------
> Hi,
> On Thu, Mar 14, 2002 at 04:51:10PM -0500, Zhen Liu wrote:
> [...]
> > ##### START DecodeModeSense
> > 65 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   
e...............
> 
> OK, the problem seems to be here, ADIC returns the results with an
different
> offset than others, to solve this pleas add the following to you
chg-scsi.conf
> and retry it:
> changerident FastStor_DLT
> 
> If this helps i will extend chg-scsi to run without this value.
> 
>       Thomas
> 
> -- 
>   -----------------------------------------------
>   |  Thomas Hepper        [EMAIL PROTECTED]         |
>   |         ( If the above address fail try   ) |
>   |         ( [EMAIL PROTECTED])        |
>   -----------------------------------------------
> 
Zhen Liu
Via Webmail
[EMAIL PROTECTED]

Reply via email to