Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a two RAIDs, named 'raid1' and 'raid2', that show up on my linux machine as /dev/sda and /dev/sdb. How can I tell which RAID maps to which device?

I can do this with an Adaptec card by looking in /sys/block/sd?/device/model. The contents of that file will be the name of the raid (i.e. 'raid1' or 'raid2'). However, there does not look to be a simple way to do this with an LSI RAID card.

Any ideas?

share|improve this question
    
Isn't there an LSI linux tool that lets you do that ? It's been a while since i used one but i'm pretty sure there is. –  Sirex Aug 8 '12 at 19:35
    
There is a command line utility for LSI called megacli. It will list information about RAIDs, but it doesn't list anything about what the RAID is referred to as on the OS. –  Kevin S. Aug 8 '12 at 19:43
    
really ? I could have sworn that it had the raid names down as the same as the OS refers to them as. May be a different tool I'm thinking of, or perhaps I'm mistaken. :( –  Sirex Aug 8 '12 at 19:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.