Did you know that you can control your HP controller through command line? Get more information on hpacucli and check out how to configure sour RAID and Smart Array controller on. Hpacucli # hpacucli # hpacucli help. Note: you can use the hpacucli command in a script. Have you ever tried to check how the hardware RAID Array configured on server from your Linux Shell? Have you ever wanted to change or modify your Hardware RAID configurations without rebooting the server and without leaving your Linux shell? Hpacucli utility is there to help you, If your server is HP Hardware. Hpacucli (HP Array Configuration Utility CLI) is a command line based disk configuration program for Smart Array Controllers and RAID Array Controllers. You can download and install hpacucli tool from HP website. Quick Abbreviations: chassisname = ch controller = ctrl logicaldrive = ld physicaldrive = pd drivewritecache = dwc As root, just type 'hpacucli' and you will be into hpacucli command line interface. Let me give you a quick example of what you can do with this hpacucli. This document is a quick sheet on how to use the hpacucli utility to add, delete, identify and repair logical and physical disks on the Smart array controller. The commands here are the most common ones to be used. FOr more information #hpacucli help Note: you can use the hpacucli command in a script 1. Two ways to execute the command By typing the command hpacucli, it will display a “=>” prompt as shown below: # hpacucli HP Array Configuration Utility CLI 9.40.12.0 Detecting Controllers.Done. Type 'help' for a list of supported commands. Type 'exit' to close the console. => rescan hpacucli prompt could be avoided by typing the command directly in the linux prompt: # hpacucli rescan If new physical hard disk is added, it won’t automatically show-up. Scan for new devices should be performed witht he above command. Display Controller and Disk Status # hpacucli ctrl all show config Smart Array P410 in Slot 2 (sn: PACCRID124902DN) array A (SATA, Unused Space: 0 MB) logicaldrive 1 (3.6 TB, RAID 1+0, OK) physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 2 TB, OK) physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 2 TB, OK) physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 2 TB, OK) physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 2 TB, OK) SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 2FECBF) 3. Display Controller Status # hpacucli ctrl all show status Smart Array P410 in Slot 2 Controller Status: OK Cache Status: OK Battery/Capacitor Status: OK 4. Display physical drive status # hpacucli ctrl slot=0 pd all show status physicaldrive 2I:0:5 (port 2I:box 0:bay 5, 2 TB): OK physicaldrive 2I:0:6 (port 2I:box 0:bay 6, 2 TB): OK physicaldrive 2I:0:7 (port 2I:box 0:bay 7, 2 TB): OK physicaldrive 2I:0:8 (port 2I:box 0:bay 8, 2 TB): OK 5. Display the detail status of a specific physical drive # hpacucli ctrl slot=2 pd 2I:0:6 show detail Smart Array P410 in Slot 2 array A physicaldrive 2I:0:6 Port: 2I Box: 0 Bay: 6 Status: OK Drive Type: Data Drive Interface Type: SATA Size: 2 TB Rotational Speed: 7200 Firmware Revision: MX4OABB0 Serial Number: 95DVSA7TS Model: ATA TOSHIBA DT01ACA2 SATA NCQ Capable: True SATA NCQ Enabled: True Current Temperature (C): 28 Maximum Temperature (C): 34 PHY Count: 1 PHY Transfer Rate: 3.0Gbps 6. Display all available logical drives on the system # hpacucli ctrl slot=2 ld all show Smart Array P410 in Slot 2 array A logicaldrive 1 (3.6 TB, RAID 1+0, OK) 7. Create a new logical drive using RAID 0 # hpacucli ctrl slot=2 create type=ld drives=2I:0:5 raid=0 8. Create a new logical drive using RAID 1 #hpacucli ctrl slot=2 create type=ld drives=2I:0:5,2I:0:6 raid=1 9. Create a new logical drive using RAID 5 # hpacucli ctrl slot=2 create type=ld drives=2I:0:5,2I:0:6,2I:1:6,2I:1:7,2I:1:8 raid=5 Check whether logical drive got created successfully: # hpacucli ctrl slot=2 ld all show status 10. Again, the advice of someone who doesn’t know what he talks about. With that command, you activate the write cache ON THE DISKS, which isn’t protected by anything. It’s stupid to do so. What you want is active the write cache on the CONTROLLER, then configure the cache ratio if necessary. It’s sickening how many people give this bad and dangerous advice. The command you need is hpacucli ctrl slot=0 modify nbwc=enable to enable the write cache even if the battery is faulty or not present. It’s dangerous so don’t do it in a production environment unless absolutely necessary. Get a new battery ASAP. And stay away from the drive write cache (dwc). Hello Bunty - if this is urgent, I recommend opening a case with Red Hat. We all do our best here at the forum to help people, but there are no guarantees when someone may see the post and try to help. I will try to help you. I recommend that you use 'yum' even for local packages. The following assumes that have registered your systems for support or have added repos for installing software. (If you have no external repos configured, please let us know in a reply and I can explain how to setup a repo from your installation media).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2018
Categories |