NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Available options for managing mfi(4) with NetBSD 6.0? (Linux MegaCli)



On Thu, Nov 08, 2012 at 04:25:40PM +0000, Hugo Silva wrote:
> On 11/08/12 14:15, Manuel Bouyer wrote:
> > On Thu, Nov 08, 2012 at 12:00:30PM +0000, Hugo Silva wrote:
> >> Hello,
> >>
> >> I was wondering what other people are using to manage mfi devices from
> >> NetBSD. Apparently there are no options besides bioctl (limited
> >> functionality) and to replace a failed disk one to reboot the machine.
> >>
> >>
> >> Found http://mail-index.netbsd.org/tech-kern/2012/09/16/msg014001.html
> >> but it appears to be related to current only.
> > 
> > This has been commied to and pulled up to netbsd-6.
> > 
> 
> Could you share how you got MegaCli to work ?
> 
> 
> I've been trying to get it to play nicely and here's what I did so far:
> 
>  - Installed suse_base-12.1nb3 (binary would not run without this)
>  - Got the MegaCli zip, ran the following locally, uploading the
> relevant files to the server:
>   -  rpm2cpio.pl MegaCli-8.04.07-1.noarch.rpm | cpio -ivd
> ./opt/MegaRAID/MegaCli/libstorelibir-2.so.13.05-0
>   - rpm2cpio.pl MegaCli-8.04.07-1.noarch.rpm | cpio -ivd
> ./opt/MegaRAID/MegaCli/MegaCli64
>  -  mount_procfs -o linux procfs /emul/linux/proc
> 
>  At this point MegaCli64 runs, but it can't find the controller:
> 
> # ./MegaCli64 -PDList -a0
> 
> User specified controller is not present.
> Failed to get CpController object.
> 
> Exit Code: 0x01

You have to create /dev/mfi0 as well:
crw-------  1 root  wheel  205, 0 Sep 13 21:39 /dev/mfi0

and don't mounr /emul/linux/proc, but just create a fake
/emul/linux/proc/devices containing:
Character devices:
205 megaraid_sas_ioctl

I think nothing more is needed

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index