Re: Megacli fails to find SAS adapter
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, | 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). ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Megacli fails to find SAS adapter
Sven Willenberger writes: | 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 | 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 I usually start with that. It should work okay. Check your /compat/linux/dev directory for stuff. It might have created null and some other entries look at the dates. Those nodes could be wrong. We have an empty /compat/linux/dev directory. | # ./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). If one doesn't work the reset probably won't. I be cautious to flash the card. It should work but I haven't tried it. If this is your only card then you have a lot to risk! On prior cards, Adaptec and LSI if the flash failed then the card was toast. MegaCli has some issues as well. Doug A. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Megacli fails to find SAS adapter
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, | 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. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]