10

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

sdot257
  • 3,039
  • 5
  • 29
  • 38
  • 1
    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 Answers4

7

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.

phemmer
  • 5,789
  • 2
  • 26
  • 35
  • 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
7

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.

Aaron Copley
  • 12,345
  • 5
  • 46
  • 67
2

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.

Phil Hollenback
  • 14,647
  • 4
  • 34
  • 51
0

I think the tool named

 lshw

can do the trick.

cstamas
  • 6,607
  • 24
  • 42