The accepted answer recommends the audacity that is yum install srvadmin-all
. Blecch. Here's how to make it slightly less blecch-y (but still blecch-y nonetheless; you can get much leaner on HP's platform. But I digress...) By this I mean, only install those components necessary to manage storage on your machine.
BTW, the direct answer to the user's question lies in the item "Show physical disks on vdisk 0" in the list below.
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi > bootstrap.cgi
bash bootstrap.cgi
yum install srvadmin-base
yum install srvadmin-storageservices
Add to root's .bashrc:
export PATH=$PATH:/opt/dell/srvadmin/bin
Enjoy:
RAID Commands
Show all physical disks on controller 0
$ omreport storage pdisk controller=0
Show all logical disks on controller 0
$ omreport storage vdisk controller=0
Show all physical disks on vdisk 0
$ omreport storage pdisk controller=0 vdisk=0
Reconfigure a vdisk to be raid1 from raid0 (COOL!!!!)
$ sudo omconfig storage vdisk action=reconfigure controller=0 vdisk=1 raid=r1 pdisk=0:0:2,0:0:3
Create a vdisk on a new disk:
$ sudo omconfig storage controller controller=0 action=clearforeignconfig
$ sudo omconfig storage controller controller=0 action=createvdisk raid=r0 size=max pdisk=0:0:2
More Info
BTW, since this IS nothing more than a Dell-branded LSI MegaCLI card, you might find Han Solo's answer even better! I have yet to try it, however.
The Sweetness
Here's an example of omreport's output, piped through grep for a delicious bundle of data:
$ omreport storage pdisk controller=0 vdisk=0 | grep -v ": Not "
List of Physical Disks belonging to root
Controller PERC H700 Integrated (Embedded)
ID : 0:0:0
Status : Ok
Name : Physical Disk 0:0:0
State : Online
Power Status : Spun Up
Bus Protocol : SAS
Media : HDD
Failure Predicted : No
Revision : HT64
T10 PI Capable : No
Certified : Yes
Encryption Capable : No
Capacity : 136.13 GB (146163105792 bytes)
Used RAID Disk Space : 136.13 GB (146163105792 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare : No
Vendor ID : DELL(tm)
Product ID : ST9146852SS
Serial No. : 6TB1AFDT
Part Number : CN0X162K7262213800JTA01
Negotiated Speed : 6.00 Gbps
Capable Speed : 6.00 Gbps
Sector Size : 512B
Manufacture Day : 05
Manufacture Week : 10
Manufacture Year : 2011
SAS Address : 5000C500395E44C5
ID : 0:0:1
Status : Ok
Name : Physical Disk 0:0:1
State : Online
Power Status : Spun Up
Bus Protocol : SAS
Media : HDD
Failure Predicted : No
Revision : HT64
T10 PI Capable : No
Certified : Yes
Encryption Capable : No
Capacity : 136.13 GB (146163105792 bytes)
Used RAID Disk Space : 136.13 GB (146163105792 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare : No
Vendor ID : DELL(tm)
Product ID : ST9146852SS
Serial No. : 6TB1AFEY
Part Number : CN0X162K7262213800FPA01
Negotiated Speed : 6.00 Gbps
Capable Speed : 6.00 Gbps
Sector Size : 512B
Manufacture Day : 05
Manufacture Week : 10
Manufacture Year : 2011
SAS Address : 5000C500395E3C1D