Jump to content

Driver for LSI MegaRAID SAS family

RAID LSI

  • Please log in to reply
288 replies to this topic

#281
noradninj

noradninj

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
Attached is a version compiled for Mac OS X 10.6.8 running a 64 bit kernel. Tested on Mac OS X 10.6.8 Server running on a Dell PowerEdge 2900 with a PERC 5/i card.

You will need to run sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.Boot ‘Kernel Flags’ ‘arch=x86_64’ in Terminal to force 64-bit kernel loading.


Forked Git repository is here https://github.com/n....8-x64bitKernel



Attached File  Screen Shot 2015-05-27 at 9.33.54409 AM.jpg   109.15KB   2 downloads

Attached File  SASMegaRAID.kext.zip   60.35KB   9 downloads

#282
Music_remedy

Music_remedy

    InsanelyMac Protégé

  • Members
  • Pip
  • 6 posts

So, to my understanding:

 

- In order to load this kext, my yosemite installation would need to run in developer mode

- Although the HP SmartArray P400 is Running an LSI 1078 Controller, it's not supported, because the firmware on it is actually an HP one and not the original LSI one 

 

(i've checked the PCI IDs don't match for sure, although it seems to be detected by Yosemite, so at least it's getting loaded in EFI) 



#283
dukzcry

dukzcry

  • Members
  • PipPipPip
  • 138 posts
  • Gender:Male
  • Location:Russia

So, to my understanding:

 

- In order to load this kext, my yosemite installation would need to run in developer mode

- Although the HP SmartArray P400 is Running an LSI 1078 Controller, it's not supported, because the firmware on it is actually an HP one and not the original LSI one 

 

(i've checked the PCI IDs don't match for sure, although it seems to be detected by Yosemite, so at least it's getting loaded in EFI) 

 

Well, you should be able to load it after OS is booted without need of dev mode, since its added in permitted kexts list

cat /System/Library/Extensions/AppleKextExcludeList.kext/Contents/Info.plist | grep SASMega

                <string>cc.dukzcry.SASMegaRAID  1</string>

However it most likely won't work in case you try to boot OS X from the volume on a raid card. At least last time I've checked, the non-signed kext granting didn't work for kexts with early boot requirement: http://www.insanelym...14#entry2134840

 

The 3rd party firmware is compatible if it at least exposes the same ABI as LSI fw does. Dell firmware works, for example.



#284
PhaseMelter

PhaseMelter

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts

ElStuiterbal,

If there is no output, that most likely means the kext doesn't match against your device. What PCI device ID do you have (you could look at using dspci/lspci or using another OS)?

justroach,

I remember you were successfully using H310 cards. Could you still look at DevIDs and FW revisions of your cards, so we could help ElStuiterbal to get running?

 

I went to Windows and used the Device Manager to get the vendor and device id. This gave me the following:

PCI\VEN_8086&DEV_8CA2&SUBSYS_50011458&REV_00\3&11583659&0&FB

If I am correct, this means that the vendor id = 8086 and the device id = 8CA2, which seems weird. Maybe I didn't properly flash my H310?



#285
dukzcry

dukzcry

  • Members
  • PipPipPip
  • 138 posts
  • Gender:Male
  • Location:Russia

I went to Windows and used the Device Manager to get the vendor and device id. This gave me the following:

PCI\VEN_8086&DEV_8CA2&SUBSYS_50011458&REV_00\3&11583659&0&FB

If I am correct, this means that the vendor id = 8086 and the device id = 8CA2, which seems weird. Maybe I didn't properly flash my H310?

That's wrong device. 8086 is intel, perhaps some device on your mobo.

Correct one would be VEN_1000&DEV_0073:

http://www.pcidataba...e_search=Search

Here's a little utility to show devices id under OS X: http://www.insanelym...10#entry2026275



#286
vindu

vindu

    InsanelyMac Protégé

  • Members
  • Pip
  • 31 posts

i've got an ibm m1115 which i had crossflashed to a lsi 9211-8i IR previously which i've re-flashed with the m1015 bootrom and the newest firmware from ibm which appears to be 20.11.1-0184

currently running 10.10.3
installed the release sasmegaraid.kext and have it showing up in the system information which is great
problem is it doesn't seem to be recognising any disks connected to it though, i know the driver will only present logical disks so the os so i've tried creating single disk raid0 arrays as well as creating a 2 disk raid0 array but they don't seem to show up in the os at all?
mfiutil is able to identify the individual disks as well as the volumes but nothing shows up in disk utility
have tried flipping the prefermsi key as well as the uncontiguous enumeration kext too without any change
 

here's the output from mfiutil

sh-3.2# mfiutil show adapter
mfi0 Adapter:
    Product Name: ServeRAID M1015 SAS/SATA Controller
   Serial Number: SP30205654
        Firmware: 20.11.1-0184
     RAID Levels: JBOD, RAID0, RAID1, RAID10
  Battery Backup: not present
           NVRAM: 32K
  Onboard Memory: 0M
  Minimum Stripe: 8K
  Maximum Stripe: 64K
sh-3.2# mfiutil show drives
mfi0 Physical Drives:
 1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA E1:S4
 2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA E1:S7
 3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA E1:S0
 4 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA E1:S3
sh-3.2# mfiutil show config
mfi0 Configuration: 1 arrays, 1 volumes, 0 spares
    array 0 of 4 drives:
        drive  3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA
        drive  4 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA
        drive  1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA
        drive  2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA
    volume mfid0 (950G) RAID-0 64K OPTIMAL <ssdraid0> spans:
        array 0
sh-3.2# mfiutil show volumes
mfi0 Volumes:
  Id     Size    Level   Stripe  State   Cache   Name
 mfid0 (  950G) RAID-0      64K OPTIMAL Disabled <ssdraid0>

any idea guys?

 

 

update: managed to flash the m1115 with the lsi megaraid 9240-8i firmware which made it pickup as an actual m1115, still no difference in osx :( sasmegaraid picks it up, shows the disks but just won't passthrough the virtualdisks

here's the new output:

sh-3.2# mfiutil show adapter
mfi0 Adapter:
    Product Name: ServeRAID M1115 SAS/SATA Controller
   Serial Number: SP30205654
        Firmware: 20.13.1-0208
     RAID Levels: JBOD, RAID0, RAID1, RAID10
  Battery Backup: not present
           NVRAM: 32K
  Onboard Memory: 0M
  Minimum Stripe: 8K
  Maximum Stripe: 64K
sh-3.2# mfiutil show drives
mfi0 Physical Drives:
 0 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA E1:S7
 1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA E1:S0
 2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA E1:S4
 3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA E1:S3
sh-3.2# mfiutil show config
mfi0 Configuration: 1 arrays, 1 volumes, 0 spares
    array 0 of 4 drives:
        drive  1 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=145218403311> SATA
        drive  3 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150284400376> SATA
        drive  2 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=150603400379> SATA
        drive  0 (  238G) ONLINE <SanDisk SD7SB3Q2 0000 serial=143799401997> SATA
    volume mfid0 (950G) RAID-0 64K OPTIMAL <sandisk_4xr0> spans:
        array 0
sh-3.2# mfiutil show volumes
mfi0 Volumes:
  Id     Size    Level   Stripe  State   Cache   Name
 mfid0 (  950G) RAID-0      64K OPTIMAL Disabled <sandisk_4xr0>

update2: turns out it's been working all along, just didn't show up in disk utility gui or in terminal. read through the entire thread again and had found a post mentioning needing to format the drive in windows first before showing up in osx so i booted a windows installation, formatted in ntfs then formatted it in hfs+ in osx and all is well :)

Attached Files



#287
flavo

flavo

    InsanelyMac Protégé

  • Members
  • Pip
  • 30 posts

Just here to say:
The greatest big kudos to Dukzcry!!!
After almost 3 months I received my card http://www.ebay.com/...=STRK:MEBIDX:IT
Fujitsu Siemens RAID Controller W26361-W15812-X-02 LSI 8708EM2 256M
At star it cannot format and it mess with my audio interface and Parallels installations.
With IO Debug kext with msi=no everything works VERY well.
Thanks again and big hugs for JFIVE for the DEEP help.
 
Update
 
After start loading the 9TB monster (6x1,5TB) in the six hour it goes off-line freezing finder and other apps.
With two boots it came in-line again but about a hour same problem..
Update the with latest firmware and tested all the kexts again and no juice. It became worst and have only a half hour life.
I do not used the unsafe kexts because I am a dangerous guy...
I reading the forum again and again while waiting for some tip
HEEEEELLLPPP!?

 

SCSI Parallel Domain 0:

  Product:    MegaRAID SAS PCI Express™ ROMB
  Revision:    Firmware 11.0.1-0048
  Initiator Identifier:    65
  Description:    Cache 256MB RAM

SCSI Target Device @ 0:

  Manufacturer:    LSI
  Model:    MegaRAID SAS RMB
  Revision:    1.40
  SCSI Target Identifier:    0
  SCSI Device Features:    
  SCSI Initiator/Target Features:    
  Peripheral Device Type:    0

SCSI Logical Unit @ 0:

  Capacity:    9 TB (8,998,493,356,032 bytes)
  Manufacturer:    LSI
  Model:    MegaRAID SAS RMB
  Revision:    1.40
  Removable Media:    Yes
  Detachable Drive:    No
  BSD Name:    disk8
  LUN Address:    00:00:00:00:00:00:00:00
  Partition Map Type:    GPT (GUID Partition Table)
  S.M.A.R.T. status:    Not Supported
  Volumes:
EFI:
  Capacity:    209.7 MB (209,715,200 bytes)
  BSD Name:    disk8s1
  Content:    EFI
Kontakt:
  Capacity:    9 TB (8,998,149,382,144 bytes)
  File System:    HFS+
  BSD Name:    disk8s2
  Content:    Apple_HFS
  Volume UUID:    FDFFCF43-FCF6-3A46-AEBF-56119A9AD6F4
 
 
running the mfiutil I get the following output:

 

sudo mfiutil show adapter

mfi0 Adapter:

    Product Name: ̢p

   Serial Number: ?Вh?

        Firmware:

     RAID Levels: JBOD, RAID0, RAID1, RAID5, RAID1E, RAID6, RAID10, RAID50

  Battery Backup: not present

  Onboard Memory: 28360M

  Minimum Stripe: 32M

  Maximum Stripe: 512B

 

EDIT #2

I find a forum that claims to have RAID Card Compatbility Database thread

 

Where we can see

Gigabyte EX58-UD5:

Working:

Adaptec 31605
Areca ARC-1220
Dell Perc 5/i (only works with tape mod)

Not Working:

LSI Megaraid 8888ELP (same family of chip 1078)

It Is a dead end?

 

update

Must be conflict... in safe mode it works like a clock

 

FINAL

thats ok now with raid, but still fighting with other usb (I have a lot)

with some edit in SASMegaRAID.kext and AppleLSIFusionMPT.kex all works well.

With the preference for Thunderbolt I imagine a bad future for pci drives...

Thanks for all dukzcry!!! SUBERB!!!!


Edited by flavo, 18 July 2015 - 07:42 PM.


#288
BillyGuy

BillyGuy

    InsanelyMac Protégé

  • Members
  • Pip
  • 13 posts

Hey :)

I followed the post from a distance, didn't have time to try anything.

 

I do have a little time now, and I got at an auction some equipment I needed, and with it, there was 3 LSI RAID cards :

a 9750-8e, a 9286-8e and 9260-8i.

(I'm on MacPro 2006, but you told me already a few months ago, that it should not be a problem.)

 

With one could best work with your driver please ?

TIA :)



#289
teflux77

teflux77

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Hi all,

 

I have the following setup

-> Yosemite 10.10.4

-> Mac Pro (Late 2013) - 3,5 GHz 6-Core Intel Xeon E5

-> Echo Express III-D Desktop Thunderbolt 2 Expansion Chassis

-> MegaRAID SAS 9380-8e -> suport UEFI

 

I have downloaded the SASMegaRAID.kext.zip file from post of noradninj - Posted 27 May 2015 - 03:36 PM

 

Also did sudo nvram boot-args=kext-dev-mode=1

 

When I install the kext to /System/Library/Extensions/ I get this error message, see below

 

System Extension Cannot Be Used

The system extension “/System/Library/Extensions/SASMegaRAID.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update.

 

EDIT: I have installed the kext with this tool. http://www.hackintos...ite-compatible/

 

No error message but the card does not appears on SAS device tree

 

I checked by doing kextstat and the kext is not loaded

 

EDIT 2: I tried sudo kextload /System/Library/Extensions/SASMegaRAID.kext

 

No error message

 

Then I did

 

sudo kextutil /System/Library/Extensions/SASMegaRAID.kext

 

and I have got the message

 

Diagnostics for /System/Library/Extensions/SASMegaRAID.kext:

Code Signing Failure: not code signed

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext "/System/Library/Extensions/SASMegaRAID.kext"

 

I did 

 

sudo kextcache -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions

 

And now when I do kextstat I ve got the SASMegaRAID loaded

 

141    0 0xffffff7f8380c000 0x6000     0x6000     com.apple.driver.SASMegaRAID (1) <58 12 5 4 3 1>

 

OK so loaded but does not work :(

 

Find below the info from the windows driver

 

Device description

 

AVAGO MegaRAID SAS 9380-8e

 

Devis Instance Path

 

PCI\VEN_1000&DEV_005D&SUBSYS_93801000&REV_02\C&AC23C16&0&00280018001800100008

 

Hardware IDs

 

PCI\VEN_1000&DEV_005D&SUBSYS_93801000&REV_02

PCI\VEN_1000&DEV_005D&SUBSYS_93801000

PCI\VEN_1000&DEV_005D&CC_010400

PCI\VEN_1000&DEV_005D&CC_0104

 

Compatibles IDs

 

PCI\VEN_1000&DEV_005D&SUBSYS_93801000&REV_02

PCI\VEN_1000&DEV_005D&SUBSYS_93801000

PCI\VEN_1000&DEV_005D&CC_010400

PCI\VEN_1000&DEV_005D&CC_0104

 

And from the MAC

 

pci1000,5d:

 

  Type: RAID Controller

  Driver Installed: No

  Tunnel Compatible: No

  Pause Compatible: No

  MSI: No

  Bus: PCI

  Slot: Thunderbolt@238,0,0

  Vendor ID: 0x1000

  Device ID: 0x005d

  Subsystem Vendor ID: 0x1000

  Subsystem ID: 0x9380

  Revision ID: 0x0002

  Link Width: x8

  Link Speed: 5.0 GT/s

 

As now I need to temporeraly access to a disk bay from our SAS3 controller with the MAC PRO as our HP z820 in under maintenance. I would like to prevent me to boot on Windows mode (bootcamp) to transfer the files... :D

 

How could I fixed this issue?

 

I'am not used to code or admin OSX, coming from PC and C++ C# .NET world (sorry...) but I feel ready to get knowledge.

 

EDIT: Okey the Adapter 93xx are not supported by this driver. Sorry.

 

Do you think there is a way to include the 93xx family in this driver ?








0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2015 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy