Browse Tag: raid

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.

MegaMon RAID monitoring for MegaRAID-based cards

Cleverly hidden RAID monitoring tool for MegaRAID cards. Creates a log file at /var/log/megaserv.log that spits out all kinds of useful data — patrol reads, battery cycles, SMART status changes, sense key changes, etc. Can be configured to email x address upon errors, such as… well… a failed drive, for example. Also installs MegaCtrl, which is a CLI interface to the RAID card and allows for scriptable actions, such as deleting a logical drive.

Installing MegaMon is easy, as it’s a standard RHEL rpm, contained within the PERC/CERC tools found here. Included in that tgz is the MegaMon rpm. Install and `service raidmon start` and you’re good to go!