Summary: | Please add sys-block/hpssacli to the tree (replaces sys-block/hpacucli) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Thomas Deutschmann (RETIRED) <whissi> |
Component: | New packages | Assignee: | Thomas Deutschmann (RETIRED) <whissi> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | alexanderyt, bertrand, bug, flameeyes, hydrapolic |
Priority: | Normal | Keywords: | InOverlay |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | barzog | ||
Package list: | Runtime testing required: | --- | |
Attachments: | hpssacli-2.40.13.0.ebuild |
Description
Thomas Deutschmann (RETIRED)
![]() Two patches. I changed the wrapper script to use /run/lock instead of /var/lock and removed the "setarch" hack, which shouldn't be required for 9.x builds. BTW: Upstream's wrapper script calls the binary using prctl for ia64, not sure if we also want to add support for ia64 (I can only test x86 and amd64). --- hpacucli-9.30.15.0.ebuild 2012-12-01 22:01:59.000000000 +0100 +++ - 2013-07-12 19:24:43.358104953 +0200 @@ -1,4 +1,4 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-block/hpacucli/hpacucli-9.30.15.0.ebuild,v 1.1 2012/12/01 21:01:59 flameeyes Exp $ @@ -10,9 +10,9 @@ SRC_URI_BASE="ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux" AMD64_PID="1257348637" -AMD64_VID="77370" +AMD64_VID="80070" X86_PID="414707558" -X86_VID="77371" +X86_VID="80071" DESCRIPTION="HP Array Configuration Utility Command Line Interface (HPACUCLI, formerly CPQACUXE)" HOMEPAGE="http://h18000.www1.hp.com/products/servers/linux/documentation.html" --- /usr/portage/sys-block/hpacucli/files/hpacucli-wrapper 2012-12-01 22:02:00.000000000 +0100 +++ - 2013-07-12 19:36:33.164639179 +0200 @@ -3,7 +3,7 @@ cmd="$(basename "$0")" HPACUCLI_BASEDIR="/opt/hp/hpacucli" -HPACUCLI_LOCKDIR="/var/lock/$cmd" +HPACUCLI_LOCKDIR="/run/lock/$cmd" HPACUCLI_LOCK="${HPACUCLI_LOCKDIR}/CPQACU_MUTEX" HPACUCLI_BIN="${HPACUCLI_BASEDIR}/$cmd.bin" @@ -19,4 +19,4 @@ export LD_LIBRARY_PATH="${HPACUCLI_BASEDIR}" export ACUXE_LOCK_FILES_DIR="${HPACUCLI_LOCKDIR}/" -exec setarch `uname -m` --uname-2.6 "${HPACUCLI_BIN}" "${@}" +"${HPACUCLI_BIN}" "${@}" FYI: HP replaced sys-block/hpacucli with sys-block/hpssacli for about 5 months. I'll update the title to ask for adding sys-block/hpssacli to the tree instead of updating the old replaced utility. Feel free to grab the current version from my overlay: https://github.com/Whissi/gentoo-overlay/tree/master/sys-block/hpssacli hpssicli doesn't support older controllers such as HP Smart Array E200, so the hpacucli utility is still required for those controllers: Smart Array products: Smart Array 5312 Controller (hpacucli) Smart Array 5302 Controller (hpacucli) Smart Array 5304 Controller (hpacucli) Smart Array 532 Controller (hpacucli) Smart Array 5i Controller (hpacucli) Smart Array 641 Controller (hpacucli) Smart Array 642 Controller (hpacucli) Smart Array 6400 Controller (hpacucli) Smart Array 6400 EM Controller (hpacucli) Smart Array 6i Controller (hpacucli) Smart Array P600 Controller (hpacucli) Smart Array P400 Controller (hpacucli) Smart Array P400i Controller (hpacucli) Smart Array E200 Controller (hpacucli) Smart Array E200i Controller (hpacucli) Smart Array P800 Controller (hpacucli) Smart Array E500 Controller (hpacucli) Smart Array P700m Controller (hpacucli) Smart Array P410i Controller (hpacucli OR hpssicli) Smart Array P411 Controller (hpacucli OR hpssicli) Smart Array P212 Controller (hpacucli OR hpssicli) Smart Array P712m Controller (hpacucli OR hpssicli) Smart Array B110i SATA RAID (hpacucli OR hpssicli) Smart Array P812 Controller (hpacucli OR hpssicli) Smart Array P220i Controller (hpacucli OR hpssicli) Smart Array P222 Controller (hpacucli OR hpssicli) Smart Array P420 Controller (hpacucli OR hpssicli) Smart Array P420i Controller (hpacucli OR hpssicli) Smart Array P421 Controller (hpacucli OR hpssicli) Smart Array P822 Controller (hpacucli OR hpssicli) Smart Array P721m Controller (hpacucli OR hpssicli) Dynamic Smart Array B320i RAID (hpacucli OR hpssicli) Dynamic Smart Array B120i RAID (hpacucli OR hpssicli) Smart Array P430 Controller (hpssicli) Smart Array P431 Controller (hpssicli) Smart Array P731m Controller (hpssicli) MSA products: MSA500 Controller (hpacucli) MSA500 G2 Controller (hpacucli) MSA1000 Controller (hpacucli) MSA1500 CS Controller (hpacucli) MSA20 Controller (hpacucli) References: http://downloads.linux.hp.com/downloads/SPP/2013.09.0_supspp_rhel6.5_x86_64/hpssacli-1.50-4.0.x86_64.txt ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1257348637/v80070/hpacucli-9.40-12.0.x86_64.txt @ Ian: I really recommend that you test if the new hpssacli utility works or not. Yes, HP doesn't list all the adapters listed in the hpacucli readme, but from my experience this is because these are old adapters from servers out of support, therefore HP doesn't release new software for these servers and don't list old adapters in new software products. But from my own tests, hpssacli is a drop-in replacement... haven't found an adapter yet which was supported by hpacucli but doesn't work with hpssacli. If you will find one, please report. PS: HP lists hpssacli as download for E200 adapter: http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdHome?javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&javax.portlet.prp_bd9b6997fbc7fc515f4cf4626f5c8d01=wsrp-navigationalState%3DswEnvOID%253D1080%257CswLang%253D%257Caction%253DlistDriver&javax.portlet.tpst=bd9b6997fbc7fc515f4cf4626f5c8d01&sp4ts.oid=3182562&ac.admitted=1398804992909.876444892.492883150 :) Fair enough. I've only just started playing with a cheap, reconditioned E200 and needed to use a utility to enable disk write caching to get any kind of reasonable write performance out of the card, and the hpacucli utility was the first thing I found to do the job! (TBH, it's still a bit slow, and have deleted the array for now to do more testing. If I recreate the array on the E200, I'll give the hpssicli utility a try. Version:2.0-23.0 (9 Sep 2014) Enhancements Upgrade Requirement: Optional - Users should update to this version if their system is affected by one of the documented fixes or if there is a desire to utilize any of the enhanced functionality provided by this version. Support for the following devices: Smart Array P244br Smart Array P440 Smart Array P440ar Smart Array P441 Smart Array P840 Dynamic Smart Array B140i Smart HBA H240 Smart HBA H240ar Smart HBA H241 Smart HBA H244br 12G SAS Expander Support for the following new features: Write-back cache write policy for HP SmartCache HDD Flexible Latency Optimization (FLS) Power Mode Management HBA mode for latest generation Smart Array P-series controllers RAID/Array mode for Smart HBA H-series controllers Diego, I have hardware and time. Are you okay with me taking maintainership of this package please? New ebuild with name hpssacli-2.40.13.0.ebuild https://bpaste.net/show/9daa43d740a7 diff -ruN /usr/portage/sys-block/hpacucli/hpacucli-9.30.15.0.ebuild hpssacli-2.40.13.0.ebuild https://bpaste.net/show/91e5ac600dd2 diff -ruN /usr/portage/sys-block/hpacucli/files/hpacucli-wrapper files/hpssacli-wrapper https://bpaste.net/show/af3557bdb636 hpssacli works for me # hpssacli HPE Smart Storage Administrator CLI 2.40.13.0 Detecting Controllers...Done. Type "help" for a list of supported commands. Type "exit" to close the console. => ctrl all show Smart Array P440ar in Slot 0 (Embedded) (sn: PDNLH) (In reply to Alexandr Tiurin from comment #8) > New ebuild with name hpssacli-2.40.13.0.ebuild > https://bpaste.net/show/9daa43d740a7 > > diff -ruN /usr/portage/sys-block/hpacucli/hpacucli-9.30.15.0.ebuild > hpssacli-2.40.13.0.ebuild > https://bpaste.net/show/91e5ac600dd2 > > diff -ruN /usr/portage/sys-block/hpacucli/files/hpacucli-wrapper > files/hpssacli-wrapper > https://bpaste.net/show/af3557bdb636 > > hpssacli works for me > # hpssacli > HPE Smart Storage Administrator CLI 2.40.13.0 > Detecting Controllers...Done. > Type "help" for a list of supported commands. > Type "exit" to close the console. > > => ctrl all show > > Smart Array P440ar in Slot 0 (Embedded) (sn: PDNLH) Please always attach the ebuilds here. Bpaste returns 404 for all your links. Created attachment 443142 [details]
hpssacli-2.40.13.0.ebuild
A small typo: --- hpssacli-2.40.13.0.ebuild.orig 2016-08-12 11:46:18.987337230 +0200 +++ hpssacli-2.40.13.0.ebuild 2016-08-12 11:44:33.771335398 +0200 @@ -53,7 +53,7 @@ doman "${S}"/usr/man/man*/* cat <<-EOF >"${T}"/45${PN} - LDPATH=${HPSACLI_BASEDIR} + LDPATH=${HPSSACLI_BASEDIR} EOF doenvd "${T}"/45${PN} Thank you Alexandr for your work however I added a slightly different ebuild. > commit 0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e > Author: Thomas Deutschmann > Date: Fri Aug 12 21:01:51 2016 +0200 > > sys-block/hpssacli: New package > > The HPE Smart Storage Administrator CLI (HPE SSACLI) is a commandline-based > disk configuration program that helps you configure, manage, diagnose, and > monitor HPE ProLiant Smart Array Controllers and now other storage devices > as well, such as host bus adapters (HBAs), HPE Storage controllers, and > future devices such as SCSI Express drives, and SAS switch devices. HPE > SSACLI replaces the existing HP Array Configuration CLI Utility, or ACUCLI, > with an updated design and will deliver new features and functionality for > various Smart Storage initiatives as they come online. > > Gentoo-Bug: https://bugs.gentoo.org/476640 > > Package-Manager: portage-2.3.0 > I also bumped sys-block/hpacucli to its final version: > commit 4fab09f09aab827c11e6073f7f14d938decd811b > Author: Thomas Deutschmann > Date: Fri Aug 12 18:23:11 2016 +0200 > > sys-block/hpacucli: Bumped to v9.40.12.0 > > Package-Manager: portage-2.3.0 |