Bug 706095

Summary: iostat -n - values in output overflows
Product: Red Hat Enterprise Linux 5 Reporter: Branislav Náter <bnater>
Component: sysstatAssignee: Ivana Varekova <varekova>
Status: CLOSED ERRATA QA Contact: Branislav Náter <bnater>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-21 10:42:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch none

Description Branislav Náter 2011-05-19 13:34:19 UTC
Description of problem:
iostat -n is used to display statistics for mounted NFS shares. When there are exactly 4 mounts mouted, some values (rops/s in this case) overflows.

Version-Release number of selected component (if applicable):
sysstat-7.0.2-6.el5.x86_64

How reproducible:
always

Steps to Reproduce:
1. mount exactly 4 NFS shares
2. run iostat -n
  
Actual results:
.qa.[root@x86-64-5s-m1 sysstat]# iostat -nkh
Linux 2.6.18-238.9.1.el5xen (x86-64-5s-m1.ss.eng.bos.redhat.com)        05/19/2011

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.25    0.00    0.00    0.00    0.00   99.75

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               0.00         0.00         0.00          0          0
sda1              0.00         0.00         0.00          0          0
sda2              0.00         0.00         0.00          0          0
sda3              0.00         0.00         0.00          0          0

Device:                   rkB_nor/s    wkB_nor/s    rkB_dir/s    wkB_dir/s    rkB_svr/s    wkB_svr/s     ops/s    rops/s    wops/s
storage.bos.redhat.com:/vol/engineering/devarchive/redhat 
                         3843068.96 18014398509481918.00         0.00         0.00         0.00         0.00      0.00      0.00      0.00
ntap-vader.corp.redhat.com:/vol/engarchive2 
                               0.00         0.00         0.00         0.00         0.00         0.00      0.00      0.00      0.00
ntap-vader.corp.redhat.com:/vol/engarchive 
                               0.00         0.00         0.00         0.00         0.00         0.00      0.00      0.00      0.00
nest.test.redhat.com:/mnt/qa 
                               0.00         0.00         0.00         0.00         0.00         0.00      0.00 18446744069414586368.00 15103552107087759360.00

Expected results:
no overflowed values

Additional info:

Comment 1 Ivana Varekova 2011-05-20 04:44:21 UTC
Created attachment 499993 [details]
proposed patch

Comment 4 errata-xmlrpc 2011-07-21 10:42:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-1005.html