cancel
Showing results for 
Search instead for 
Did you mean: 

hpacucli dont work

beatlejuse
Frequent Visitor

hpacucli dont work

hpacucli (9.40) utilite dont work on my coreos 4.7.3 (docker).

it cant find my hp smartarray p410 controller.

i need monitoring smart status of my hdds

but smartctl also cant find hdds smart status:

=== START OF READ SMART DATA SECTION ===
Error Counter logging not supported
# smartctl --scan:
/dev/sda -d scsi # /dev/sda, SCSI device

# /dev/sda -d scsi
bash: /dev/sda: Permission denied

this behavior observed if docker container started in privileged mode, and in docer debugging tools (#/usr/bin/toolbox)

How can i get smart status by hdds without pull my hdds from server and install it in conputer with windows os?

 
 
8 REPLIES
Jimmy Vance
HPE Pro

Re: hpacucli dont work

hpacucli v9.40 is very old (2013) and no longer maintained.  The current tool is called ssacli and the current version is 2.60-19. RPM packages are available for Red Hat and SUSE, along with a .deb package for Ubuntu

Pacakges can be found on the HPE Software Delivery Repository (SDR) at http://downloads.linux.hpe.com

 




__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
beatlejuse
Frequent Visitor

Re: hpacucli dont work

I install ssacli-2.60-19.0 and get "No controllers detected" again.

i try all finded methods, but this:

 

    download and compile uname26 tool: http://mirror.linux.org.au/linux/kernel/people/ak/uname26/
    load sg module and try to run hpacucli again as below:

This method i cant use.

I also test hpssacli-2.40-13.0. it have same result.

 

 

 

 

 
Jimmy Vance
HPE Pro

Re: hpacucli dont work

Many disk tools need the sg modules. Here is an advisory and explanation written for RHEL 7.1 but applicable to any distribution

Advisory: Red Hat Enterprise Linux 7.1 - HP ProLiant Servers Loading HP Smart Storage Administrator (HPSSA), HP Smart Array Command Line Utility (HPSSACLI), or HP Smart Array Firmware Flash Utilities May Not Recognize HP Smart Array Controllers

http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-c04708948

 




__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Steven Schweda
Honored Contributor

Re: hpacucli dont work

   I know nothing about "hpacucli", but ...

> # /dev/sda -d scsi
> bash: /dev/sda: Permission denied

   What was this supposed to do?  "/dev/sda" is a disk device file, not
a program which you can run this way.

      ls -l /dev/sda

It (I'll guess) lacks all execute ("x") permissions, hence the
"Permission denied" complaint from "bash".

   Did you mean anything like, say:

      smartctl -d scsi /dev/sda
?

   Then, for some actual information, you might wish to add a "-a" or
"-x" option to that command.  For example, around here (on a Debian
system):

deb84# uname -a
Linux deb84 3.2.0-4-amd64 #1 SMP Debian 3.2.78-1 x86_64 GNU/Linux

deb84# cat /etc/debian_version
8.6

deb84# smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/sdc -d scsi # /dev/sdc, SCSI device
/dev/sdd -d scsi # /dev/sdd, SCSI device
/dev/sde -d scsi # /dev/sde, SCSI device

deb84# smartctl -d scsi /dev/sda
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

SCSI device successfully opened

Use 'smartctl -a' (or '-x') to print SMART (and more) information

deb84# smartctl -a -d scsi /dev/sda
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               SEAGATE 
Product:              ST3146356SS     
Revision:             0009
User Capacity:        146,815,737,856 bytes [146 GB]
Logical block size:   512 bytes
Logical Unit id:      0x5000c5000964f60f
Serial number:        3QN4016F00009044NUXW
Device type:          disk
Transport protocol:   SAS
Local Time is:        Tue Jan 17 22:47:37 2017 CST
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK

Current Drive Temperature:     25 C
Drive Trip Temperature:        68 C
Elements in grown defect list: 0
Vendor (Seagate) cache information
  Blocks sent to initiator = 2046206
  Blocks received from initiator = 1277903
  Blocks read from cache and sent to initiator = 3381
  Number of read and write commands whose size <= segment size = 4602
  Number of read and write commands whose size > segment size = 0
Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 2885.62
  number of minutes until next internal SMART test = 50

Error counter log:
           Errors Corrected by           Total   Correction     Gigabytes    Total
           Errors Corrected by           Total   Correction     Gigabytes    Total
               ECC          rereads/    errors   algorithm      processed    uncorrected
           fast | delayed   rewrites  corrected  invocations   [10^9 bytes]  errors
read:       1141        0         0      1141       1141          1.048           0
write:         0        0         0         0          0          0.658           0

Non-medium error count:        3

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
No self-tests have been logged
Long (extended) Self Test duration: 1740 seconds [29.0 minutes]

    If you want, it appears that you can simply append a line of output
from "smartctl --scan" to a "smartctl -a" command, like, for example:

      smartctl -a /dev/sda -d scsi # /dev/sda, SCSI device

(The shell treats the text starting at the "#" as a comment.)

   But, in any case, you need to run the "smartctl" program with its
options.  The (or some of the) options alone won't do the job.

beatlejuse
Frequent Visitor

Re: hpacucli dont work

i have configured raid on my hp smartarray p410 controller.

smartctl show info about logical volume, but cant get access to physical hdd.

so, smart status of physical hdds not available:

root@b52463edab02:/# smartctl -a -d scsi /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.7.3-coreos-r2] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              LOGICAL VOLUME
Revision:             5.70
User Capacity:        500,074,307,584 bytes [500 GB]
Logical block size:   512 bytes
Rotation Rate:        15000 rpm
Logical Unit id:      0x600508b1001c355b4ea5659c18da28a3
Serial number:        PACCRCN81ZW1QNO
Device type:          disk
Local Time is:        Thu Jan 19 07:41:13 2017 UTC
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Error Counter logging not supported
Device does not support Self Test logging

smartctl may be work with soft-raid, but i never saw that it worked with p410 controller.

 
beatlejuse
Frequent Visitor

Re: hpacucli dont work

so, it can be concluded that the hpacucli (and hpssacli) does not work with hp smart array p410.

but it may be working with windows. but I do not advise anyone to use this controller on the production under Linux.

Jimmy Vance
HPE Pro

Re: hpacucli dont work


beatlejuse wrote:

so, it can be concluded that the hpacucli (and hpssacli) does not work with hp smart array p410.

but it may be working with windows. but I do not advise anyone to use this controller on the production under Linux.


Not sure how you can conclude that.  Many Linux customers use the P410

[root@localhost ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: P410i            Rev: 6.00
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi0 Channel: 01 Id: 00 Lun: 00
  Vendor: HP       Model: LOGICAL VOLUME   Rev: 6.00
  Type:   Direct-Access                    ANSI  SCSI revision: 05
[root@localhost ~]#

[root@localhost ~]# hpssacli ctrl all show status

Smart Array P410i in Slot 0 (Embedded)
   Controller Status: OK
   Cache Status: OK

[root@localhost ~]# hpssacli ctrl slot=0 pd all show status

   physicaldrive 1I:1:1 (port 1I:box 1:bay 1, 146 GB): OK

[root@localhost ~]# hpssacli ctrl slot=0 pd all show detail

Smart Array P410i in Slot 0 (Embedded)

   array A

      physicaldrive 1I:1:1
         Port: 1I
         Box: 1
         Bay: 1
         Status: OK
         Drive Type: Data Drive
         Interface Type: SAS
         Size: 146 GB
         Drive exposed to OS: False
         Native Block Size: 512
         Rotational Speed: 15000
         Firmware Revision: HPD5 (FW update is recommended to minimum version: HPDA)
         Serial Number: PLWESSTE
         Model: HP      EH0146FARWD
         Current Temperature (C): 37
         Maximum Temperature (C): 41
         PHY Count: 2
         PHY Transfer Rate: 6.0Gbps, Unknown
         Sanitize Erase Supported: False

 

 




__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!   
Steven Schweda
Honored Contributor

Re: hpacucli dont work

> Not sure how you can conclude that. Many Linux customers use the P410

   How do they get their SMART data?  Clearly (to me, but what do I
know?), smartctl works where it can communicate directly with a disk
device (like /dev/sda), but, for devices which are hidden by a RAID
controller like the Smart Array P410i, some other program would seem to
be needed (to talk to the controller which could get the info from the
actual disk drives).

   Note that I have none of this hardware, so I know nothing (except for
the cause of the original "bash: /dev/sda: Permission denied" error).
But, if there is no program which can get the SMART data, then I can
understand some disappointment.  ("Status: OK" seems a little less
detailed than what smartctl can return from an exposed drive.)

> Drive exposed to OS: False

   Is there a way to change that?  If so, then perhaps smartctl could
become more useful.