From owner-freebsd-stable@FreeBSD.ORG Tue Mar 24 19:00:16 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F9D81065675 for ; Tue, 24 Mar 2009 19:00:16 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id 059BF8FC14 for ; Tue, 24 Mar 2009 19:00:15 +0000 (UTC) (envelope-from spork@bway.net) Received: (qmail 6373 invoked by uid 0); 24 Mar 2009 19:00:15 -0000 Received: from unknown (HELO freemac.nat.fasttrackmonkey.com) (spork@96.57.144.66) by smtp.bway.net with (AES128-SHA encrypted) SMTP; 24 Mar 2009 19:00:15 -0000 Message-Id: <754A2F8B-21E7-493A-BD31-EA5691082D1E@bway.net> From: Charles Sprickman To: =?ISO-8859-1?Q?Peter_Ankerst=E5l?= In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Date: Tue, 24 Mar 2009 15:00:14 -0400 References: <91FBB56E-9B1F-469D-A83E-03396AA850FC@pean.org> <61AAA3A1-B794-4CF5-8F16-F30DB42940D9@verweg.com> X-Mailer: Apple Mail (2.930.3) Cc: stable@freebsd.org Subject: Re: LSI Logic raid status X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 19:00:17 -0000 On Mar 24, 2009, at 9:20 AM, Peter Ankerst=E5l wrote: > > On Mar 24, 2009, at 2:08 PM, Ruben van Staveren wrote: > >> >> On 24 Mar 2009, at 13:40, Peter Ankerst=E5l wrote: >> >>> Hi, >>> >>> I have a LSI Logic sata/sas raid running, is there a way to see =20 >>> the state of >>> the volume, like optimal, degraded or resyncing? >> >> There is sysutils/linux-megacli >> > Sorry about that. This is not megaraid its the mpt driver. > LSI SAS3041E-R PCI-e > > mpt0: port 0x2000-0x20ff mem =20 > 0xd0210000-0xd0213fff,0xd0200000-0xd020ffff irq 16 at device 0.0 on =20= > pci3 > mpt0: [ITHREAD] > mpt0: MPI Version=3D1.5.19.0 > mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 ) > mpt0: 1 Active Volume (2 Max) > mpt0: 2 Hidden Drive Members (14 Max) While I haven't found a way to actually configure the thing in =20 FreeBSD, the mpt driver does make some information available via sysctl: [spork@uniweb ~]$ sysctl -a|grep dev.mpt dev.mpt.0.%desc: LSILogic SAS/SATA Adapter dev.mpt.0.%driver: mpt dev.mpt.0.%location: slot=3D8 function=3D0 dev.mpt.0.%pnpinfo: vendor=3D0x1000 device=3D0x0054 subvendor=3D0x1028 =20= subdevice=3D0x1f09 class=3D0x010000 dev.mpt.0.%parent: pci2 dev.mpt.0.debug: 3 dev.mpt.0.role: 1 dev.mpt.0.vol_member_wce: NC dev.mpt.0.vol_queue_depth: 128 dev.mpt.0.vol_resync_rate: 0 dev.mpt.0.nonoptimal_volumes: 0 Don't test whether the "nonoptimal_volumes" parameter works, it does - but if you pull a drive, FreeBSD likes to panic both on the loss of a =20= disk and then again when the drive is reconnected and the rebuild completes. This is apparently some problem in the CAM layer, not the mpt driver, =20= but it's something to be aware of. Scott Long has noted that this is being worked on in 8.x. Charles > > > -- > Peter Ankerst=E5l > peter@pean.org > http://www.pean.org/ > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org=20 > " Charles Sprickman NetEng/SysAdmin Bway.net - New York's Best Internet www.bway.net spork@bway.net - 212.655.9344