Hi, I have a LSI Logic sata/sas raid running, is there a way to see the state of the volume, like optimal, degraded or resyncing? I've tried several commands with camcontrol but I cant figure it out. -- Peter Ankerst?l peter@pean.org http://www.pean.org/
On 24 Mar 2009, at 13:40, Peter Ankerst?l wrote:> Hi, > > I have a LSI Logic sata/sas raid running, is there a way to see the > state of > the volume, like optimal, degraded or resyncing?There is sysutils/linux-megacli Yes, looks like ports/130505 is still pending unfortunately> > I've tried several commands with camcontrol but I cant figure it out. > > -- > Peter Ankerst?l > 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 > " >Regards, Ruben
On Mar 24, 2009, at 2:08 PM, Ruben van Staveren wrote:> > On 24 Mar 2009, at 13:40, Peter Ankerst?l wrote: > >> Hi, >> >> I have a LSI Logic sata/sas raid running, is there a way to see 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: <LSILogic SAS/SATA Adapter> port 0x2000-0x20ff mem 0xd0210000-0xd0213fff,0xd0200000-0xd020ffff irq 16 at device 0.0 on pci3 mpt0: [ITHREAD] mpt0: MPI Version=1.5.19.0 mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 ) mpt0: 1 Active Volume (2 Max) mpt0: 2 Hidden Drive Members (14 Max) -- Peter Ankerst?l peter@pean.org http://www.pean.org/
On Tue, 24 Mar 2009 13:40:20 +0100 Peter Ankerst?l <peter@pean.org> wrote:> Hi, > > I have a LSI Logic sata/sas raid running, is there a way to see the > state of > the volume, like optimal, degraded or resyncing? > > I've tried several commands with camcontrol but I cant figure it out. > > -- > Peter Ankerst?l > 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 mpt0 Volumes: Id Size Level Stripe State Write-Cache Name da0 ( 232G) RAID-1 OPTIMAL Enabled [outi@munich:~%] sudo mptutil volume status da0 Volume da0 status: state: OPTIMAL flags: ENABLED [outi@munich:~%] sudo mptutil show adapter mpt0 Adapter: Board Name: SAS5ira Board Assembly: 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=//depot/user/jhb/raid&HIDEDEL=NO It compiles and works out of the box on 7.1-RELEASE. Regards, Patrick -- ?=================== Patrick Hurrelmann Mannheim, Germany outi@bytephobia.de www.bytephobia.de