Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.5 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Physical Harddisk Data collection not working

Hello,

I am evaluating OcsInventory for collecting hardware data of a few hundred Linux servers.

The test server is a supermicro with an Adapted 6504, with 4 disks attached, in 2 RAID1.

Operating system is CentOS6.

The ocsinventory agent reports ONLY the logical devices (the 2 raids, sda and sdb), but NOT the physical raid disks. Only the logical disks are visible on the ocsreports server in the "Storage" section".

Another test on a HP ProLiant DL360p Gen9 (has 4 disks attached as 2 RAID1) shows no logical devices in OcsInventory and no physical harddisks. No disks at all are shown on the ocsreports server in the "Storage" section". Operating system is CentOS6 again.

What could be the problem that no physical disks are found?

Edit: OcsInventory Server and agent installation was done via the rpm repository at http://rpm.ocsinventory-ng.org/
asked in OCS Inventory NG agent for Unix by (200 points)

3 Answers

0 votes

Hi

  1. supermicro with adaptec 6504 : could you post an extract of the xml file with disk informations?
  2. HP Proliant DL360p Gen9 : post the content of ocsinventory-agent.log file. What kind of raid card is installed on this server?

Regards

Frank

answered by (66.5k points)
0 votes
# ocsinventory-agent --nosoftware --local .
pcilib: sysfs_read_vpd: read failed: Input/output error
#

Disk informations on the supermicro box:

    <STORAGES>
      <DESCRIPTION>scsi</DESCRIPTION>
      <DISKSIZE>999643.152384</DISKSIZE>
      <FIRMWARE>V1.0</FIRMWARE>
      <MANUFACTURER>Adaptec</MANUFACTURER>
      <MODEL>sys</MODEL>
      <NAME>sda</NAME>
      <SERIALNUMBER>SAdaptec_sys_5B98A729</SERIALNUMBER>
      <TYPE>disk</TYPE>
    </STORAGES>
    <STORAGES>
      <DESCRIPTION>scsi</DESCRIPTION>
      <DISKSIZE>999643.152384</DISKSIZE>
      <FIRMWARE>V1.0</FIRMWARE>
      <MANUFACTURER>Adaptec</MANUFACTURER>
      <MODEL>data</MODEL>
      <NAME>sdb</NAME>
      <SCSI_UNID>1</SCSI_UNID>
      <SERIALNUMBER>SAdaptec_data_5104B729</SERIALNUMBER>
      <TYPE>disk</TYPE>
    </STORAGES>

HP Proliant DL360p Gen9:

Controller is a HP Smart Array P440ar

# ocsinventory-agent --local .
# cat /var/log/ocsinventory-agent/ocsinventory-agent.log
[Wed Feb  7 16:06:22 2018][info] [snmp] Agent is running in local mode...disabling module
[Wed Feb  7 16:06:22 2018][info] [download] Agent is running in local mode...disabling module
[Wed Feb  7 16:06:26 2018][info] Inventory saved in ./hptest-2018-02-06-12-50-46.ocs

Edit: attached /proc/scsi/scsi from the supermicro server:

# cat /proc/scsi/scsi
Attached devices:
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: Adaptec  Model: sys              Rev: V1.0
  Type:   Direct-Access                    ANSI  SCSI revision: 02
Host: scsi4 Channel: 00 Id: 01 Lun: 00
  Vendor: Adaptec  Model: data             Rev: V1.0
  Type:   Direct-Access                    ANSI  SCSI revision: 02
Host: scsi4 Channel: 01 Id: 00 Lun: 00
  Vendor: WDC      Model: WD1003FBYX-01Y7B Rev: 01.0
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 01 Id: 01 Lun: 00
  Vendor: WDC      Model: WD1003FBYX-01Y7B Rev: 01.0
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 01 Id: 02 Lun: 00
  Vendor: WDC      Model: WD1003FBYX-01Y7B Rev: 01.0
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 01 Id: 03 Lun: 00
  Vendor: WDC      Model: WD1003FBYZ-010FB Rev: 01.0
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 03 Id: 00 Lun: 00
  Vendor: AMI      Model: MG9071           Rev: 0011
  Type:   Enclosure                        ANSI  SCSI revision: 05

#

Edit 2: /proc/scsi/scsi on the HP Server:

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: P440ar           Rev: 4.52
  Type:   RAID                             ANSI  SCSI revision: 05
Host: scsi0 Channel: 01 Id: 00 Lun: 00
  Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.52
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi0 Channel: 01 Id: 00 Lun: 01
  Vendor: HP       Model: LOGICAL VOLUME   Rev: 4.52
  Type:   Direct-Access                    ANSI  SCSI revision: 05

Edit 3: Supermicro box ocsinventory-agent.log

# cat /var/log/ocsinventory-agent/ocsinventory-agent.log
[Wed Feb  7 17:03:05 2018][info] [snmp] Agent is running in local mode...disabling module
[Wed Feb  7 17:03:05 2018][info] [download] Agent is running in local mode...disabling module
[Wed Feb  7 17:03:17 2018][info] Inventory saved in ./vpsdev01-2018-02-05-13-58-57.ocs

Hp Proliant ocsinventory-agent.log

[Wed Feb  7 16:06:22 2018][info] [snmp] Agent is running in local mode...disabling module
[Wed Feb  7 16:06:22 2018][info] [download] Agent is running in local mode...disabling module
[Wed Feb  7 16:06:26 2018][info] Inventory saved in ./hptest-2018-02-06-12-50-46.ocs
answered by (200 points)
edited by
0 votes
Update on the HP Proliant disk data collection:

I saw that /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Backend/OS/Linux/Storages/HP.pm is using the "hpacucli" command line tool for collecting the storage data. This tool os outdated for at least HP Servers of Generation 8 and before. Current version is Generation 10.

Exchanging "hpssacli" for "hpacucli" in /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Backend/OS/Linux/Storages/HP.pm worked and I got all disk data with the inventory agent:

    <STORAGES>
      <DESCRIPTION>Solid State SATA</DESCRIPTION>
      <DISKSIZE>4096000</DISKSIZE>
      <FIRMWARE>4IWTHPG1</FIRMWARE>
      <MANUFACTURER>LK0200GEYMR</MANUFACTURER>
      <MODEL>LK0200GEYMR</MODEL>
      <NAME>LK0200GEYMR</NAME>
      <SERIALNUMBER>BTHC61213RF200TGN</SERIALNUMBER>
      <TYPE>disk</TYPE>
    </STORAGES>

(rest of storage devices snipped off)
answered by (200 points)
 
Powered by Question2Answer
...