Browse Tag: hp

Adding a new drive on an HP RAID controller

Launch `hpacucli’, the RAID interface and run the following:

[code lang=”bash”]controller slot=0 pd show all[/code]

All drives will be shown — it’s obvious which ones are not configured as a logical disk.

[code lang=”bash”]controller slot=0 create type=ld drives=2:2[/code]

We’ve only added one drive, and the controller is smart enough to know that making a logical disk out of one drive will be a RAID-0, thus no RAID level is specified. If using multiple drives, list them with commas (drives=2:2,2:3,2:4) and add a “raid” command:

[code lang=”bash”]controller slot=0 create type=ld drives=2:2,2:3,2:4 raid=?[/code]

Using the ? will tell you what RAID levels are available for the drives selected. Specify the RAID level with “raid=5″.

[code lang=”bash”]controller slot=0 ld show all[/code]

Will show your new logical disk composed of the previously unused drives. You may need to run `partprobe’ on the server to enable it to see the new logical disk, but thereafter you are free to partition away and do what must be done.