Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Yes fdisk -l works but what if the disks were setup as a hardware RAID?

share|improve this question
    
For things not behind a RAID, you might want to use something like lshw -class disk instead, since fdisk will show some block devices that are not actually physical disks. –  Zoredache Feb 11 '11 at 23:53

4 Answers 4

up vote 5 down vote accepted

In the case of hardware raid you would have to use a controller utility as provided by the manufactured of the raid controller.

Unfortunately there is no generic way to do it that would work with every HW raid vendor out there.

share|improve this answer
    
Hah you got me by 11 secs. Oh well, I'll leave mine since it mentions specifics in case it helps the asker. Still +1 for a correct answer first. –  Aaron Copley Feb 11 '11 at 23:49

The RAID controller vendor usually provides an interface to the disks behind it. 3ware has the 3DM web management and also a CLI utility. Dell also provides this via OpenManage Server Administrator. Not sure about other vendors, but I would imagine the same.

share|improve this answer
    
LSI controllers (including Dell PERC controllers) can be accessed with the MegaCLI program using "MegaCLI -PDList -aAll". –  slillibri Feb 12 '11 at 1:40
    
Thanks for the additional info! –  Aaron Copley Feb 14 '11 at 16:14
    
And HP raid is through hpacucli. –  Patrick Feb 26 '12 at 17:10

Hardware RAID works by combining disks together and presenting them as devices on the hardware level. There's no generic way for a linux machine to detect that and probe for the real disks behind the hardware raid. However, most hardware raid devices come with some sort of linux utility program that provides info about the raid device. If you find that utility for your particular raid device, you can use it to discover the actual disks attached to the raid.

share|improve this answer

I think the tool named

 lshw

can do the trick.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.