{"id":1215,"date":"2016-02-18T14:28:33","date_gmt":"2016-02-18T12:28:33","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=1215"},"modified":"2016-02-18T14:28:33","modified_gmt":"2016-02-18T12:28:33","slug":"hpacucli","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2016\/02\/18\/hpacucli\/","title":{"rendered":"hpacucli &#8211;"},"content":{"rendered":"<p><code><br \/>\nhpacucli ctrl slot=1 show config<\/code><\/p>\n<p>Smart Array P410 in Slot 1 (sn: PACCRID11510NCV)<\/p>\n<p>array A (SAS, Unused Space: 0 MB)<\/p>\n<p>logicaldrive 1 (838.3 GB, RAID 1+0, Recovering, 13% complete)<\/p>\n<p>physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 450 GB, OK)<br \/>\nphysicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 450 GB, OK)<br \/>\nphysicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 450 GB, Rebuilding)<br \/>\nphysicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 450 GB, OK)<\/p>\n<p>SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143801887352F)<\/p>\n<p><code><br \/>\n3.2. hpacucli<\/code><\/p>\n<p>This tool is a proprietary one created by HP. It can do both reporting and management.<br \/>\n3.2.1. Quickstart guide<\/p>\n<p>List all controllers:<\/p>\n<p>server:~# hpacucli controller all show<\/p>\n<p>Smart Array 6i in Slot 0 ()<\/p>\n<p>List arrays on controller in slot 0:<\/p>\n<p>server:~# hpacucli ctrl slot=0 logicaldrive all show status<\/p>\n<p>logicaldrive 1 (33.9 GB, RAID RAID 1+0): OK<br \/>\nlogicaldrive 2 (136.7 GB, RAID RAID 1+0): OK<\/p>\n<p>I don&#8217;t know why it reports RAID 1+0. This is regular RAID1 arrays.<\/p>\n<p>List physical drives on controller in slot 0:<\/p>\n<p>server:~# hpacucli ctrl slot=0 pd all show status<\/p>\n<p>physicaldrive 1:0 (port 1:id 0, 36.4 GB): OK<br \/>\nphysicaldrive 1:1 (port 1:id 1, 36.4 GB): OK<br \/>\nphysicaldrive 1:2 (port 1:id 2, 146.8 GB): OK<br \/>\nphysicaldrive 1:3 (port 1:id 3, 146.8 GB): OK<\/p>\n<p>Summarized status:<\/p>\n<p>server:~# hpacucli ctrl slot=0 show config<\/p>\n<p>Smart Array 6i in Slot 0 ()<\/p>\n<p>array A (Parallel SCSI, Unused Space: 0 MB)<\/p>\n<p>logicaldrive 1 (33.9 GB, RAID 1+0, OK)<\/p>\n<p>physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 36.4 GB, OK)<br \/>\nphysicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 36.4 GB, OK)<\/p>\n<p>array B (Parallel SCSI, Unused Space: 0 MB)<\/p>\n<p>logicaldrive 2 (136.7 GB, RAID 1+0, OK)<\/p>\n<p>physicaldrive 2:2 (port 2:id 2 , Parallel SCSI, 146.8 GB, OK)<br \/>\nphysicaldrive 2:3 (port 2:id 3 , Parallel SCSI, 146.8 GB, OK)<\/p>\n<p>Controller policies (write cache, disk cache, battery), only interesting lines kept:<\/p>\n<p>root@server:~# hpacucli ctrl slot=0 show<\/p>\n<p>Smart Array P420i in Slot 0 (Embedded)<br \/>\nSerial Number: *SERIAL*<br \/>\nController Status: OK<br \/>\nFirmware Version: 3.54<br \/>\nCache Board Present: True<br \/>\nCache Status: OK<br \/>\nCache Ratio: 25% Read \/ 75% Write<br \/>\nDrive Write Cache: Disabled<br \/>\nTotal Cache Size: 512 MB<br \/>\nNo-Battery Write Cache: Disabled<br \/>\nCache Backup Power Source: Capacitors<br \/>\nBattery\/Capacitor Count: 1<br \/>\nBattery\/Capacitor Status: OK<\/p>\n<p>Cache is ok, Battery is too. Write cache disabled if battery back isn&#8217;t enabled, that&#8217;s ok.<\/p>\n<p>Check and enable cache for all arrays:<\/p>\n<p>Check current state:<\/p>\n<p>root@server:~# hpacucli ctrl slot=0 ld all show detail<\/p>\n<p>Smart Array P420i in Slot 0 (Embedded)<\/p>\n<p>array A<\/p>\n<p>Logical Drive: 1<br \/>\nSize: 136.7 GB<br \/>\nFault Tolerance: RAID 1<br \/>\nStatus: OK<br \/>\nCaching: Disabled<\/p>\n<p>Enable caching:<\/p>\n<p>root@server:~# hpacucli ctrl slot=0 ld all modify arrayaccelerator=enable<\/p>\n<p>Enable disks&#8217; write cache:<\/p>\n<p>root@server:~# hpacucli ctrl slot=0 modify dwc=enable<\/p>\n<p>Warning: Without the proper safety precautions, use of write cache on physical<br \/>\ndrives could cause data loss in the event of power failure. To ensure<br \/>\ndata is properly protected, use redundant power supplies and<br \/>\nUninterruptible Power Supplies. Also, if you have multiple storage<br \/>\nenclosures, all data should be mirrored across them. Use of this<br \/>\nfeature is not recommended unless these precautions are followed.<br \/>\nContinue? (y\/n) y<\/p>\n<p>Warning is self-explaining I guess. Disks&#8217;s cache aren&#8217;t protected by controller&#8217;s battery. It&#8217;s up to you but I wouldn&#8217;t enable such features if your power supply isn&#8217;t protected.<\/p>\n<p>Modify cache ratio between read and write:<\/p>\n<p>root@server:~# hpacucli ctrl slot=0 modify cacheratio=50\/50<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/hwraid.le-vert.net\/wiki\/SmartArray\" target=\"_blank\">http:\/\/hwraid.le-vert.net\/wiki\/SmartArray<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>hpacucli ctrl slot=1 show config Smart Array P410 in Slot 1 (sn: PACCRID11510NCV) array A (SAS, Unused Space: 0 MB) logicaldrive 1 (838.3 GB, RAID 1+0, Recovering, 13% complete) physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 450 GB, OK) physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 450 GB, OK) physicaldrive 1I:1:3 (port 1I:box 1:bay 3, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1215","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1215\/revisions"}],"predecessor-version":[{"id":1216,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1215\/revisions\/1216"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}