On a system running linux 3.0.4 with a controller present, megacli returns zero controllers. This appears to be because libsysfs.so.2.0.2 silently fails to load under linux 3.0.4. Reproducible: Always Steps to Reproduce: 1.Under gentoo-sources-3.0.4: # megacli -adpcount Controller Count: 0. Exit Code: 0x00 2. On the same system under gentoo-sources-2.6.39-r3 and similar kernel configs: # megacli -adpcount OSSpecificInitialize: Failed to load libsysfs.so.2.0.2 Please ensure that libsfs is present in the system. The dependent library libsysfs.so.2.0.1 not available. Please contact LSI for distribution of the package A workaround under linux 2.6.39 is to # ln -s /lib64/libsysfs.so.2.0.1 /usr/lib64/libsysfs.so.2.0.2 # lddconfig megacli then works. This workaround does work under gentoo-sources-3.0.4. As noted in the Changelog, the bundled libsysfs.so.2.0.2 was recently removed from the installation. I also note that the current version of megacli is 8.02.16. A simple version bump of the ebuild produces identical results, however.
Should be fixed in CVS with 8.02.16 now.