{"id":1228,"date":"2011-10-02T12:15:35","date_gmt":"2011-10-02T09:15:35","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=1228"},"modified":"2011-10-12T16:52:06","modified_gmt":"2011-10-12T13:52:06","slug":"notes-on-hp-raid-controllers","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2011\/10\/02\/notes-on-hp-raid-controllers\/","title":{"rendered":"Notes on HP raid controllers"},"content":{"rendered":"<p>Lately I had to deal with some HP raid controllers and I&#8217;ve gathered some notes on them. I&#8217;ll post them here so I won&#8217;t forget about them.<\/p>\n<p>First of all, don&#8217;t even think on using them without a battery pack. Seriously DON&#8217;T. The performance degradation is humongous. Without a battery pack the controllers were giving me 1\/20th of the results with a battery pack. If you want to quickly test them, try <a href=\"http:\/\/www.iozone.org\">iozone<\/a> using the following options: <code>iozone -t4 -I<\/code><\/p>\n<p>Installing hpacucli is a also a must if you want to monitor or configure the controllers from within your OS. Be sure to add the repositories from <a href=\"http:\/\/hwraid.le-vert.net\/\">HWraid<\/a> to your system and then issue: <code>aptitude install hpacucli<\/code> (you are using Debian, arent&#8217; you?). That reminds me that I am using those repositories on so many systems I manage that I must send a donation to the people at hwraid to thank them.<\/p>\n<p>Below are some commands using hpacucli that I used.<br \/>\n# Show everything about your raid controllers<br \/>\n<code># hpacucli controller all show config detail<\/code><\/p>\n<blockquote><p>   Cache Board Present: True<br \/>\n   Cache Status: OK<br \/>\n   Accelerator Ratio: 25% Read \/ 75% Write<br \/>\n   Drive Write Cache: Enabled<br \/>\n   Total Cache Size: 512 MB<br \/>\n   Battery Pack Count: 1<br \/>\n   Battery Status: OK<br \/>\n   SATA NCQ Supported: True<\/p><\/blockquote>\n<p>What you must take notice here is the Accelerator Ratio, Drive Write Cache and Battery Pack Count.<br \/>\nif you have a battery pack installed but your Drive Write Cache is still shown as &#8220;Disabled&#8221;, you can enable it using the command:<br \/>\n<code># hpacucli controller slot=X modify dwc=enable<\/code><br \/>\nYou&#8217;ll know what to put instead of &#8220;slot=X&#8221; from the output of the previous command (show config detail).<\/p>\n<p>To modify Accelerator Ratio (read\/write):<br \/>\n<code># hpacucli controller slot=X modify cacheratio=25\/75<\/code><\/p>\n<p>To enable Array Acceleration for one of your logical drives use:<br \/>\n<code> # hpacucli controller slot=X logicaldrive Y modify aa=enable<\/code><\/p>\n<p>If you happen to face the following error while opening hpacucli, don&#8217;t worry. You don&#8217;t need to reboot your machine as I&#8217;ve seen in various blogs.<\/p>\n<blockquote><p>Error: Another instance of ACU is already running (possibly a service). Please<br \/>\n       terminate the ACU application before running the ACU CLI. Press ENTER to<br \/>\n       exit.<\/p><\/blockquote>\n<p>What you need to do is delete the shared IPC that hpacucli left when it got killed for some reason.<br \/>\nTo see all your ipcs:<br \/>\n<pre><code2># ipcs\n------ Shared Memory Segments --------\nkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shmid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;owner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bytes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nattch&nbsp;&nbsp;&nbsp;&nbsp; status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n\n------ Semaphore Arrays --------\nkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;semid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;owner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nsems&nbsp;&nbsp;&nbsp;&nbsp; \n0xffffffff 32768&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \n\n------ Message Queues --------\nkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msqid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;owner&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;perms&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;used-bytes&nbsp;&nbsp; messages&nbsp;&nbsp;&nbsp;&nbsp;\n<\/code2><\/pre><\/p>\n<p>Then use ipcrm to remove the array with the semid you want:<br \/>\n<code># ipcrm -s 32768<\/code><\/p>\n<p>and try to start hpacucli again.<\/p>\n<p>References:<br \/>\n1. <a href=\"http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm\">http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm<\/a><br \/>\n2. <a href=\"http:\/\/people.freebsd.org\/~jcagle\/hpacucli-readme\">http:\/\/people.freebsd.org\/~jcagle\/hpacucli-readme<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately I had to deal with some HP raid controllers and I&#8217;ve gathered some notes on them. I&#8217;ll post them here so I won&#8217;t forget about them. First of all, don&#8217;t even think on using them without a battery pack. Seriously DON&#8217;T. The performance degradation is humongous. Without a battery pack the controllers were giving [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[406,407,33,401,402,595,404,54,408,409,403,405],"class_list":["post-1228","post","type-post","status-publish","format-standard","hentry","category-linux","tag-accelerator-ratio","tag-cache-ratio","tag-debian","tag-hp","tag-hpacucli","tag-linux","tag-p410","tag-raid","tag-raid-controller","tag-storage","tag-sysadmin","tag-write-cache"],"aioseo_notices":[],"views":12570,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=1228"}],"version-history":[{"count":8,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions"}],"predecessor-version":[{"id":1237,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions\/1237"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}