pcp
[Top] [All Lists]

Re: [pcp] fibre adapter counters in pcp?

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] fibre adapter counters in pcp?
From: Robert verkerk <robert.verkerk@xxxxxxx>
Date: Wed, 18 Apr 2012 14:25:30 +0200
Cc: Mark Goodwin <mgoodwin@xxxxxxxxxx>, <kenj@xxxxxxxxxxxxxxxx>, Services <ds-tg@xxxxxxx>, <pcp@xxxxxxxxxxx>
In-reply-to: <CAAp5ZgNavBa3ZyOuNnAq+sn-yYDya9n1ysxurXaY0tC+6fNbXg@xxxxxxxxxxxxxx>
References: <4F8D20CD.8020404@xxxxxxx> <4F8E094C.5090208@xxxxxxxxxx> <4F8E73E5.4070203@xxxxxxx> <CAAp5ZgNavBa3ZyOuNnAq+sn-yYDya9n1ysxurXaY0tC+6fNbXg@xxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20
Hi,

I used the info from "/sys/class/fc_host" NOT "/sys/class/scsi_host".

dm2 is a system with newer fibre interfaces
===========================================
The info is as follows:

dm2:~ # lspci | grep -i fibre
08:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
08:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)


dm2:~ # ls -l /sys/class/fc_host/*/
/sys/class/fc_host/host11/:
total 0
lrwxrwxrwx 1 root root    0 Apr 11 18:03 device -> ../../../host11
-r--r--r-- 1 root root 4096 Apr 11 18:03 fabric_name
--w------- 1 root root 4096 Apr 11 18:03 issue_lip
-r--r--r-- 1 root root 4096 Apr 11 18:03 max_npiv_vports
-r--r--r-- 1 root root 4096 Apr 11 18:03 node_name
-r--r--r-- 1 root root 4096 Apr 11 18:03 npiv_vports_inuse
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_id
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_name
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_state
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_type
drwxr-xr-x 2 root root    0 Apr 11 18:03 power
-r--r--r-- 1 root root 4096 Apr 11 18:03 speed
drwxr-xr-x 2 root root    0 Apr 11 18:03 statistics
lrwxrwxrwx 1 root root    0 Apr 11 14:37 subsystem -> ../../../../../../../class/fc_host
-r--r--r-- 1 root root 4096 Apr 11 18:03 supported_classes
-r--r--r-- 1 root root 4096 Apr 11 18:03 supported_speeds
-r--r--r-- 1 root root 4096 Apr 11 18:03 symbolic_name
-rw-r--r-- 1 root root 4096 Apr 11 18:03 system_hostname
-rw-r--r-- 1 root root 4096 Apr 11 18:03 tgtid_bind_type
-rw-r--r-- 1 root root 4096 Apr 11 14:37 uevent
--w------- 1 root root 4096 Apr 11 18:03 vport_create
--w------- 1 root root 4096 Apr 11 18:03 vport_delete

/sys/class/fc_host/host12/:
total 0
lrwxrwxrwx 1 root root    0 Apr 11 18:03 device -> ../../../host12
-r--r--r-- 1 root root 4096 Apr 11 18:03 fabric_name
--w------- 1 root root 4096 Apr 11 18:03 issue_lip
-r--r--r-- 1 root root 4096 Apr 11 18:03 max_npiv_vports
-r--r--r-- 1 root root 4096 Apr 11 18:03 node_name
-r--r--r-- 1 root root 4096 Apr 11 18:03 npiv_vports_inuse
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_id
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_name
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_state
-r--r--r-- 1 root root 4096 Apr 11 18:03 port_type
drwxr-xr-x 2 root root    0 Apr 11 18:03 power
-r--r--r-- 1 root root 4096 Apr 11 18:03 speed
drwxr-xr-x 2 root root    0 Apr 11 18:03 statistics
lrwxrwxrwx 1 root root    0 Apr 11 14:37 subsystem -> ../../../../../../../class/fc_host
-r--r--r-- 1 root root 4096 Apr 11 18:03 supported_classes
-r--r--r-- 1 root root 4096 Apr 11 18:03 supported_speeds
-r--r--r-- 1 root root 4096 Apr 11 18:03 symbolic_name
-rw-r--r-- 1 root root 4096 Apr 11 18:03 system_hostname
-rw-r--r-- 1 root root 4096 Apr 11 18:03 tgtid_bind_type
-rw-r--r-- 1 root root 4096 Apr 11 14:37 uevent
--w------- 1 root root 4096 Apr 11 18:03 vport_create
--w------- 1 root root 4096 Apr 11 18:03 vport_delete




dm2:~ # ls -l /sys/class/fc_host/*/statistics
/sys/class/fc_host/host11/statistics:
total 0
-r--r--r-- 1 root root 4096 Apr 11 18:03 dumped_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 error_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_control_requests
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_input_megabytes
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_input_requests
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_output_megabytes
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_output_requests
-r--r--r-- 1 root root 4096 Apr 11 18:03 invalid_crc_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 invalid_tx_word_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 link_failure_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 lip_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 loss_of_signal_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 loss_of_sync_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 nos_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 prim_seq_protocol_err_count
--w------- 1 root root 4096 Apr 11 18:03 reset_statistics
-r--r--r-- 1 root root 4096 Apr 11 18:03 rx_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 rx_words
-r--r--r-- 1 root root 4096 Apr 11 18:03 seconds_since_last_reset
-r--r--r-- 1 root root 4096 Apr 11 18:03 tx_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 tx_words

/sys/class/fc_host/host12/statistics:
total 0
-r--r--r-- 1 root root 4096 Apr 11 18:03 dumped_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 error_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_control_requests
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_input_megabytes
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_input_requests
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_output_megabytes
-r--r--r-- 1 root root 4096 Apr 11 18:03 fcp_output_requests
-r--r--r-- 1 root root 4096 Apr 11 18:03 invalid_crc_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 invalid_tx_word_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 link_failure_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 lip_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 loss_of_signal_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 loss_of_sync_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 nos_count
-r--r--r-- 1 root root 4096 Apr 11 18:03 prim_seq_protocol_err_count
--w------- 1 root root 4096 Apr 11 18:03 reset_statistics
-r--r--r-- 1 root root 4096 Apr 11 18:03 rx_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 rx_words
-r--r--r-- 1 root root 4096 Apr 11 18:03 seconds_since_last_reset
-r--r--r-- 1 root root 4096 Apr 11 18:03 tx_frames
-r--r--r-- 1 root root 4096 Apr 11 18:03 tx_words


dm4 is a node with older interfaces:
====================================
dm4:~ # lspci | grep -i fibre
08:00.0 Fibre Channel: LSI Logic / Symbios Logic FC949ES Fibre Channel Adapter (rev 02)
08:00.1 Fibre Channel: LSI Logic / Symbios Logic FC949ES Fibre Channel Adapter (rev 02)

This one does not seem to have statistics :(
dm4:~ # ls -l /sys/class/fc_host/*/
/sys/class/fc_host/host11/:
total 0
lrwxrwxrwx 1 root root    0 Apr 17 21:03 device -> ../../../host11
-r--r--r-- 1 root root 4096 Apr 17 21:03 fabric_name
-r--r--r-- 1 root root 4096 Apr 17 21:03 maxframe_size
-r--r--r-- 1 root root 4096 Apr 17 21:03 node_name
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_id
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_name
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_state
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_type
drwxr-xr-x 2 root root    0 Apr 17 21:03 power
-r--r--r-- 1 root root 4096 Apr 17 21:03 speed
lrwxrwxrwx 1 root root    0 Apr 17 21:03 subsystem -> ../../../../../../../class/fc_host
-r--r--r-- 1 root root 4096 Apr 17 21:03 supported_classes
-r--r--r-- 1 root root 4096 Apr 17 21:03 supported_speeds
-r--r--r-- 1 root root 4096 Apr 17 21:03 symbolic_name
-rw-r--r-- 1 root root 4096 Apr 17 21:03 tgtid_bind_type
-rw-r--r-- 1 root root 4096 Apr 17 21:03 uevent

/sys/class/fc_host/host12/:
total 0
lrwxrwxrwx 1 root root    0 Apr 17 21:03 device -> ../../../host12
-r--r--r-- 1 root root 4096 Apr 17 21:03 fabric_name
-r--r--r-- 1 root root 4096 Apr 17 21:03 maxframe_size
-r--r--r-- 1 root root 4096 Apr 17 21:03 node_name
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_id
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_name
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_state
-r--r--r-- 1 root root 4096 Apr 17 21:03 port_type
drwxr-xr-x 2 root root    0 Apr 17 21:03 power
-r--r--r-- 1 root root 4096 Apr 17 21:03 speed
lrwxrwxrwx 1 root root    0 Apr 17 21:03 subsystem -> ../../../../../../../class/fc_host
-r--r--r-- 1 root root 4096 Apr 17 21:03 supported_classes
-r--r--r-- 1 root root 4096 Apr 17 21:03 supported_speeds
-r--r--r-- 1 root root 4096 Apr 17 21:03 symbolic_name
-rw-r--r-- 1 root root 4096 Apr 17 21:03 tgtid_bind_type
-rw-r--r-- 1 root root 4096 Apr 17 21:03 uevent




greetings,

Robert Verkerk



On 04/18/2012 12:40 PM, Nathan Scott wrote:
Hi Robert,

On 18 April 2012 17:57, Robert verkerk <robert.verkerk@xxxxxxx> wrote:
Hi,

We are happy to assist to get these parameters in pcp again.

Granting you access to the systems is problematic. The systems where we have pcp installed are our production systems.

Can you send (from your production system) the contents of the "entry below /sys/class/scsi_host" Mark mentioned for your FC HBA?  Should give us some hints as to what stats are available for your device(s), and relative ease/difficulty of getting those values into PCP.

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>