<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[HP - Matthias Lee - Musings on Software and Performance Engineering]]></title><description><![CDATA[Matthias Lee is a Software Performance Engineer, Technical Lead and Computer Science PhD. Currently a Principal Performance Engineer at Appian.]]></description><link>https://matthiaslee.com/</link><image><url>https://matthiaslee.com/favicon.png</url><title>HP - Matthias Lee - Musings on Software and Performance Engineering</title><link>https://matthiaslee.com/</link></image><generator>Ghost 2.14</generator><lastBuildDate>Tue, 31 Mar 2020 15:53:31 GMT</lastBuildDate><atom:link href="https://matthiaslee.com/tag/hp/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Ubuntu Server & HP Proliant Support Pack ML350 G5, hpacucli & hp-health]]></title><description><![CDATA[<p>In order to fully take advantage of the built in HP ProLiant features, we need to install HP's <a href="http://h18004.www1.hp.com/products/servers/management/psp/index.html">ProLiant Support Pack</a>. Sadly HP no longer supports this for Debian/Ubuntu, but with a little bit of tweaking we can still make it work.</p>
<h3 id="installinghparrayadmintools">Installing HP Array admin tools</h3>
<p>Download bootstrap</p>]]></description><link>https://matthiaslee.com/ubuntu-server-hp-proliant-ml350-g5/</link><guid isPermaLink="false">5a0a60d782e47c00018dabdb</guid><category><![CDATA[HP]]></category><category><![CDATA[ml350]]></category><category><![CDATA[RAID]]></category><category><![CDATA[hpacucli]]></category><category><![CDATA[hp-health]]></category><category><![CDATA[server]]></category><dc:creator><![CDATA[Matthias A. Lee]]></dc:creator><pubDate>Sat, 11 Jan 2014 05:49:08 GMT</pubDate><content:encoded><![CDATA[<p>In order to fully take advantage of the built in HP ProLiant features, we need to install HP's <a href="http://h18004.www1.hp.com/products/servers/management/psp/index.html">ProLiant Support Pack</a>. Sadly HP no longer supports this for Debian/Ubuntu, but with a little bit of tweaking we can still make it work.</p>
<h3 id="installinghparrayadmintools">Installing HP Array admin tools</h3>
<p>Download bootstrap from HP</p>
<pre><code>test@ml350:~$ wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh
</code></pre>
<p>We need to fix HP's bootstrap script to point to the current HP download url. Then we add HP's repo. Since HP no longer supports debian/ubuntu, we must override the distro version detection, therefore we specify <code>-r oneiric</code>,  11.10 being the latest supported version. Then we add the repo's GPG key.</p>
<pre><code>test@ml350:~$ sed -i 's/blofly.usa/downloads.linux/g' ./bootstrap.sh
test@ml350:~$ chmod +x bootstrap.sh
test@ml350:~$ sudo ./bootstrap.sh -r oneiric ProLiantSupportPack
test@ml350:~$ wget -qO- http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/GPG-KEY-ProLiantSupportPack |  sudo apt-key add -
</code></pre>
<p>Finally we can update and install hpacu-cli and hp-health</p>
<pre><code>test@ml350:~$ sudo apt-get update
test@ml350:~$ sudo apt-get install hpacucli hp-health
</code></pre>
<h3 id="fixingerrornocontrollersdetected">Fixing &quot;Error: No controllers detected.&quot;</h3>
<p>Now if you are like me and running a semi modern system(Kernel 3.0+), you will get the following error message:</p>
<pre><code>test@ml350:~$ sudo hpacucli ctrl all show config
Error: No controllers detected.
</code></pre>
<p>To fix this you can either compile and run uname26 or backport a newer version of hpacucli from RHEL/SUSE to Debian/Ubuntu. For further reference, check <a href="http://blog.wpkg.org/2012/03/15/hpacucli-error-no-controllers-detected-with-hpsa-module-in-use/">here</a>.</p>
<h4 id="option1option2isrecommended">Option #1 (Option 2 is recommended):</h4>
<p>Compile uname26 to pretend we are in an older kernel</p>
<pre><code>test@ml350:~$ mkdir uname26
test@ml350:~$ cd uname26
test@ml350:~/uname26$ wget http://mirror.linux.org.au/linux/kernel/people/ak/uname26/Makefile
test@ml350:~/uname26$ wget http://mirror.linux.org.au/linux/kernel/people/ak/uname26/uname26.c
test@ml350:~/uname26$ make
test@ml350:~/uname26$ ./uname26
</code></pre>
<p>Now you can run it with uname26:</p>
<pre><code>test@ml350:~/uname26$ sudo ./uname26 hpacucli ctrl all show config

Smart Array E200i in Slot 0 (Embedded)    (sn: QXXXXXXXX)

 array A (SAS, Unused Space: 0 MB)

  logicaldrive 1 (341.7 GB, RAID 5, OK)

  physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 72 GB, OK)
  physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 72 GB, OK)
  physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 72 GB, OK)
  physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 72 GB, OK)
  physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 72 GB, OK)
  physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 72 GB, OK)
</code></pre>
<h4 id="option2">Option #2:</h4>
<p>Backport the newer version of hpacucli from SUSE, since debian and ubuntu are no longer supported.</p>
<p>We use alien to convert the SUSE RPM into a DEB and then install it.</p>
<pre><code>test@ml350:~$ wget http://downloads.linux.hp.com/SDR/downloads/proliantsupportpack/SuSE/11.2/x86_64/9.10/hpacucli-9.10-22.0.x86_64.rpm
test@ml350:~$ sudo apt-get install alien
test@ml350:~$ sudo alien hpacucli-9.10-22.0.x86_64.rpm
test@ml350:~$ sudo dpkg -i hpacucli_9.10-23_amd64.deb
</code></pre>
<p>And now it works without using uname26:</p>
<pre><code>test@ml350:~$ sudo hpacucli ctrl all show config

Smart Array E200i in Slot 0 (Embedded)    (sn: QXXXXXXXX)

 array A (SAS, Unused Space: 0 MB)

  logicaldrive 1 (341.7 GB, RAID 5, OK)

  physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 72 GB, OK)
  physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 72 GB, OK)
  physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 72 GB, OK)
  physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 72 GB, OK)
  physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SAS, 72 GB, OK)
  physicaldrive 2I:1:6 (port 2I:box 1:bay 6, SAS, 72 GB, OK)
</code></pre>
<p>Cheers &amp; enjoy =).</p>
]]></content:encoded></item></channel></rss>