Fixed
Details
Assignee
UnassignedUnassignedReporter
Tim Miller DyckTim Miller DyckLabels
Components
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Tim Miller Dyck
Tim Miller DyckLabels
Components
Fix versions
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created December 22, 2014 at 11:54 AM
Updated April 7, 2015 at 3:03 PM
Resolved January 21, 2015 at 7:08 PM
It appears that the WMI wmiLogicalDisk and wmiPhysicalDisk device RRD data file directories have changed in version 14 to a different naming format. For example, what was
C_
is nowC:
and what was0_C_
is now0 C:
As Windows drives were referenced in version 12 differently, this causes new RRD data directories to be created and so doubles the number of drive devices in charts and breaks continuity with previous statistics.
Here is an example:
root@mccokMonitor:/var/lib/opennms/rrd/snmp/18/wmiLogicalDisk# ls -la total 48 drwxrwxr-x 10 root root 4096 Dec 22 10:33 . drwxrwxr-x 15 root root 12288 Feb 17 2014 .. drwxrwxr-x 2 root root 4096 Dec 23 2013 C_ <-- v1.12 NAME drwxrwxr-x 2 root root 4096 Dec 22 10:33 C: <-- v14 NAME drwxrwxr-x 2 root root 4096 Dec 23 2013 D_ drwxrwxr-x 2 root root 4096 Dec 22 10:33 D: drwxrwxr-x 2 root root 4096 Dec 23 2013 E_ drwxrwxr-x 2 root root 4096 Dec 22 10:33 E: drwxrwxr-x 2 root root 4096 Dec 23 2013 HarddiskVolume3 drwxrwxr-x 2 root root 4096 Dec 23 2013 _Total
and
root@mccokMonitor:/var/lib/opennms/rrd/snmp/18/wmiPhysicalDisk# ls -la total 44 drwxrwxr-x 9 root root 4096 Dec 22 10:33 . drwxrwxr-x 15 root root 12288 Feb 17 2014 .. drwxrwxr-x 2 root root 4096 Dec 22 11:10 0 C: <-- v14 NAME drwxrwxr-x 2 root root 4096 Dec 23 2013 0_C_ <-- v1.12 NAME drwxrwxr-x 2 root root 4096 Dec 22 11:10 1 D: drwxrwxr-x 2 root root 4096 Dec 23 2013 1_D_ drwxrwxr-x 2 root root 4096 Dec 22 11:10 2 E: drwxrwxr-x 2 root root 4096 Dec 23 2013 2_E_ drwxrwxr-x 2 root root 4096 Dec 22 11:10 _Total
I remember there was a specific upgrade script written for the v1.12 upgrade (NMS-6056) to handle a similar case for the SNMP interface names changing format. Could something similar be done here?
Alternatively, I could do a find to locate all directories using the v1.12 names and delete them to clean up, but this would cause all previous WMI disk stats to be lost.
Thanks,
Tim Miller Dyck