bin/143972: mptutil(8) segfault
cowens at greatbaysoftware.com
Mon Feb 15 22:20:01 UTC 2010
>Synopsis: mptutil(8) segfault
>Arrival-Date: Mon Feb 15 22:20:01 UTC 2010
>Originator: Charles Owens
Great Bay Software
FreeBSD beacon 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #2: Thu Feb 11 20:00:47 UTC 2010 cowens at newcastle.greatbaysoftware.com:/usr/obj/usr/src/sys/BEACON i386
(Note: kernel config is essentially PAE)
This work is being performed on a IBM System x3350 M2. It has the ServeRAID-BR10i SAS/SATA Controller which is based on the LSI 1068E processor, as described here:
Initially, the mptutil(8) appeared to work just fine. We used it to put the storage system through its paces, trying to simulate all stages in a RAID array's life-cycle (volume creation, disk failure & replacement, volume deletion and recreation). After having gone through these steps several times, behavior abruptly changed. All invocations of the mptutil command except for "show adapter" and "show volume" now die with segfault.
We've done everything we can think of to try to get the controller/array back to a clean initial state, but to no avail. (This includes using the LSI in-BIOS manager to create/delete volumes -- which in and of itself works fine). The mptutil command just keeps on segfaulting as described.
Note, if a volume does exist, we can /use/ it just fine (to install/run FreeBSD), so the problem doesn't appear to be directly with the mpt(4) driver itself.
Here's the output of "mptutil show adapter":
Board Name: SR-BR10i
Board Assembly: L3-25116-01H
Chip Name: C1068E
Chip Revision: UNUSED
RAID Levels: RAID0, RAID1, RAID1E
RAID0 Stripes: 64K
RAID1E Stripes: 64K
RAID0 Drives/Vol: 1-10
RAID1 Drives/Vol: 2
RAID1E Drives/Vol: 3-10
On system with LSI 1068-based controller (or possibly other types of controllers supported by mpt(4)), boot from non-RAID media into context that includes the mptutil(8) command. This could be a non-RAID hard drive or repair shell using FreeBSD livefs CD or similar.
Use mptutil repeatedly as described to create & delete volumes and list adapter, drive, and volume status. Try rebooting if need be. Eventually (if you're lucky) something will go wrong and mptutil will begin dying as described for most forms of usage.
More information about the freebsd-bugs