Changes between Version 11 and Version 12 of FAQ


Ignore:
Timestamp:
08/20/09 17:03:01 (15 years ago)
Author:
bas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v11 v12  
    2525
    2626}}}
     27
     28== Kernels greater the 2.6.24 and Perc 4 controller ==
     29
     30The command ''omreport stroage controller'' does not work, see explanation on linux poweredge list:
     31{{{
     32Hello, some followup on this issue:
     33
     34Le jeudi 2 juillet 2009 à 14:24, Brice Figureau a écrit :
     35> > Of course, the issue is not really in the commit but in the
     36> > ligmegalib.so library.
     37> > I've straced the dataeng service, and found that it tries to locate the
     38> > device by using /proc/devices.
     39> >
     40> > Before the aforementioned patch, since the kernel attributed a major to
     41> > the char device, it appeared in /proc/devices:
     42> > Character devices:
     43> > ...
     44> > 252 megadev
     45> >
     46> > But with this patch, it doesn't anymore, since there is no major
     47> > allocated.
     48> > So libmegalib.so thinks the device is not there, even though a
     49> > correct /dev/megadev0 is created by udev.
     50> >
     51> > The real question is how to fix OMSA?
     52> >
     53> > If there are any Dell engineer/developper reading this, please please
     54> > fix your megalib code (in fact I even think this is code coming from
     55> > LSI).
     56> >
     57> > Meanwhile, I think we can fix this issue, by either reverting this patch
     58> > (it should revert cleanly on debian kernels). Or maybe it'd be possible
     59> > to use LD_LIBRARY_PRELOAD to load a read interceptor that could
     60> > rewrite /proc/devices on the fly...
     61
     62It seems that OMSA (or another dell tool) recreate the file /dev/megadev0
     63with what he thinks is the correct malor/minor (252/0). This of course
     64won't work as major 252 is now used by usbmon.
     65The module megaraid_mm now uses the miscdevice.h register function to have
     66an auto-allocated minor number, while the major is 10 (for misc devices).
     67The auto-generator minor can be found in /proc/misc, so we can recreate the
     68device node with mknod and the correct major (10) and minor
     69(from /proc/misc) numbers.
     70
     71Once that is done, omreport still won't see the device (tried OMSA 5.5 and
     726.0), but other tools will be able to access it.
     73For example you can try
     74http://sourceforge.net/projects/megactl/
     75which can report device health.
     76dellmgr (cf http://linux.dell.com/storage.shtml) seems to work also, but you
     77MUST first remove from its startup script the lines that
     78recreate /dev/megadev0, same goes for megamon (which also try to
     79create /dev/megadev0 in itd init script), but I didn't try it.
     80
     81I hope this helps
     82
     83-- Renaud MICHEL defimedia S.A.
     84}}}
     85
    2786= IWS Webserver =
    2887