Koozali.org: home of the SME Server

Seagate IDE Hornet drive errors

Glenn

Seagate IDE Hornet drive errors
« on: April 05, 2001, 09:35:36 PM »
I don't know if anyone has been following my situation with unrecognized IDE Atapi tape drive, but I have finally gotten to the point where the drive and ide-scsi modules are correctly identified and loaded automatically at boot time as can be seen below in clips of my messages file. To briefly re-cap, when installing the tape drive on my system after e-smith 4.1.1 had already been installed, nothing was recognized or loaded correctly by e-smith. After much searching and testing these were my findings to get things working to this point:

*** One other note: I have a 3-ware 6400 raid controller in the system with 3 drives operating under RAID 5. I'm not sure if this matters since there is now essentially two SCSI adpters now in the system which may be confusing the system ***

1. Needed to add the following line to my /etc/lilo.conf file just after the "root=/dev/xxxx" line
           append="hdc=ide-scsi"
*** No need to run lilo again on RH7 or e-smith to have this take effect ***

2. Added the following to the /etc/modules.conf file
           alias scsi_hostadapter ide-scsi
           pre-install ide-scsi modprobe ide-cd

3. Modified my /etc/rc.d/rc.local  and the very end, after the last "fi" with the following:
            # added this line to have the ide-scsi module loaded for the hornet
            # tape drive at boot time
            modprobe ide-scsi

Now all seems to be loaded and detected correctly but I still have a problem!

When I test the drive with "mt -f /dev/nst0 retension" or try any "flexbackup" commands I receive the following errors in the messages file:

Apr  5 09:30:03 hostname kernel: st: bufsize 32768, wrt 30720, max buffers 5, s/g segs 16.
Apr  5 09:30:03 hostname kernel: Detected scsi tape st0 at scsi1, channel 0, id 0, lun 0
Apr  5 09:30:24 hostname kernel: st0: Error with sense data: [valid=0] Info fld=0x0, Current st09:00: sense key Illeg$
Apr  5 09:30:24 hostname kernel: Additional sense indicates Invalid command operation code


Below is some clips of my messages file at the state of hardware awareness the system is at this point, any help will be greatly appreciated.

Glenn


Apr  5 08:35:27  kernel: raid5: measuring checksumming speed
Apr  5 08:35:27  kernel: raid5: MMX detected, trying high-speed MMX checksum routines
Apr  5 08:35:27  kernel:    pII_mmx   :  1338.072 MB/sec
Apr  5 08:35:27  kernel:    p5_mmx    :  1405.128 MB/sec
Apr  5 08:35:27  kernel:    8regs     :  1033.272 MB/sec
Apr  5 08:35:27  kernel:    32regs    :   578.739 MB/sec
Apr  5 08:35:27  kernel: using fastest function: p5_mmx (1405.128 MB/sec)
Apr  5 08:35:28  kernel: scsi0 : 3ware Storage Controller
Apr  5 08:35:28  kernel: scsi : 1 host.
Apr  5 08:35:28  kernel:   Vendor: 3ware     Model: 3w-xxxx           Rev: 1.1
Apr  5 08:35:28  kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Apr  5 08:35:28  kernel: Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
Apr  5 08:35:28  kernel: SCSI device sda: hdwr sector= 512 bytes. Sectors= 80037121 [39080 MB] [39.1 GB]
Apr  5 08:35:28  kernel:  sda: sda1 sda2 < sda5 sda6 >

Apr  5 08:35:53  upsd[1043]: *** PowerChute PLUS Version 4.5.2.1 (glibc) Started ***
Apr  5 08:35:56  upsd: PowerChute Plus for UNIX, v4.5.2.1 (glibc): Copyright (c) 2000, American Power Convers$
Apr  5 08:35:57  kernel: hda: ATAPI 50X CD-ROM drive, 128kB Cache
Apr  5 08:35:57  kernel: Uniform CD-ROM driver Revision: 3.10
Apr  5 08:35:57  kernel: hdb: ATAPI 50X CD-ROM drive, 128kB Cache

Apr  5 08:35:57  kernel: scsi1 : SCSI host adapter emulation for IDE ATAPI devices
Apr  5 08:35:57  kernel: scsi : 2 hosts.  
Apr  5 08:35:57  kernel:   Vendor: Seagate   Model: STT20000A         Rev: 8A51
Apr  5 08:35:57  kernel:   Type:   Sequential-Access                  ANSI SCSI revision: 02

Charlie Brady

Re: Seagate IDE Hornet drive errors
« Reply #1 on: April 09, 2001, 11:46:22 PM »
Glenn wrote:

> *** One other note: I have a 3-ware 6400 raid controller in
> the system with 3 drives operating under RAID 5. I'm not sure
> if this matters since there is now essentially two SCSI
> adpters now in the system which may be confusing the system ***

As you have rightly surmised, the existing SCSI adapter is what has prevented scsi emulation from being
 
> 1. Needed to add the following line to my /etc/lilo.conf file
> just after the "root=/dev/xxxx" line
>            append="hdc=ide-scsi"
> *** No need to run lilo again on RH7 or e-smith to have this
> take effect ***

I don't believe this to be true. Any change in lilo.conf will require lilo to be rerun to have any effect.

> 2. Added the following to the /etc/modules.conf file
>            alias scsi_hostadapter ide-scsi
>            pre-install ide-scsi modprobe ide-cd

A simpler change would be to configure your system to use the drive in IDE native mode:

/sbin/e-smith/db configuration setprop backup Device /dev/nst0
/sbin/e-smith/signal-event conf-backup

You'll probably need to undo your other changes to make this work.

Charlie

Glenn

Re: Seagate IDE Hornet drive errors
« Reply #2 on: April 10, 2001, 12:19:40 AM »
Author: Charlie Brady (charlieb_AT_e-smith.com)
Date:   04-09-01 14:46

Glenn wrote:

> *** One other note: I have a 3-ware 6400 raid controller in
> the system with 3 drives operating under RAID 5. I'm not sure
> if this matters since there is now essentially two SCSI
> adpters now in the system which may be confusing the system ***

As you have rightly surmised, the existing SCSI adapter is what has prevented scsi emulation from being

> 1. Needed to add the following line to my /etc/lilo.conf file
> just after the "root=/dev/xxxx" line
> append="hdc=ide-scsi"
> *** No need to run lilo again on RH7 or e-smith to have this
> take effect ***

I don't believe this to be true. Any change in lilo.conf will require lilo to be rerun to have any effect.

*** I know this to be the case with RH7 as I have done it many times while diagnosing this problem and the changes I make to lilo.conf have always taken effect without running LILO.(definetly not the case with earlier versions)

> 2. Added the following to the /etc/modules.conf file
> alias scsi_hostadapter ide-scsi
> pre-install ide-scsi modprobe ide-cd

A simpler change would be to configure your system to use the drive in IDE native mode:

***Is this really IDE native mode? I have already done the same procedure you list
***below except replacing the /dev/nst0 with /dev/nht0 and things appear to work ***although the transfer speed seems much lower this way and I can't seem to get ***the system to send me the change tape message! If this is how it has to ***be...so be it. I just hope the restore function works when I might need it!!!!!

/sbin/e-smith/db configuration setprop backup Device /dev/nst0
/sbin/e-smith/signal-event conf-backup

You'll probably need to undo your other changes to make this work.
*** I already have when I performed the above procedure with the result being that *** stated above.