[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    RE: [Evms-devel] unsuccessful crack at evms 2.0
From:       "Brendon Baumgartner" <brendon () brendon ! com>
Date:       2003-03-31 22:41:37
[Download RAW message or body]

> On Monday 31 March 2003 09:12, Kevin Corry wrote:
>> On Monday 31 March 2003 03:38, Brendon Baumgartner wrote:
>> > I'm basically having the same problems I did with 1.9.2.
>> >
>> > Here is the logfile of evms_activate:
>> > http://viper.techchamps.com/~brendon/evms.log
>> >
>> > Here is the stdout:
>> > DosSegMgr:
>> > error, i/o error reading MBR off drive sde
>> > DosSegMgr:
>> > error, i/o error reading MBR off drive sdd
>> > DosSegMgr:
>> > error, i/o error reading MBR off drive sdc
>> > DosSegMgr:
>> > error, i/o error reading MBR off drive sdb
>> > Engine: Error code 5 from write of stop data on object sdb.
>> > Engine: Error code 5 from write of stop data on object sdc.
>> > Engine: Error code 5 from write of stop data on object sdd.
>> > Engine: Error code 5 from write of stop data on object sde.
>> > Engine: Error code 5 from write of stop data on object sdb.
>> > Engine: Error code 5 from write of stop data on object sdc.
>> > Engine: Error code 5 from write of stop data on object sdd.
>> > Engine: Error code 5 from write of stop data on object sde.
>> > Error returned from evms_commit_changes(): Input/output error
>> >
>> >
>> > Any help with this would be appreciated...
>>
>> I'll take a look through the log this morning and see what I can
find.
>> Stay tuned!
> 
> Ok, I've looked through your log file. You don't seem to have any
> problems  with sda, but have no success at all with sdb - sde. The
> problem I am seeing  is coming from the read() call on those disks.
The
> EVMS disk manager receives  an I/O request from another plug-in
(above,
> we see one from DOS), and  eventually turns that request into a read()
> system call at the necessary  offset into the disk. For disks sdb -
> sde, I am seeing all read() calls  return EINVAL. Here is one example
> from the log:
> 
> Engine: engine_read_object: Read from object sde failed with error
code
> 22:  Invalid argument
> Engine: engine_read_object: Exit.  Return value is -22.
> 
> As a side note, each of these disks are opened with O_DIRECT and
> O_SYNC,  which require correct hard-sector-size alignment of the data
> buffer when  calling read. Your log shows that your data buffers are
> correctly aligned, so  that doesn't seem to be the problem.
> 
> So...something about your setup is causing read() to return EINVAL for
> those  four disks, but not your first one. What types of disks are
they
> (and what  type is the first disk)? Do they have special kernel
> drivers? You seem to be  running a 2.4.20 kernel...do you have any
> other extra patches loaded besides  Device-Mapper? What version of
> glibc are you running? Is there anything else  you can describe about
> your setup? Do those disks already have 
> partitions/volumes built on them?

Lets see if I can get some more info that might help.

1. EVMS 1.2.0 is running on 2.4.18 w/initrd and tons of extra stuff
compiled that I don't use.  On 2.4.20 + evms 2.0, I tried using a
limited kernel without initrd.

3. Partitions...
sda is just strait ext3 linux partitions (no evms)
sd[b-e] is a raid 5 volume (evms)

4. Libraries
libc6 deb package 2.3.1-14

5. Kernel...
Only the DM+evms patches were applied to the kernel.  No special drivers
are used. 

6. Some scsi info...
I compared scsi and pci info from /proc with 2.4.18 and 2.4.20.  They
look the same, except 2.4.20 has some extra eeprom output.  I listed the
2.4.20 kernel output below.

Dual channel (built onto the motherboard).
You can see the system boots off channel B, (sda)
Channel A has four disks (sd[b-e])

viper:/proc/scsi> cat scsi
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST39236LC        Rev: 0004
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: QUANTUM  Model: ATLAS10K3_36_SCA Rev: 020K
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: QUANTUM  Model: ATLAS10K3_36_SCA Rev: 020K
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 02 Lun: 00
  Vendor: QUANTUM  Model: ATLAS10K3_36_SCA Rev: 020K
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 03 Lun: 00
  Vendor: QUANTUM  Model: ATLAS10K3_36_SCA Rev: 020K
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 06 Lun: 00
  Vendor: ESG-SHV  Model: SCA HSBP M10     Rev: 0.05
  Type:   Processor                        ANSI SCSI revision: 02
viper:/proc/scsi> 
viper:/proc/scsi/aic7xxx> cat 0
Adaptec AIC7xxx driver version: 6.2.8
aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs

Serial EEPROM:
0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 
0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 
0x58e4 0x5d5e 0x2807 0x0010 0xffff 0xffff 0xffff 0xffff 
0xffff 0xffff 0xffff 0xffff 0xffff 0xffff 0x0250 0x143f 

Channel A Target 0 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
        Goal: 40.000MB/s transfers (20.000MHz, offset 31, 16bit)
        Curr: 40.000MB/s transfers (20.000MHz, offset 31, 16bit)
        Channel A Target 0 Lun 0 Settings
                Commands Queued 8034
                Commands Active 0
                Command Openings 8
                Max Tagged Openings 8
                Device Queue Frozen Count 0
Channel A Target 1 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 2 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 3 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 4 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 5 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 6 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 7 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 8 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 9 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 10 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 11 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 12 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 13 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 14 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 15 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
viper:/proc/scsi/aic7xxx> 
viper:/proc/scsi/aic7xxx> cat 1
Adaptec AIC7xxx driver version: 6.2.8
aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs

Serial EEPROM:
0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 
0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 0xc33a 
0x58e4 0x5d5e 0x2807 0x0010 0xffff 0xffff 0xffff 0xffff 
0xffff 0xffff 0xffff 0xffff 0xffff 0xffff 0x0250 0x143f 

Channel A Target 0 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
        Goal: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Curr: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Channel A Target 0 Lun 0 Settings
                Commands Queued 5
                Commands Active 0
                Command Openings 8
                Max Tagged Openings 8
                Device Queue Frozen Count 0
Channel A Target 1 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
        Goal: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Curr: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Channel A Target 1 Lun 0 Settings
                Commands Queued 5
                Commands Active 0
                Command Openings 8
                Max Tagged Openings 8
                Device Queue Frozen Count 0
Channel A Target 2 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
        Goal: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Curr: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Channel A Target 2 Lun 0 Settings
                Commands Queued 5
                Commands Active 0
                Command Openings 8
                Max Tagged Openings 8
                Device Queue Frozen Count 0
Channel A Target 3 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
        Goal: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Curr: 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
        Channel A Target 3 Lun 0 Settings
                Commands Queued 5
                Commands Active 0
                Command Openings 8
                Max Tagged Openings 8
                Device Queue Frozen Count 0
Channel A Target 4 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 5 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 6 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
        Goal: 3.300MB/s transfers
        Curr: 3.300MB/s transfers
        Channel A Target 6 Lun 0 Settings
                Commands Queued 1
                Commands Active 0
                Command Openings 1
                Max Tagged Openings 0
                Device Queue Frozen Count 0
Channel A Target 7 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 8 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 9 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 10 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 11 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 12 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 13 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 14 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
Channel A Target 15 Negotiation Settings
        User: 160.000MB/s transfers (80.000MHz DT, offset 255, 16bit)
viper:/proc/scsi/aic7xxx> 

Snip from PCI:
  Bus  1, device   4, function  0:
    SCSI storage controller: Adaptec AIC-7899P U160/m (rev 1).
      IRQ 16.
      Master Capable.  Latency=72.  Min Gnt=40.Max Lat=25.
      I/O at 0x5800 [0x58ff].
      Non-prefetchable 64 bit memory at 0xfd000000 [0xfd000fff].
  Bus  1, device   4, function  1:
    SCSI storage controller: Adaptec AIC-7899P U160/m (#2) (rev 1).
      IRQ 17.
      Master Capable.  Latency=72.  Min Gnt=40.Max Lat=25.
      I/O at 0x6000 [0x60ff].
      Non-prefetchable 64 bit memory at 0xfd001000 [0xfd001fff].
viper:/proc> 



> 
> Hopefully we can find some extra bit of info that will help us figure
> out  this bug.

I'm starting to think someone broke aic7xxx in 2.4.20

Ciao,
Brendon



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic