Date: Wed, 25 Mar 2009 18:11:12 +0100 From: Patrick Hurrelmann <outi@bytephobia.de> To: Peter =?UTF-8?B?QW5rZXJzdMOlbA==?= <peter@pean.org> Cc: stable@freebsd.org, John Baldwin <jhb@FreeBSD.org> Subject: Re: LSI Logic raid status Message-ID: <20090325181112.311da216@attini-ws2> In-Reply-To: <91FBB56E-9B1F-469D-A83E-03396AA850FC@pean.org> References: <91FBB56E-9B1F-469D-A83E-03396AA850FC@pean.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Mar 2009 13:40:20 +0100 Peter Ankerst=C3=A5l <peter@pean.org> wrote: > Hi, >=20 > I have a LSI Logic sata/sas raid running, is there a way to see the =20 > state of > the volume, like optimal, degraded or resyncing? >=20 > I've tried several commands with camcontrol but I cant figure it out. >=20 > -- > Peter Ankerst=C3=A5l > peter@pean.org > http://www.pean.org/ Hi all, actually there is finally a solution. In Perforce you'll find mptutil and mptd. The first one is a utility to check the raid status and the second one a daemon that checks and informs about the raid status periodically. Again many thanks to John Baldwin (cc'ed to this mail) for this awesome and highly appreciated work and to made Yahoo actually let him release the sources. Examples from usage on a Dell PowerEdge 860 with PERC5/iR: [outi@munich:~%] sudo mptutil show volumes=20 mpt0 Volumes: Id Size Level Stripe State Write-Cache Name da0 ( 232G) RAID-1 OPTIMAL Enabled =20 [outi@munich:~%] sudo mptutil volume status da0 Volume da0 status: state: OPTIMAL flags: ENABLED [outi@munich:~%] sudo mptutil show adapter =20 mpt0 Adapter: Board Name: SAS5ira Board Assembly:=20 Chip Name: C1068 Chip Revision: UNUSED RAID Levels: RAID0, RAID1, RAID1E RAID0 Stripes: 64K RAID1E Stripes: 64K RAID0 Drives/Vol: 2-8 RAID1 Drives/Vol: 2 RAID1E Drives/Vol: 3-8 Both tools can be found at http://perforce.freebsd.org/depotTreeBrowser.cgi?FSPC=3D//depot/user/jhb/ra= id&HIDEDEL=3DNO It compiles and works out of the box on 7.1-RELEASE. =20 Regards, Patrick --=20 =EF=BB=BF=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Patrick Hurrelmann Mannheim, Germany outi@bytephobia.de www.bytephobia.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090325181112.311da216>