From owner-freebsd-scsi@FreeBSD.ORG Mon Oct 23 21:05:30 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83EB116A40F for ; Mon, 23 Oct 2006 21:05:30 +0000 (UTC) (envelope-from Johannes.Kruger@nokia.com) Received: from mgw-ext12.nokia.com (mgw-ext12.nokia.com [131.228.20.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2EA8A43DEB for ; Mon, 23 Oct 2006 21:04:27 +0000 (GMT) (envelope-from Johannes.Kruger@nokia.com) Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-ext12.nokia.com (Switch-3.1.10/Switch-3.1.10) with ESMTP id k9NL4Gjr009224; Tue, 24 Oct 2006 00:04:18 +0300 Received: from daebh102.NOE.Nokia.com ([10.241.35.112]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 24 Oct 2006 00:04:20 +0300 Received: from daebe102.NOE.Nokia.com ([10.241.35.115]) by daebh102.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 23 Oct 2006 16:04:17 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 23 Oct 2006 16:04:15 -0500 Message-ID: In-Reply-To: <1461378224.20061023205322@mail.ru> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re[2]: SR1500 + 5000PAL + SAS backplane - no RAID support Thread-Index: Acb2xBj7KdvEVqN4Rou23fr3bl2YWQAIMWgw From: To: X-OriginalArrivalTime: 23 Oct 2006 21:04:17.0612 (UTC) FILETIME=[CD6E80C0:01C6F6E6] Cc: freebsd-scsi@freebsd.org Subject: RE: Re[2]: SR1500 + 5000PAL + SAS backplane - no RAID support X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Oct 2006 21:05:30 -0000 Hmmm, maybe you have the same problem I have with the LSI-1064E . I was able to see a disk though, even though the RAID did not come up. I had to enable the port otherwise the IOC page 2 did not indicate max disks of non-zero, and also not valid RAID info. It also did not help when I executed (enabled the port) afterwards ... strange, you might ask Matthew's opinion on this , I just recently ported his driver to FreeBSD 2.2.X (including required CAM code) for a project I am working on, I did not develop it. In the file mpt.c (location /usr/src/sys/dev/mpt/mpt.c) I had to make a change to enable the port, otherwise the RAID will not get probed because the pages do not contain valid info. Go to function mpt_enable_ioc. Scroll down until you see this snippet: ------------------------- snippet ---------------------------------------- /* * Enable the port if asked. This is only done if we're resetting * the IOC after initial startup. */ //if (portenable) { if (1) { /* * Enable asynchronous event reporting */ //jjk moved it down a bit ? //mpt_send_event_request(mpt, 1); if (mpt_send_port_enable(mpt, 0) !=3D MPT_OK) { printf("failed to enable port 0\n"); return (ENXIO); } mpt_send_event_request(mpt, 1); //jjkhack=20 } return (MPT_OK); -------------------------- snippet --------------------------------------- Change from: if (portenable) { change to: if (1) { You will se I moved down the mpt_send_event_request, but you do not need to do that. Johan . -----Original Message----- From: ext supportsobaka@mail.ru [mailto:supportsobaka@mail.ru]=20 Sent: Monday, October 23, 2006 12:53 PM To: Kruger Johannes (Nokia-ES/Boston) Cc: freebsd-scsi@freebsd.org Subject: Re[2]: SR1500 + 5000PAL + SAS backplane - no RAID support JKnc> You have to setup the RAID-1 volume in the LSI BIOS. JKnc> The normal motherboard BIOS is supposed to execute the bootrom in the JKnc> LSI card, which will allow you to enter the LSI BIOS. JKnc> If I remember correctly it's "control-C" on bootup, instead of "DEL". JKnc> Then you select new IM volume (Integrated mirroring)=20 JKnc> You can migrate your main disk to the volume, and your second disk will JKnc> then be synchronized to look like the first disk. I described in my first message, that RAID was setup in BIOS, but FreeBSD can't see it's raid. It is main problem! ...not "event 0x16" problem Once again: --- In system BIOS I set Mass storage controllers menu SAS controller - Enable SAS configure as SW RAID - Enable RAID was build in controller's BIOS (CTRL+E during boot). --- We talking about Intel 5000PAL + SAS backplane There is LSISAS1054E chip and 3 SAS Ports 1U Active Backplane and Intel Embedded Server Raid Technology II for RAID setup (CTRL+E during boot) FreeBSD can't see raid JKnc> Johan JKnc> -----Original Message----- JKnc> From: owner-freebsd-scsi@freebsd.org JKnc> [mailto:owner-freebsd-scsi@freebsd.org]=20 JKnc> Sent: Monday, October 23, 2006 10:12 AM JKnc> To: freebsd-scsi@freebsd.org JKnc> Subject: SR1500 + 5000PAL + SAS backplane - no RAID support JKnc> -----Original Message----- JKnc> #define MPI_EVENT_SAS_PHY_LINK_STATUS (0x00000012) JKnc> #define MPI_EVENT_SAS_DISCOVERY_ERROR (0x00000013) JKnc> #define MPI_EVENT_IR_RESYNC_UPDATE (0x00000014) JKnc> #define MPI_EVENT_IR2 (0x00000015) JKnc> #define MPI_EVENT_SAS_DISCOVERY (0x00000016) JKnc> Event 0x16 just means that the card is probing for devices attached to JKnc> the PHY's=20 JKnc> In your case 0x12 means a device have been seen on a PHY JKnc> P.S. If you get time and want to do me a favor, configure 2 drives on JKnc> the controller in a RAID-1 configuration. JKnc> Then do a disk test on the RAID-1 volume, say with iozone or any other JKnc> method, and tell me your performance. JKnc> I get slow RAID-1 performance, still cannot figure this out, ~5 JKnc> Mbytse/sec instead of ~ 30 Mbytes/sec with no volume. JKnc> With NCQ enabled it goes up to 15, but it' still not 30. JKnc> I can get faster RAID-1 performance by implementing this in software JKnc> doing parallel writes. JKnc> Johan JKnc> -----Original Message----- JKnc> How I can test it... JKnc> First of all FreeBSD should see RAID, but it only see separated HDD JKnc> (da*) JKnc> This is the problem that I described JKnc> _______________________________________________ JKnc> freebsd-scsi@freebsd.org mailing list JKnc> http://lists.freebsd.org/mailman/listinfo/freebsd-scsi JKnc> To unsubscribe, send any mail to JKnc> "freebsd-scsi-unsubscribe@freebsd.org"