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)



Hi,


> 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


I've a PERC H700 and a recent NetBSD-6.0_STABLE kernel (from yesterday). But 
even after creating /dev/mfi0 and /emul/linux/proc/devices, MegaCli didn't see 
any adapter.


From ktrace, no problem on megaraid_sas_ioctl but it seems to fail on 
/sys/class/scsi_host:

 22232  22232 MegaCli64 CALL  access(0x60bafc,4)
 22232  22232 MegaCli64 NAMI  "/emul/linux/dev/megaraid_sas_ioctl_node"
 22232  22232 MegaCli64 RET   access 0
 22232  22232 MegaCli64 CALL  stat64(0x60bafc,0x7f7fffffdcb0)
 22232  22232 MegaCli64 NAMI  "/emul/linux/dev/megaraid_sas_ioctl_node"
 22232  22232 MegaCli64 RET   stat64 0
 22232  22232 MegaCli64 CALL  open(0x60bafc,0,0xcd)
 22232  22232 MegaCli64 NAMI  "/emul/linux/dev/megaraid_sas_ioctl_node"
 22232  22232 MegaCli64 RET   open 3
 [...]
 20397  20397 MegaCli64 RET   mmap 140187585712128/0x7f7ff73f9000
 20397  20397 MegaCli64 CALL  close(4)
 20397  20397 MegaCli64 RET   close 0
 20397  20397 MegaCli64 CALL  lstat64(0x7f7fffffdc20,0x7f7fffffdb80)
 20397  20397 MegaCli64 NAMI  "/emul/linux/sys/class/scsi_host"
 20397  20397 MegaCli64 NAMI  "/sys/class/scsi_host"
 20397  20397 MegaCli64 RET   lstat64 -1 errno -2 No such file or directory
 20397  20397 MegaCli64 CALL  ioctl(3,_IOWR('M',0x1,0x194),0x7bce00)
 20397  20397 MegaCli64 GIO   fd 3 wrote 404 bytes
 20397  20397 MegaCli64 RET   ioctl -1 errno -1 Operation not permitted
 20397  20397 MegaCli64 CALL  write(1,0x7f7ff7ffa000,0x11)



Any advice ? This tools will be a big help for my uptime :-)

thank you.


best,
jym


Home | Main Index | Thread Index | Old Index