Bug 225997 - "mfiutil show volumes" incorrectly identifies RAID-1 vs RAID-10 volumes; mfi(4) misreporting volume to mfiutil/MegaCLI
Summary: "mfiutil show volumes" incorrectly identifies RAID-1 vs RAID-10 volumes; mfi(...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-18 04:55 UTC by Enji Cooper
Modified: 2018-02-18 21:03 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer 2018-02-18 04:55:01 UTC
Based on the math shown below (and my knowledge of the configuration), my configuration is being misreported as RAID-1 (in reality it's RAID-10):

# mfiutil show volumes                                                                                                                                                          
mfi0 Volumes:                                    
  Id     Size    Level   Stripe  State   Cache   Name                                             
 mfid0 ( 5588G) RAID-1      64K OPTIMAL Disabled 
# sudo mfiutil show drives
mfi0 Physical Drives:
 4 ( 2795G) ONLINE <WDC WD30EFRX-68E 0A82 serial=WD-WCC4N3ZKL32E> SATA E1:S0
 5 ( 2795G) ONLINE <WDC WD30EFRX-68A 0A80 serial=WD-WMC1T1018555> SATA E1:S3
 6 ( 2795G) ONLINE <WDC WD30EFRX-68A 0A80 serial=WD-WMC1T1017008> SATA E1:S1
 7 ( 2795G) ONLINE <WDC WD30EFRX-68E 0A80 serial=WD-WCC4N0460371> SATA E1:S2
Comment 1 Mark Johnston freebsd_committer 2018-02-18 17:39:47 UTC
What do sysutils/storcli and/or sysutils/megacli report? (Both need to be installed from a ports tree.)
Comment 2 Enji Cooper freebsd_committer 2018-02-18 21:03:07 UTC
Huh... looks like a driver bug?

$ sudo MegaCli -LDInfo -Lall -aall                                                                                                                         
                                     

Adapter 0 -- Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name                :
RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
Size                : 5.456 TB
Sector Size         : 512
Is VD emulated      : Yes
Mirror Data         : 5.456 TB
State               : Optimal
Strip Size          : 64 KB
Number Of Drives per span:2
Span Depth          : 2
Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy   : Enabled
Encryption Type     : None
Bad Blocks Exist: No
Is VD Cached: No



Exit Code: 0x00