Bug 861152 - simfs missing in hrStorage in an OpenVZ container
Summary: simfs missing in hrStorage in an OpenVZ container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: net-snmp
Version: 6.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: Dalibor Pospíšil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-27 16:10 UTC by Romain LE DISEZ
Modified: 2013-02-21 10:27 UTC (History)
1 user (show)

Fixed In Version: net-snmp-5.5-44.el6
Doc Type: Bug Fix
Doc Text:
same as #846532
Clone Of:
Environment:
Last Closed: 2013-02-21 10:27:44 UTC
Target Upstream Version:


Attachments (Terms of Use)
Add support for simfs (1.24 KB, patch)
2012-10-01 16:16 UTC, Romain LE DISEZ
no flags Details | Diff


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0421 normal SHIPPED_LIVE net-snmp bug fix and enhancement update 2013-02-20 20:49:35 UTC

Internal Links: 989498 1036055

Description Romain LE DISEZ 2012-09-27 16:10:54 UTC
On RHEL 6.3, with the default net-snmp package (net-snmp 1:5.5-41.el6_3.1), I can't get the root partition of an OpenVZ container via SNMP. This bug makes the monitoring of diskspace impossible.

>>>>>>>>>>>>>>>>>>>>>>>
# snmpwalk  -v 2c -c public  server.example.com  hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
<<<<<<<<<<<<<<<<<<<<<<<


If I recompile the SRPM after I disabled the application of Patch23: net-snmp-5.5-hrFSTable-indexes.patch in the SPEC file, everything works fine, I can monitor the diskspace.

>>>>>>>>>>>>>>>>>>>>>>>
# snmpwalk  -v 2c -c public  server.example.com  hrStorageDescr
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
<<<<<<<<<<<<<<<<<<<<<<<

(the following does not apply anymore when Patch23 is not applied)
Patch30: net-snmp-5.5-gfs.patch
Patch46: net-snmp-5.5-xfs.patch
Patch61: net-snmp-5.5-hrStorage-realStorageUnits.patch
Patch62: net-snmp-5.5-hrStorage-realStorageUnits2.patch
Patch63: net-snmp-5.5-hrStorage-fs.patch


This bug appeared in RHEL 5.7

I am a user of CentOS, the problem is also in Fedora. I hadn't tested on RHEL but I'm pretty sure it has the same bug.

Comment 2 Romain LE DISEZ 2012-10-01 16:16:27 UTC
Created attachment 619864 [details]
Add support for simfs

I'm not an net-snmp expert, but this patch works for me. I just used the one for XFS as a base.

Comment 4 RHEL Product and Program Management 2012-10-08 07:19:13 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 9 errata-xmlrpc 2013-02-21 10:27:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0421.html


Note You need to log in before you can comment on or make changes to this bug.