From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 6 15:33:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA7481065671 for ; Thu, 6 Mar 2008 15:33:42 +0000 (UTC) (envelope-from cristiano.deana@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 239E08FC14 for ; Thu, 6 Mar 2008 15:33:41 +0000 (UTC) (envelope-from cristiano.deana@gmail.com) Received: by ug-out-1314.google.com with SMTP id y2so3971143uge.37 for ; Thu, 06 Mar 2008 07:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=y2CjMTrgLUBx3fJ3kDudhS5EwFPxg+sTjVw66tNHl84=; b=eqrn/04qi/bXjrAsP5sc1HJRdoLL3iXxXP6JpvlolzTZU0BKXz2ZImOiSkoPrzKFULcFZb3Rwjjn9utqWgIrn+9SU6gKzk0sgXY8Z58xrGIIoSkMbaoQLeXPt8smPmMKKNbbDYNpxOQJusfvSAVsPVDNTKg4/ISPFemiR9hVSis= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RBKhQwuQcLREnA5w2Feo9KgmO5v2/kf00EXhIaMag/X1P+Z6sjkaVhBtzlQdIBolOcNHqn5omH77H4l5gSXsJnPXOv8ITMfMxzqZ1mYpyqVoKUBUAimGPVF3N1l8xUtH0bTPmgD29PbACDc0gud5BmgP7DPYNirCTZ2iUo2iZpk= Received: by 10.78.154.14 with SMTP id b14mr10473421hue.55.1204817620550; Thu, 06 Mar 2008 07:33:40 -0800 (PST) Received: by 10.78.141.5 with HTTP; Thu, 6 Mar 2008 07:33:40 -0800 (PST) Message-ID: Date: Thu, 6 Mar 2008 16:33:40 +0100 From: "Cristiano Deana" To: "John Baldwin" , Scott In-Reply-To: <200803060832.44862.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080305111237.W50685@maildrop.int.zabbadoz.net> <200803060832.44862.jhb@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: mpt driver: check raid status X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2008 15:33:43 -0000 Hi, first of all thanks everybody. this is the output about mpt0, can i help with some other info? mpt0@pci0:14:8:0: class=0x010000 card=0x1f081028 chip=0x00541000 rev=0x01 hdr=0x00 vendor = 'LSI Logic (Was: Symbios Logic, NCR)' device = 'SAS 3000 series, 8-port with 1068 -StorPort' class = mass storage subclass = SCSI On Thu, Mar 6, 2008 at 2:32 PM, John Baldwin wrote: > > On Wednesday 05 March 2008 06:13:06 am Bjoern A. Zeeb wrote: > > On Wed, 5 Mar 2008, Cristiano Deana wrote: > > > Hi, > > > > > > I'm using a 7-RELEASE on a Dell PowerEdge 1955, using a mpt driver to > > > manage a hardware raid1. > > > Is there any way to check the status of the raid? > > > > Not really. > > > > > Now it's running on a single disk (the second one failed and has been > > > removed), and the only thing i can see are: > > > mpt0: mpt_cam_event: 0x16 > > > mpt0: mpt_cam_event: 0x12 > > > mpt0: mpt_cam_event: 0x16 > > > mpt0: mpt_cam_event: 0x15 > > > mpt0: mpt_cam_event: 0x21 > > > mpt0: mpt_cam_event: 0x15 > > > mpt0: mpt_cam_event: 0x21 > > > mpt0: mpt_cam_event: 0x15 > > > mpt0: mpt_cam_event: 0x21 > > > > > > in messages. > > > > > > Thanks in advance > > > > mpt0: mpt_cam_event: 0x16 MPI_EVENT_SAS_DISCOVERY > > > > most likely started > > > > mpt0: mpt_cam_event: 0x12 MPI_EVENT_SAS_PHY_LINK_STATUS > > mpt0: mpt_cam_event: 0x16 MPI_EVENT_SAS_DISCOVERY > > > > most likely done > > > > mpt0: mpt_cam_event: 0x15 MPI_EVENT_IR2 > > > > that could be LD/PD/... state changed > > > > mpt0: mpt_cam_event: 0x21 MPI_EVENT_LOG_ENTRY_ADDED > > mpt0: mpt_cam_event: 0x15 MPI_EVENT_IR2 > > mpt0: mpt_cam_event: 0x21 MPI_EVENT_LOG_ENTRY_ADDED > > mpt0: mpt_cam_event: 0x15 MPI_EVENT_IR2 > > mpt0: mpt_cam_event: 0x21 MPI_EVENT_LOG_ENTRY_ADDED > > > > > > Giving more details would depend on a subtype which is dependend > > on the event. > > > > What we's really need is someone with the specs to write the > > code and add the printfs, etc. > > It's there in mpt_raid.c, but on some mpt chips the mpt_raid stuff probes too > early and so it doesn't see any RAID volumes. Bug scottl@ to fix mpt(4). We > have a machine at work that has a newer mpt(4) part with the same feature. > > -- > John Baldwin > -- Cris, member of G.U.F.I Italian FreeBSD User Group http://www.gufi.org/