From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id B83863EF4A for ; Tue, 24 Sep 2002 10:58:34 -0400 (EDT) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id g8OEwYS09811 for axp-list@listman.redhat.com; Tue, 24 Sep 2002 10:58:34 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g8OEwYf09807 for ; Tue, 24 Sep 2002 10:58:34 -0400 Received: from mailserver.iplink.net (IDENT:root@smtp.iplink.net [192.139.81.186]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g8OEeji23554 for ; Tue, 24 Sep 2002 10:40:45 -0400 Received: from mercutio.iplink.net ([192.139.81.54]:62219 "EHLO iplink.net") by mailserver.iplink.net with ESMTP id ; Tue, 24 Sep 2002 10:58:19 -0400 Message-ID: <3D907DB5.828F52A1@iplink.net> Date: Tue, 24 Sep 2002 10:59:01 -0400 From: alvin X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.19-6.2.7.iplink2 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: problems with md driver (RAID-1) on RH 7.2, DP264 machine -- SOLUTION References: <3D74C55C.BBCBEED2@groupinfo.com> <3D906F6D.5E6D989D@groupinfo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Chris Szilagyi wrote: > > I have finally found a solution to the RAID-1 problem that I posted earlier > on the list a while back. Thanks go to Jay Estabrook for helping us locate > and find a solution. The stock 2.4.x kernels with Red Hat are compiled in a > way that produce random Oopses and "unable to handle kernel paging request", > when using software RAID-1 on a DP264. The solution to this problem is to > add "-fno-strength-reduce" to CFLAGS in arch/alpha/Makefile and recompile > the entire kernel. Doing this allowed us to get a stable 2.4.19 kernel on > RAID-1, using gcc 2.96. > > Hopefully this will help others to get this to work reliably also. > > -- > Chris > Systems Admin > Group InfoTech, Inc. > > Chris Szilagyi wrote: > > > Hello, > > > > Has anybody been able to successfully use RAID-1 on a DP264 machine? > > > > We have posted an issue previously regarding kernel paging errors (Oops > > messages), with Red Hat 7.2/7.1 on a alpha DP264 (dual EV6 processors). > > We have the problems using stock kernels and as well as custom kernels. > > As of right now we are using a custom 2.4.19 kernel. Thanks to Jay > > Estabrook for helping us diagnose the error messages, the "unable to > > handle kernel paging request" problems seem to point to the md driver. > > > > Jay also said there are problems while using both channels > > simultaneously with the integrated Adaptec controller. We are currently > > using both channels of the Adaptec, one for each drive to get good > > performance with RAID-1. All partitions on on RAID-1 except for the > > swap partitions and the /boot partition. We are also curious if anybody > > has a similar setup to this, and if it is working or has known problems. > > > > We've been working on this for over a month, and hopefully close to a > > solution. I actaully ended up finding the offending code in the md driver I believe that this is a bug in the gcc optimizer but I had no luck creating a small test case and the gcc boys don't like being sent a full kernel as an example of the bug. the offending code was: new_disk--; if (new_disk == disk) { and breaks on the test of new_disk in the if statement. by changing the code to new_disk--; md_bugcheck(disk); if (new_disk == disk) { where md_bugcheck does nothing but return caused the optimizer to handle the case differently. My fear is that this problem is in other locations in the kernel and it just happened to show up in the raid1.c code in a findable way. -- Alvin Starr || voice: (416)785-4051 Interlink Connectivity || fax: (416)785-3668 alvin@iplink.net ||