Raid Capability Detection

Olivier BONHOMME obonhomme at nerim.net
Tue Jun 12 09:24:55 CDT 2007


Hello,

I checked on my Linux which have sysfs and your idea looks very interesting.

On a 1850 without raid, your command returns mptscsi and on a 2950 with 
RAID SAS, the command returns megaraid_sas.

On a first view, it seems to be a good solution.

Thanks

Best Regards,
Olivier BONHOMME

Patrick_Boyd at Dell.com wrote:
> If these are all sysfs based distros you can use that.
>
> `cat /sys/class/scsi_host/host?/proc_name`
>
> This will list the devices and their drivers. The drivers aacraid,
> megaraid, and megaraid_sas are RAID drivers. Everything else is just
> plain SCSI/SAS.
>
> -----Original Message-----
> From: linux-poweredge-bounces at dell.com
> [mailto:linux-poweredge-bounces at dell.com] On Behalf Of Olivier BONHOMME
> Sent: Tuesday, June 12, 2007 4:29 AM
> To: linux-poweredge-Lists
> Subject: Raid Capability Detection
>
> Hello Everybody,
>
> I am working right now on a architecture based on differents Poweredge 
> Systems. The problem is that I have servers with Ultra SCSI Card without
>
> RAID Capability and others with Perc Controlers with RAID capability.
>
> I would want to know if there is a generic way to detect the model card 
> and if it is possible to know if the controler is RAID capable or not. I
>
> would like to avoid to parse the lspci output because I have to do this 
> detection on several distrbutions on where the lspci output is
> different.
>
> Does somebody have any idea to do that ?
>
> Thank you for your answers
>
> Best Regards,
> Olivier BONHOMME
>
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq
>   



More information about the Linux-PowerEdge mailing list