Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2006 10:27:39 -0400
From:      Sven Willenberger <sven@dmv.com>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Megacli fails to find SAS adapter
Message-ID:  <1160576859.10492.5.camel@lanshark.dmv.com>
In-Reply-To: <200610110511.k9B5Bk6D037708@ambrisko.com>
References:  <200610110511.k9B5Bk6D037708@ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2006-10-10 at 22:11 -0700, Doug Ambrisko wrote:
> Sven Willenberger writes:
> | FreeBSD 6.2-PRERELEASE #3: Tue Oct 10 13:58:29 EDT 2006
> | LSi 8480e SAS Raid card
> | 
> | mount:
> | linprocfs on /compat/linux/proc (linprocfs, local)
> | linsysfs on /compat/linux/sys (linsysfs, local)
> | /dev/mfid0s1d on /usr/local/pgsql (ufs, local, noatime)
> | 
> | dmesg:
> | mfi0: 2025 - PCI 0x041000 0x04411 0x041000 0x041002: Firmware initialization started (PCI ID 0411/1000/1002/1000)
> | mfi0: 2026 - Type 18: Firmware version 1.00.00-0074
> | mfi0: 2027 - Battery temperature is normal
> | mfi0: 2028 - Battery Present
> | mfi0: 2029 - PD 39(e1/s255) event: Enclosure (SES) discovered on PD 27(e1/s255)
> | mfi0: 2030 - PD 56(e2/s255) event: Enclosure (SES) discovered on PD 38(e2/s255)
> | mfi0: 2031 - PD 39(e1/s255) event: Inserted: PD 27(e1/s255)
> | mfi0: 2032 - Type 29: Inserted: PD 27(e1/s255) Info: enclPd=27, scsiType=d, portMap=10, sasAddr=50015b2180001839,0000000000000000
> | mfi0: 2033 - PD 56(e2/s255) event: Inserted: PD 38(e2/s255)
> | 
> | pkg_info:
> | linux_base-fc-4_9
> | 
> | I have downloaded the Megacli and, using rpm2cpio extracted
> | MegaCli-1.01.09-0.i386.rpm into my home directory.
> | 
> | ~/usr/sbin/MegaCli
> | brandelf -t Linux usr/sbin/MegaCli
> | 
> | cd usr/sbin
> | 
> | # ./MegaCli -EncInfo -aALL
> | 
> | ERROR:Could not detect controller.
> | # ./MegaCli -CfgDsply -aALL
> | 
> | ERROR:Could not detect controller.
> | 
> | Do I actually need to set up the links in /compat/linux/sys for the SAS
> | raid card? or should this rpm be installed into the /compat/linux
> | directory? I need to upgrade the firmware on this card as for some
> | reason the webbios will not let me configure a Raid10 array and the only
> | way I can see to upgrade the fw is to use the megacli utility.
> 
> Make sure you have the Linux ioctl module loaded before linsysfs so it
> can register the hooks.  kldstat/kernel config will help.  One sanity
> check is to do:
>   dhcp194:ambrisko 11] cat /compat/linux/sys/class/scsi_host/host*/proc_name
>   megaraid_sas
>   (null)
>   dhcp194:ambrisko 12] 
> 
> If you don't see megaraid_sas then it isn't going to work and is
> missing the linux mfi module.  Also
> you need to set:
> 	sysctl compat.linux.osrelease=2.6.12
> or things won't work well.  This will probably break your fc-4_9 Linux 
> install until the updates to Linux emulation is merged (maybe it
> has but I don't think so).  Since it is a static binary we don't have 
> linux base installed.
> 
> Doug A.
> _______________________________________________

Adding mfi_linux_enable="YES" to /boot/loader.conf did do the trick of
having the device added to the system:

# cat /compat/linux/sys/class/scsi_host/host*/proc_name
(null)
megaraid_sas
(null)

# sysctl compat.linux
compat.linux.oss_version: 198144
compat.linux.osrelease: 2.6.12
compat.linux.osname: Linux

Although the MegaCli utility no longer complains about not finding a
controller, it sadly does nothing else either (except dump core on
certain commands):

# ./MegaCli -AdpAllinfo -a0

# ./MegaCli -AdpGetProp SpinupDriveCount -a0

Segmentation fault (core dumped)
# ./MegaCli -LDGetNum -a0

Failed to get VD count on adapter -9993.
# ./MegaCli -CfgFreeSpaceinfo -a0


Failed to initialize RM


and so on ... I am guessing this is an issue with the MegaCli software
now; needless to say I certainly doubt that this will allow me to flash
the card bios (or even it if *could*, I would be leery of the process).




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1160576859.10492.5.camel>