Amanda-Users

chg-scsi segfaults (WITH CONFIGS - VERY LONG)

2005-08-10 22:33:30
Subject: chg-scsi segfaults (WITH CONFIGS - VERY LONG)
From: Marcus <ashogunnamedmarcus AT yahoo DOT com>
To: amanda-users AT amanda DOT org
Date: Wed, 10 Aug 2005 19:20:20 -0700 (PDT)
I was wondering if someone could peek into my ongoing
saga with my Adic Fastor changer. When I try to -scan
I get:

linux:/etc/amanda/camorigs # /usr/lib/amanda/chg-scsi
-scan
name /dev/sg0 Tape
Count 1
name /dev/sg1 Changer
Count 2
Segmentation fault
linux:/etc/amanda/camorigs #   

with a debug that looks like this:

chg-scsi: debug 1 pid 7017 ruid 0 euid 0: start at Thu
Aug 11 02:11:15 2005
chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.9
2003/07/05 16:59:01 ant Exp $
1123726275: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 $
1123726275:scsi-os-layer: $Id: scsi-linux.c,v
1.1.2.18.4.1.2.5 2003/07/05 16:59:01 ant Exp $
ARG [0] : /usr/lib/amanda/chg-scsi
ARG [1] : -scan
                  SCSI_ExecuteCommand error send

When I try to chg-scsi slot 1, it hangs, and I get a
debug like:

chg-scsi: debug 1 pid 7055 ruid 0 euid 0: start at Thu
Aug 11 02:13:28 2005
chg-scsi: $Id: chg-scsi.c,v 1.6.2.22.2.7.2.9
2003/07/05 16:59:01 ant Exp $
1123726408: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 $
1123726408:scsi-os-layer: $Id: scsi-linux.c,v
1.1.2.18.4.1.2.5 2003/07/05 16:59:01 ant Exp $
ARG [0] : /usr/lib/amanda/chg-scsi
ARG [1] : -slot
ARG [2] : 1
Number of configurations: 1
Tapes need eject: Yes
        raw: 1
Inv. auto update: No
        raw: 0
barcode reader  : No
        raw: 0
Emulate Barcode : No
        raw: 0
debug level     : 9:0
Tapes need sleep: 150 seconds
Cleancycles     : 10
Changerdevice   : /dev/sg1
Tapeconfig Nr: 0
  Drivenumber   : 0
  Startslot     : 0
  Endslot       : 5
  Cleanslot     : -1
  Devicename    : /dev/nst0
  changerident  : none
  SCSITapedev   : none
  tapeident     : none
  statfile      : none
  Slotfile      : /etc/amanda/camorigs/slotinfo
  Cleanfile     : none
  Usagecount    : /etc/amanda/camorigs/totaltime
1123726408:##### START OpenDevice
1123726408:OpenDevice : /dev/sg1
1123726408:##### START SCSI_OpenDevice
1123726408:Try to open /dev/sg1
1123726408:done
1123726408:SCSI_OpenDevice : SG_VERSION 30531
1123726408:SCSI_OpenDevice : SG_RESERVED_SIZE 32768
1123726408:SCSI_OpenDevice : use SG interface

1123726408:SCSI_OpenDevice : current timeout 6000
1123726408:SCSI_OpenDevice : timeout set to 60000
1123726408:##### START SCSI_Inquiry
1123726408:SCSI_Inquiry start length = 56:
1123726408:##### START DecodeSCSI
SCSI_ExecuteCommand :  INQUIRY 12 00 00 00 38 00
1123726408:##### 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 39 00 00 00 00 00 00 00 00 00 00 00 00   
0119............
00 00 00 00 00 00 00 00
1123726408:SCSI_Inquiry : end 0
1123726408:##### START PrintInquiry
1123726408:qualifier       0
1123726408:type            8
1123726408:data_format     2
1123726408:ansi_version    2
1123726408:ecma_version    0
1123726408:iso_version     0
1123726408:type_modifier   0
1123726408:removable       1
1123726408:vendor_info     ADIC
1123726408:prod_ident      FastStor DLT
1123726408:prod_version    0119
1123726408:vendor_specific
1123726408:##### STOP SCSI_OpenDevice (1)
1123726408:using ident = FastStor DLT, type = ADIC
FastStor DLT Library [FastStor DLT]
1123726408:##### STOP OpenDevice
1123726408:##### START OpenDevice
1123726408:OpenDevice : /dev/nst0
1123726408:##### START SCSI_OpenDevice
1123726408:SCSI_OpenDevice : checking if /dev/nst0 is
a sg device
1123726408:No link /dev/nst0
1123726408:Try to open /dev/nst0


In case it helps here are my configs;

number_configs   1      
eject           1       
sleep           150     
cleanmax        10      
changerdev      /dev/sg1
debuglevel      9:0

config          0       
drivenum        0
dev             /dev/nst0       
startuse        0               
enduse          5               
statfile        /etc/amanda/camorigs/slotinfo
#cleancart      6       
#cleanfile      /usr/local/etc/amanda/tape0-clean 
usagecount      /etc/amanda/camorigs/totaltime

...and key bits of amanda.conf

runtapes 7              
tpchanger "chg-scsi"    
tapedev "0"             
rawtapedev "/dev/null"  
changerfile "/etc/amanda/camorigs/chg-scsi.conf"
changerdev "/dev/sg1"  
tapetype DLT            

Whoever made it this far, thanks for any help, I
really appreciate it. 
-Mark


                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

<Prev in Thread] Current Thread [Next in Thread>
  • chg-scsi segfaults (WITH CONFIGS - VERY LONG), Marcus <=