{"id":291,"date":"2017-12-05T21:48:44","date_gmt":"2017-12-06T02:48:44","guid":{"rendered":"http:\/\/onebyte.org\/blog\/?p=291"},"modified":"2017-12-05T22:00:16","modified_gmt":"2017-12-06T03:00:16","slug":"installing-hpacucli-on-proxmox","status":"publish","type":"post","link":"https:\/\/www.onebyte.org\/blog\/2017\/12\/05\/installing-hpacucli-on-proxmox\/","title":{"rendered":"Installing hpacucli on Proxmox"},"content":{"rendered":"<p>Goal: To have the ability to monitor the RAID status without rebooting.<\/p>\n<p>The setup:<\/p>\n<ul>\n<li>HP Z400 workstation<\/li>\n<li>P410 HP Smart Array<\/li>\n<li>ICY 6-bay cage<\/li>\n<li>6 SATA disks<\/li>\n<\/ul>\n<p>I found that there was a supported utility for the Z400 machine, hpacucli<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_291_1('footnote_plugin_reference_291_1_1');\" onkeypress=\"footnote_moveToReference_291_1('footnote_plugin_reference_291_1_1');\" ><sup id=\"footnote_plugin_tooltip_291_1_1\" class=\"footnote_plugin_tooltip_text\">[1]<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_291_1_1\" class=\"footnote_tooltip\"><a href=\"http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm\"><span class=\"footnote_url_wrap\">http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm<\/span><\/a><\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_291_1_1').tooltip({ tip: '#footnote_plugin_tooltip_text_291_1_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [-7, 0], });<\/script>. The\u00a0 hpacucli is available for linux or as a vib<span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_291_1('footnote_plugin_reference_291_1_2');\" onkeypress=\"footnote_moveToReference_291_1('footnote_plugin_reference_291_1_2');\" ><sup id=\"footnote_plugin_tooltip_291_1_2\" class=\"footnote_plugin_tooltip_text\">[2]<\/sup><\/a><span id=\"footnote_plugin_tooltip_text_291_1_2\" class=\"footnote_tooltip\"><a href=\"https:\/\/support.hpe.com\/hpsc\/swd\/public\/detail?swItemId=MTX_0838c22ed1c345968031a22ba0\"><span class=\"footnote_url_wrap\">https:\/\/support.hpe.com\/hpsc\/swd\/public\/detail?swItemId=MTX_0838c22ed1c345968031a22ba0<\/span><\/a><\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_291_1_2').tooltip({ tip: '#footnote_plugin_tooltip_text_291_1_2', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [-7, 0], });<\/script>. Hope that HP link still works.\u00a0 I was unsuccessful in getting this to show anything on vmware 6.5u2.<\/p>\n<h3>Install:<\/h3>\n<pre class=\"lang:sh decode:true\">cd \/tmp\r\nwget http:\/\/downloads.linux.hpe.com\/SDR\/hpPublicKey1024.pub | apt-key add -\r\nwget http:\/\/downloads.linux.hpe.com\/SDR\/hpPublicKey2048.pub | apt-key add \u2013\r\nwget http:\/\/downloads.linux.hpe.com\/SDR\/hpPublicKey2048_key1.pub | apt-key add \u2013\r\nwget http:\/\/downloads.linux.hpe.com\/SDR\/hpePublicKey2048_key1.pub | apt-key add \u2013\r\n\r\n#!\/bin\/bash\r\n# download the GPG key of the repository:\r\nwget http:\/\/downloads.linux.hpe.com\/SDR\/repo\/mcp\/GPG-KEY-mcp -O \/tmp\/hpe.gpg\r\n\r\n# add downloaded key to apt\r\napt-key add \/tmp\/hpe.gpg\r\n\r\n# create apt moo sources file for HP repo\r\necho -e \"deb http:\/\/downloads.linux.hpe.com\/SDR\/repo\/mcp\/ wheezy\/current non-free\" &gt; \/etc\/apt\/sources.list.d\/proliant.sources.list\r\n\r\n# update apt &amp; install hpacucli package\r\napt-get update &amp;&amp; apt-get install hpacucli<\/pre>\n<h4>Once you have hpacucli installed you should be able to launch it:<\/h4>\n<pre class=\"lang:sh decode:true\">root@moo:~# hpacucli\r\nHP Array Configuration Utility CLI 9.40.12.0\r\nDetecting Controllers...Done.\r\nType \"help\" for a list of supported commands.\r\nType \"exit\" to close the console.\r\n\r\nChecking the RAID status:<\/pre>\n<h3>To show the configuration of the controller:<\/h3>\n<pre class=\"lang:default decode:true\">=&gt; ctrl all show config\r\n\r\nSmart Array P410 in Slot 1 (sn: PABAQIM00100VBF)\r\n\r\narray A (SATA, Unused Space: 0 MB)\r\n\r\n\r\nlogicaldrive 1 (1.4 TB, RAID 5, OK)\r\n\r\nphysicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 500 GB, OK)\r\nphysicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 500 GB, OK)\r\nphysicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 500 GB, OK)\r\nphysicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 500 GB, OK)\r\n\r\narray B (SATA, Unused Space: 0 MB)\r\n\r\n\r\nlogicaldrive 2 (465.7 GB, RAID 1, OK)\r\n\r\nphysicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 500 GB, OK)\r\nphysicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 500 GB, OK)\r\n\r\nSEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: M0014M008021D543CF)<\/pre>\n<h4>I purposely broke the array to simulate a drive failure:<\/h4>\n<pre class=\"lang:sh decode:true\">=&gt; ctrl all show config\r\n\r\nSmart Array P410 in Slot 1                (sn: PABAQIM00100VBF)\r\n\r\n   array A (SATA, Unused Space: 0  MB)\r\n\r\n\r\n      logicaldrive 1 (1.4 TB, RAID 5, Interim Recovery Mode)\r\n\r\n      physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 500 GB, OK)\r\n      physicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 500 GB, OK)\r\n      physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 500 GB, Failed)\r\n      physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 500 GB, OK)\r\n\r\n   array B (SATA, Unused Space: 0  MB)\r\n\r\n\r\n      logicaldrive 2 (465.7 GB, RAID 1, OK)\r\n\r\n      physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 500 GB, OK)\r\n      physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 500 GB, OK)\r\n\r\n   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: M0014M008021D543CF)\r\n<\/pre>\n<h4>Inserted random spare drive from an old PC:<\/h4>\n<pre class=\"lang:sh decode:true\">=&gt; ctrl all show config\r\n\r\nSmart Array P410 in Slot 1                (sn: PABAQIM00100VBF)\r\n\r\n   array A (SATA, Unused Space: 0  MB)\r\n\r\n\r\n      logicaldrive 1 (1.4 TB, RAID 5, Recovering, 0% complete)\r\n\r\n      physicaldrive 1I:0:1 (port 1I:box 0:bay 1, SATA, 500 GB, OK)\r\n      physicaldrive 1I:0:2 (port 1I:box 0:bay 2, SATA, 500 GB, OK)\r\n      physicaldrive 2I:0:5 (port 2I:box 0:bay 5, SATA, 500 GB, Rebuilding)\r\n      physicaldrive 2I:0:6 (port 2I:box 0:bay 6, SATA, 500 GB, OK)\r\n\r\n   array B (SATA, Unused Space: 0  MB)\r\n\r\n\r\n      logicaldrive 2 (465.7 GB, RAID 1, OK)\r\n\r\n      physicaldrive 2I:0:7 (port 2I:box 0:bay 7, SATA, 500 GB, OK)\r\n      physicaldrive 2I:0:8 (port 2I:box 0:bay 8, SATA, 500 GB, OK)\r\n\r\n   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: M0014M008021D543CF)\r\n<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"speaker-mute footnotes_reference_container\"> <div class=\"footnote_container_prepare\"><p><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_label pointer\" onclick=\"footnote_expand_collapse_reference_container_291_1();\">Notes & References<\/span><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_collapse_button\" style=\"display: none;\" onclick=\"footnote_expand_collapse_reference_container_291_1();\">[<a id=\"footnote_reference_container_collapse_button_291_1\">+<\/a>]<\/span><\/p><\/div> <div id=\"footnote_references_container_291_1\" style=\"\"><table class=\"footnotes_table footnote-reference-container\"><caption class=\"accessibility\">Notes & References<\/caption> <tbody> \r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_291_1('footnote_plugin_tooltip_291_1_1');\"><a id=\"footnote_plugin_reference_291_1_1\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>1<\/a><\/th> <td class=\"footnote_plugin_text\"><a href=\"http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm\"><span class=\"footnote_url_wrap\">http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm<\/span><\/a><\/td><\/tr>\r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_291_1('footnote_plugin_tooltip_291_1_2');\"><a id=\"footnote_plugin_reference_291_1_2\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8593;<\/span>2<\/a><\/th> <td class=\"footnote_plugin_text\"><a href=\"https:\/\/support.hpe.com\/hpsc\/swd\/public\/detail?swItemId=MTX_0838c22ed1c345968031a22ba0\"><span class=\"footnote_url_wrap\">https:\/\/support.hpe.com\/hpsc\/swd\/public\/detail?swItemId=MTX_0838c22ed1c345968031a22ba0<\/span><\/a><\/td><\/tr>\r\n\r\n <\/tbody> <\/table> <\/div><\/div><script type=\"text\/javascript\"> function footnote_expand_reference_container_291_1() { jQuery('#footnote_references_container_291_1').show(); jQuery('#footnote_reference_container_collapse_button_291_1').text('\u2212'); } function footnote_collapse_reference_container_291_1() { jQuery('#footnote_references_container_291_1').hide(); jQuery('#footnote_reference_container_collapse_button_291_1').text('+'); } function footnote_expand_collapse_reference_container_291_1() { if (jQuery('#footnote_references_container_291_1').is(':hidden')) { footnote_expand_reference_container_291_1(); } else { footnote_collapse_reference_container_291_1(); } } function footnote_moveToReference_291_1(p_str_TargetID) { footnote_expand_reference_container_291_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } } function footnote_moveToAnchor_291_1(p_str_TargetID) { footnote_expand_reference_container_291_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } }<\/script>","protected":false},"excerpt":{"rendered":"<p>Goal: To have the ability to monitor the RAID status without rebooting. The setup: HP Z400 workstation P410 HP Smart Array ICY 6-bay cage 6 SATA disks I found that there was a supported utility for the Z400 machine, hpacucli[1]http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm. The\u00a0 hpacucli is available for linux or as a vib[2]https:\/\/support.hpe.com\/hpsc\/swd\/public\/detail?swItemId=MTX_0838c22ed1c345968031a22ba0. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":298,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[3,2,21],"tags":[],"class_list":["post-291","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-server","category-software"],"uagb_featured_image_src":{"full":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1.png",815,490,false],"thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1-150x150.png",150,150,true],"medium":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1-300x180.png",300,180,true],"medium_large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1-768x462.png",768,462,true],"large":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1.png",815,490,false],"1536x1536":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1.png",815,490,false],"2048x2048":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1.png",815,490,false],"post-thumbnail":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1.png",815,490,false],"modality-logo":["https:\/\/www.onebyte.org\/blog\/wp-content\/uploads\/2017\/12\/moo1-133x80.png",133,80,true]},"uagb_author_info":{"display_name":"Mr-Moo","author_link":"https:\/\/www.onebyte.org\/blog\/author\/ahess\/"},"uagb_comment_info":0,"uagb_excerpt":"Goal: To have the ability to monitor the RAID status without rebooting. The setup: HP Z400 workstation P410 HP Smart Array ICY 6-bay cage 6 SATA disks I found that there was a supported utility for the Z400 machine, hpacucli[1]http:\/\/www.datadisk.co.uk\/html_docs\/redhat\/hpacucli.htm. The\u00a0 hpacucli is available for linux or as a vib[2]https:\/\/support.hpe.com\/hpsc\/swd\/public\/detail?swItemId=MTX_0838c22ed1c345968031a22ba0. [&hellip;]","_links":{"self":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/comments?post=291"}],"version-history":[{"count":1,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/291\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/posts\/291\/revisions\/295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media\/298"}],"wp:attachment":[{"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/categories?post=291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onebyte.org\/blog\/wp-json\/wp\/v2\/tags?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}