Thanks Thomas for your reply.
I tried changing the eject para to 0 (and also 2, which i found out from
amanda-hacker) but got the message Segmentation fault (core dumped).
I've attached the log file found in /tmp/amanda for your reference.
Best Regards,
@p
My /tmp/amanda/chg-scsi.log :
chg-scsi: debug 1 pid 1218 ruid 565 euid 565 start time Mon Oct 15
17:08:57 2001
ARG [0] : /usr/local/libexec/chg-scsi
ARG [1] : -eject
Number of configurations: 1
Tapes need eject: No
barcode reader : No
Tapes need sleep: 120 seconds
Cleancycles : 100
Changerdevice : /dev/sg2
Tapeconfig Nr: 0
Drivenumber : 1
Startslot : 0
Endslot : 4
Cleanslot : 5
Devicename : /dev/nst0
changerident : none
SCSITapedev : /dev/sg2
tapeident : none
statfile : /usr/local/etc/amanda/DailySet1/tapestatus
Slotfile : /usr/local/etc/amanda/DailySet1/tape0-slot
Cleanfile : /usr/local/etc/amanda/DailySet1/tape0-clean
Usagecount : /usr/local/etc/amanda/DailySet1/totaltime
##### START OpenDevice
OpenDevice : /dev/sg2
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
01 C0 02 02 2D 00 00 38 48 50 20 20 20 20 20 20 .......8HP......
43 35 37 31 33 41 20 20 20 20 20 20 20 20 20 20 C5713A..........
48 39 31 30 20 20 20 39 00 00 02 24 44 52 2D 31 H910...9....DR.1
30 00 00 00 00 80 24 C0
SCSI_Inquiry : end 0
##### START PrintInquiry
qualifier 0
type 1
data_format 2
ansi_version 2
ecma_version 0
iso_version 0
type_modifier 40
removable 1
vendor_info HP
prod_ident C5713A
prod_version H910
vendor_specific 9
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]
##### START OpenDevice
OpenDevice : /dev/sg2
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
01 C0 02 02 2D 00 00 38 48 50 20 20 20 20 20 20 .......8HP......
43 35 37 31 33 41 20 20 20 20 20 20 20 20 20 20 C5713A..........
48 39 31 30 20 20 20 39 00 00 02 24 44 52 2D 31 H910...9....DR.1
30 00 00 00 00 80 24 C0
SCSI_Inquiry : end 0
##### START PrintInquiry
qualifier 0
type 1
data_format 2
ansi_version 2
ecma_version 0
iso_version 0
type_modifier 40
removable 1
vendor_info HP
prod_ident C5713A
prod_version H910
vendor_specific 9
using ident = generic, type = Generic driver tape/robot [generic]
###### 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
71 00 10 00 02 0E 00 00 00 14 00 00 00 00 00 80 q...............
00 00 00 00 0F 0E C0 80 00 00 00 20 00 00 00 00 ................
00 00 00 00 10 0E 08 00 00 00 00 C8 60 00 10 00 ................
00 00 00 00 11 08 01 00 10 03 00 00 00 00 1C 0A ................
08 03 00 00 00 00 00 00 00 00 1D 12 00 00 00 00 ................
00 02 00 06 00 00 00 00 00 01 00 01 00 00 1F 0E ................
0A 00 00 08 00 02 00 00 00 00 00 00 00 00 3E 02 ................
00 00 5F C2 00 C0 5F C2 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 A0 A0 27 C0 CC 3E 22 C0 ................
8C 00 5D C2 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 00 00 00 00 ................
D2 9E 00 00 00 00 5D C2 9C AA 11 C0 00 00 00 00 ................
01 00 00 00 00 00 00 00 00 00 00 00 21 93 0B 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
buffer length = 109
DecodeModeSense : Disconnect/Reconnect Page
Buffer Full Ratio 14
Buffer Empty Ratio 0
Bus Inactivity Limit 0
Disconnect Time Limit 5120
Connect Time Limit 0
Maximum Burst Size 0
DTDC 0
DecodeModeSense : Element Address Assignment Page
Medium Transport Element Address 0
Number of Medium Transport Elements 0
First Storage Element Address 2
Number of Storage Elements 6
First Import/Export Element Address 0
Number of ImportExport Elements 0
First Data Transfer Element Address 1
Number of Data Transfer Elements 1
DecodeModeSense : MT can store data cartridges 0
DecodeModeSense : ST can store data cartridges 1
DecodeModeSense : IE can store data cartridges 0
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 0
DecodeModeSense : ST to MT 0
DecodeModeSense : ST to DT 1
DecodeModeSense : IE to MT 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : IE to ST 0
DecodeModeSense : DT to MT 0
DecodeModeSense : DT to ST 1
DecodeModeSense : DT to IE 0
DecodeModeSense : DT to DT 0
##### START BarCode
BarCode : fd 3
Ident = [C5713A], function = [generic]
##### START GenericBarCode
01 C0 02 02 2D 00 00 38 48 50 20 20 20 20 20 20 .......8HP......
43 35 37 31 33 41 20 20 20 20 20 20 20 20 20 20 C5713A..........
48 39 31 30 20 20 20 39 00 00 02 24 44 52 2D 31 H910...9....DR.1
30 00 00 00 00 80 24 C0
##### STOP GenericBarCode => 0
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand : READ ELEMENT STATUS B8 02 00 02 00 06 00 00 00 08
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength 70, ret 0
00 00 00 06 00 00 00 68
##### START DecodeSCSI
SCSI_ExecuteCommand : READ ELEMENT STATUS B8 02 00 02 00 06 00 00 00 70
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 02 00 06 00 00 00 68 02 00 00 10 00 00 00 60 .......h........
00 02 08 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 03 09 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 04 09 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 05 09 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 06 09 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 07 09 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
##### START BarCode
BarCode : fd 3
Ident = [C5713A], function = [generic]
##### START GenericBarCode
01 C0 02 02 2D 00 00 38 48 50 20 20 20 20 20 20 .......8HP......
43 35 37 31 33 41 20 20 20 20 20 20 20 20 20 20 C5713A..........
48 39 31 30 20 20 20 39 00 00 02 24 44 52 2D 31 H910...9....DR.1
30 00 00 00 00 80 24 C0
##### STOP GenericBarCode => 0
##### START SCSI_ReadElementStatus
##### START DecodeSCSI
SCSI_ExecuteCommand : READ ELEMENT STATUS B8 04 00 01 00 01 00 00 00 08
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (1) SCSI_ExecuteCommand 0
SCSI_ReadElementStatus: DataBufferLength 20, ret 0
00 00 00 01 00 00 00 18
##### START DecodeSCSI
SCSI_ExecuteCommand : READ ELEMENT STATUS B8 04 00 01 00 01 00 00 00 20
00 00
##### STOP DecodeSCSI
SCSI_ReadElementStatus : (2) SCSI_ExecuteCommand 0
00 01 00 01 00 00 00 18 04 00 00 10 00 00 00 10 ................
00 01 09 00 00 00 30 04 00 80 00 02 00 00 00 00 ......0.........
Media Transport Elements (robot arms) :
Storage Elements (Media slots) :
Element #0002 E
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 2 From = -001
TAG =
Element #0003 F
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 2 From = -001
TAG =
Element #0004 F
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 2 From = -001
TAG =
Element #0005 F
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 2 From = -001
TAG =
Element #0006 F
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 2 From = -001
TAG =
Element #0007 F
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 2 From = -001
TAG =
Data Transfer Elements (tape drives) :
Element #0001 F
EXCEPT = 00
ASC = 00 ASCQ = 00
Type 4 From = 0002
TAG =
SCSI ADDRESS = 4
Import/Export Elements :
###### START drive_loaded
drive_loaded : fd 3 drivenum 1
COM_EJECT: get_current_slot -1073742808
###### START find_empty
start at 0, end at 5
###### END find_empty [0]
COM_EJECT: find_empty 0
###### START unload
unload : fd 3, slot 0, drive 1
unload : unload drive 1[17] slot 0[2]
##### START GenericMove
GenericMove : from = 17, to = 2
##### START LogSense
##### START SCSI_TestUnitReady
##### START DecodeSCSI
SCSI_ExecuteCommand : TEST UNIT READY 00 00 00 00 00 00
##### STOP DecodeSCSI
##### START GenericRewind
##### START SCSI_TestUnitReady
##### START DecodeSCSI
SCSI_ExecuteCommand : TEST UNIT READY 00 00 00 00 00 00
##### STOP DecodeSCSI
##### START SCSI_TestUnitReady
##### START DecodeSCSI
SCSI_ExecuteCommand : TEST UNIT READY 00 00 00 00 00 00
##### STOP DecodeSCSI
GenericRewind : Ready after 0 sec, true = 0
LogSense
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 40 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 42 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START Decode
##### START Decode
##### START Decode
##### START Decode
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 43 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START Decode
##### START Decode
##### START Decode
##### START Decode
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 6E 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 70 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 71 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 72 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 73 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 74 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 75 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 76 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 77 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 78 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 79 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 7A 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 7B 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 7C 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 7D 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START DecodeSCSI
SCSI_ExecuteCommand : LOG SENSE 4D 00 7E 00 00 00 00 08 00 00
##### STOP DecodeSCSI
##### START LookupElement
GenericMove : ElementInfo for 17 not found
##### START LookupElement
##### STOP LookupElement (STE)
Thomas Hepper wrote:
> Hi,
> On Mon, Oct 15, 2001 at 02:08:02PM +0800, A.P Kwee wrote:
>
>>Dear users of Amanda,
>>
>>This is my first SOS call so pls be "gentle" with me.
>>
>>I've successfully compiled and got Amanda in place on RH Linux 6.2 but
>>have this problem. When I do a 'chg-scsi eject', this makes my HP 40x6e
>>autoloader go bongus. It will an error message 'semiloaded'.
>>
>>anybody have sucessfully deployed a hp 40x6 on linux? I've attached my
>>amanda.conf and changer.conf files.
>>
>
> Hmm you should set the eject parameter in your chg-scsi.conf to 0. I think the hp
> DAT changer does not need an eject commond before moving the tapes.
>
>
> Thomas
>
>
--
Best Regards,
Kwee Ann Peng
IT Programmer
CESMA International Pte Ltd
Tel: 2768622 ext 104
Fax: 2769691