Package: hpacucli
Version: 9.40.1-1

Dear Maintainers,

When using hpacucli Debian package on Jessie with Debian backport Kernel 4.5, i am not able to use tool 'hpacucli'.



-§1- global informations
-----------------------
admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ uname -a
Linux syspeo 4.5.0-0.bpo.1-amd64 #1 SMP Debian 4.5.1-1~bpo8+1 (2016-04-20) x86_64 GNU/Linux

admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ dpkg -l |grep linux-imag ii linux-image-4.5.0-0.bpo.1-amd64 4.5.1-1~bpo8+1 amd64 Linux 4.5 for 64-bit PCs

admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ cat /etc/debian_version
8.5

admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ ls -altr /etc/apt/sources.list
-rw-r--r-- 1 root root 0 mai    2 08:19 /etc/apt/sources.list

admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ cat /etc/apt/sources.list.d/sources_debian_jessie_hp_tool_hpacucli.list
# file /etc/apt/sources.list
# from Jean Marc LACROIX (jeanmarc.lacr...@free.fr)
# define external link for Debian packages

# please, look at : https://oitibs.com/install-hp-acu-cli-on-debian/
# in order to install dedicated HP smart raid device controler tools

deb http://downloads.linux.hpe.com/SDR/repo/mcp/ jessie/current non-free

admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ sudo dmidecode -s system-product-name
ProLiant DL360 G6


admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ lspci |grep -i smart
03:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01)

-§2- tests
------------
admlocal@syspeo:~$ sudo hpacucli ctrl all show

Error: No controllers detected.


admlocal@syspeo:~$ sudo hpacucli
HP Array Configuration Utility CLI 9.40.12.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.

=> ctrl all show

Error: No controllers detected.


So, according to previous bug (http://blog.wpkg.org/2012/03/15/hpacucli-error-no-controllers-detected-with-hpsa-module-in-use/), i have made some test using code defined in uname26.c, but without success.

admlocal@syspeo:~/git/hp_smart_raid_uname26.git/src$ cat uname26.c
/* Copyright (C) 2011 Intel Corporation
   Author: Andi Kleen
   Set 2.6.x personality

   uname26 is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public
   License as published by the Free Software Foundation; version
   2.

   uname26 is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should find a copy of v2 of the GNU General Public License somewhere
   on your Linux system; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <sys/personality.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>

#define UNAME26 0x0020000

int main(int ac, char **av)
{
        if (!av[1]) {
                fprintf(stderr, "Usage: uname26 program ...\n"
"Run program with the uname 2.6 personality\n");
                exit(1);
        }
        if (personality(PER_LINUX | UNAME26) < 0)
                perror("personality"), exit(1);

        execvp(av[1], av + 1);
        fprintf(stderr, "Cannot execute %s: %s\n", av[1], strerror(errno));
        exit(1);
}

root@syspeo:/local_home/admlocal/git/hp_smart_raid_uname26.git/src# ./uname26 hpacucli ctrl all show config

Error: No controllers detected.


My modules are defined in attached file (please look at smod_4.5.0-0.bpo.1-amd64.txt)

lsmod > /tmp/lsmod_4.5.0-0.bpo.1-amd64.txt

# dmidecode -s system-product-name
ProLiant DL360 G6
root@syspeo:/local_home/admlocal/git/hp_smart_raid_uname26.git/src# dmidecode -s system-manufacturer
HP

# dmidecode | grep -i proliant
        Product Name: ProLiant DL360 G6
        Family: ProLiant
HP ProLiant Information

-§3- tests with smartmontools
------------------------------
For testing, i am using smartmontools
# dpkg -l |grep smartmon
ii smartmontools 6.4+svn4214-1~bpo8+1 amd64 control and monitor storage systems using S.M.A.R.T.

# cat /etc/default/smartmontools  |grep -v "#"

enable_smart="/dev/sda /dev/sdb /dev/sdc /dev/sdd"

start_smartd=yes

smartd_opts="--interval=180"

root@syspeo:~# cat /etc/smartd.conf |grep -v '#'

/dev/sda -d cciss,0 -H -T normal -l selftest -l error -l xerror -f -p -u -W 2,35,50 /dev/sdb -d cciss,1 -H -T normal -l selftest -l error -l xerror -f -p -u -W 2,35,50 /dev/sdc -d cciss,2 -H -T normal -l selftest -l error -l xerror -f -p -u -W 2,35,50 /dev/sdd -d cciss,3 -H -T normal -l selftest -l error -l xerror -f -p -u -W 2,35,50


My system have 4 SAS disk.............

admlocal@syspeo:~$ sudo smartctl -a -d cciss,0 /dev/sda
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.5.0-0.bpo.1-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sda [cciss_disk_00] [SCSI]: Device open changed type from 'sat,auto+cciss' to 'cciss'
=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              DG0146FARVU
Revision:             HPD6
User Capacity:        146 815 737 856 bytes [146 GB]
Logical block size:   512 bytes
Rotation Rate:        10020 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000cca00a809178
Serial number:        PCX8PYDE
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Thu Jun  9 08:08:55 2016 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     31 C
Drive Trip Temperature:        70 C

Manufactured in week 18 of year 2010
Specified cycle count over device lifetime:  50000
Accumulated start-stop cycles:  216
Elements in grown defect list: 0

Vendor (Seagate) cache information
  Blocks sent to initiator = 2551120362733568

Error counter log:
Errors Corrected by Total Correction Gigabytes Total ECC rereads/ errors algorithm processed uncorrected fast | delayed rewrites corrected invocations [10^9 bytes] errors read: 0 846 0 846 0 1085,388 0 write: 0 220075 0 220075 0 1422,455 0

Non-medium error count:      354

No self-tests have been logged

admlocal@syspeo:~$ sudo smartctl -a -d cciss,1 /dev/sdb
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.5.0-0.bpo.1-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdb [cciss_disk_01] [SCSI]: Device open changed type from 'sat,auto+cciss' to 'cciss'
=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              DG0146FARVU
Revision:             HPD6
User Capacity:        146 815 737 856 bytes [146 GB]
Logical block size:   512 bytes
Rotation Rate:        10020 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000cca00a885b8c
Serial number:        PCXDZS6E
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Thu Jun  9 08:09:15 2016 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     29 C
Drive Trip Temperature:        70 C

Manufactured in week 18 of year 2010
Specified cycle count over device lifetime:  50000
Accumulated start-stop cycles:  212
Elements in grown defect list: 0

Vendor (Seagate) cache information
  Blocks sent to initiator = 1844904879718400

Error counter log:
Errors Corrected by Total Correction Gigabytes Total ECC rereads/ errors algorithm processed uncorrected fast | delayed rewrites corrected invocations [10^9 bytes] errors read: 0 2661 0 2661 0 4527,527 0 write: 0 120713 0 120713 0 2328,019 0

Non-medium error count:      357

No self-tests have been logged


admlocal@syspeo:~$ sudo smartctl -a -d cciss,2 /dev/sdc
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.5.0-0.bpo.1-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdc [cciss_disk_02] [SCSI]: Device open changed type from 'sat,auto+cciss' to 'cciss'
=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              DG146BB976
Revision:             HPDC
User Capacity:        146 815 737 856 bytes [146 GB]
Logical block size:   512 bytes
Rotation Rate:        10033 rpm
Logical Unit id:      0x5000c5000c98b5a7
Serial number:        3NM6TFY900009904ZSJM
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Thu Jun  9 08:09:34 2016 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     30 C
Drive Trip Temperature:        68 C

Elements in grown defect list: 0

Vendor (Seagate) cache information
  Blocks sent to initiator = 2922697966
  Blocks received from initiator = 4178116120
  Blocks read from cache and sent to initiator = 158578008
  Number of read and write commands whose size <= segment size = 344974087
  Number of read and write commands whose size > segment size = 0

Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 44790,08
  number of minutes until next internal SMART test = 45

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

Non-medium error count:        0

No self-tests have been logged

admlocal@syspeo:~$ sudo smartctl -a -d cciss,3 /dev/sdd
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.5.0-0.bpo.1-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sdd [cciss_disk_03] [SCSI]: Device open changed type from 'sat,auto+cciss' to 'cciss'
=== START OF INFORMATION SECTION ===
Vendor:               HP
Product:              DG146BB976
Revision:             HPDC
User Capacity:        146 815 737 856 bytes [146 GB]
Logical block size:   512 bytes
Rotation Rate:        10033 rpm
Logical Unit id:      0x5000c5000c9945eb
Serial number:        3NM6XGNM00009904J34V
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Thu Jun  9 08:10:14 2016 CEST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature:     30 C
Drive Trip Temperature:        68 C

Elements in grown defect list: 2

Vendor (Seagate) cache information
  Blocks sent to initiator = 561321710
  Blocks received from initiator = 4254767069
  Blocks read from cache and sent to initiator = 426612917
  Number of read and write commands whose size <= segment size = 137143616
  Number of read and write commands whose size > segment size = 0

Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 44193,68
  number of minutes until next internal SMART test = 59

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

Non-medium error count:        0

No self-tests have been logged

-§4- mdadm & raid config
-------------------------

admlocal@syspeo:~$ cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdd1[1] sdc1[2]
      143206464 blocks super 1.2 [2/2] [UU]
      bitmap: 0/2 pages [0KB], 65536KB chunk

md1 : active raid1 sda5[0] sdb5[1]
      138323968 blocks super 1.2 [2/2] [UU]
      bitmap: 1/2 pages [4KB], 65536KB chunk

md0 : active raid1 sda1[2] sdb1[3]
      4877312 blocks super 1.2 [2/2] [UU]

admlocal@syspeo:~$ sudo mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Thu Mar 31 23:38:26 2016
     Raid Level : raid1
     Array Size : 4877312 (4.65 GiB 4.99 GB)
  Used Dev Size : 4877312 (4.65 GiB 4.99 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Thu Jun  9 08:18:58 2016
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : syspeo:0  (local to host syspeo)
           UUID : 0622ddc4:c8b7bd03:12855b40:82c2e595
         Events : 3870

    Number   Major   Minor   RaidDevice State
       2       8        1        0      active sync   /dev/sda1
       3       8       17        1      active sync   /dev/sdb1
admlocal@syspeo:~$ sudo mdadm --detail /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Thu Mar 31 23:38:26 2016
     Raid Level : raid1
     Array Size : 4877312 (4.65 GiB 4.99 GB)
  Used Dev Size : 4877312 (4.65 GiB 4.99 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Thu Jun  9 08:18:58 2016
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : syspeo:0  (local to host syspeo)
           UUID : 0622ddc4:c8b7bd03:12855b40:82c2e595
         Events : 3870

    Number   Major   Minor   RaidDevice State
       2       8        1        0      active sync   /dev/sda1
       3       8       17        1      active sync   /dev/sdb1


-§5- Conclusions
----------------

My config use LVM+mdadm on raid1 (with mdadm). As i can not use hpacmcli, then it is not possible to change my disk at runing time (hot swap)


Many thanks in advance for your help


--
--------------------------------------
 -- Jean-Marc LACROIX                 --
  -- mailto : jeanmarc.lacr...@free.fr --
    ---------------------------------------
Module                  Size  Used by
nls_utf8               16384  2 
btrfs                1003520  0 
xor                    24576  1 btrfs
raid6_pq              102400  1 btrfs
ufs                    73728  0 
qnx4                   16384  0 
hfsplus               102400  0 
hfs                    57344  0 
minix                  40960  0 
ntfs                  102400  0 
vfat                   20480  0 
msdos                  20480  0 
fat                    69632  2 vfat,msdos
jfs                   180224  0 
xfs                   978944  0 
libcrc32c              16384  1 xfs
crc32c_generic         16384  0 
cpuid                  16384  0 
uas                    24576  0 
usb_storage            69632  1 uas
rpcsec_gss_krb5        36864  0 
nfsv4                 552960  0 
dns_resolver           16384  1 nfsv4
fuse                   98304  0 
bluetooth             516096  0 
rfkill                 24576  1 bluetooth
binfmt_misc            20480  1 
veth                   16384  0 
bridge                118784  0 
amdkfd                122880  1 
radeon               1499136  1 
coretemp               16384  0 
kvm_intel             184320  0 
ttm                    94208  1 radeon
drm_kms_helper        143360  1 radeon
drm                   356352  4 ttm,drm_kms_helper,radeon
kvm                   557056  1 kvm_intel
i2c_algo_bit           16384  1 radeon
hpilo                  20480  0 
iTCO_wdt               16384  0 
serio_raw              16384  0 
hpwdt                  16384  0 
evdev                  24576  4 
pcspkr                 16384  0 
acpi_power_meter       20480  0 
iTCO_vendor_support    16384  1 iTCO_wdt
8250_fintek            16384  0 
ipmi_si                57344  0 
ipmi_msghandler        49152  1 ipmi_si
irqbypass              16384  1 kvm
i7core_edac            24576  0 
button                 16384  0 
lpc_ich                24576  0 
pcc_cpufreq            16384  0 
shpchp                 36864  0 
edac_core              57344  2 i7core_edac
mfd_core               16384  1 lpc_ich
acpi_cpufreq           20480  0 
tpm_tis                20480  0 
tpm                    45056  1 tpm_tis
processor              36864  1 acpi_cpufreq
nfsd                  323584  27 
auth_rpcgss            57344  2 nfsd,rpcsec_gss_krb5
nfsv3                  40960  0 
nfs_acl                16384  2 nfsd,nfsv3
nfsv2                  24576  0 
nfs                   253952  3 nfsv2,nfsv3,nfsv4
lockd                  90112  4 nfs,nfsd,nfsv2,nfsv3
grace                  16384  2 nfsd,lockd
sunrpc                331776  44 
nfs,nfsd,rpcsec_gss_krb5,auth_rpcgss,lockd,nfsv2,nfsv3,nfsv4,nfs_acl
fscache                61440  2 nfs,nfsv4
8021q                  28672  0 
garp                   16384  1 8021q
mrp                    20480  1 8021q
stp                    16384  2 garp,bridge
llc                    16384  3 stp,garp,bridge
autofs4                40960  35 
ext4                  598016  89 
crc16                  16384  2 ext4,bluetooth
mbcache                20480  1 ext4
jbd2                  110592  1 ext4
dm_mod                110592  285 
raid1                  36864  3 
md_mod                131072  4 raid1
sr_mod                 24576  0 
cdrom                  57344  1 sr_mod
ata_generic            16384  0 
hid_generic            16384  0 
usbhid                 49152  0 
hid                   118784  2 hid_generic,usbhid
sg                     32768  0 
sd_mod                 49152  10 
crc32c_intel           24576  2 
psmouse               122880  0 
uhci_hcd               45056  0 
ehci_pci               16384  0 
ata_piix               36864  0 
ehci_hcd               77824  1 ehci_pci
libata                237568  2 ata_generic,ata_piix
usbcore               241664  6 
uas,uhci_hcd,usb_storage,ehci_hcd,ehci_pci,usbhid
hpsa                   98304  6 
scsi_transport_sas     45056  1 hpsa
usb_common             16384  1 usbcore
bnx2                   86016  0 
scsi_mod              229376  8 
sg,uas,hpsa,scsi_transport_sas,usb_storage,libata,sd_mod,sr_mod
thermal                20480  0 
fjes                   28672  0 

Reply via email to