Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7277

WMI changed naming format for wmiLogicalDisk and wmiPhysicalDisk device

    Details

      Description

      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 now C: and what was 0_C_ is now 0 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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              timmillerdyck Tim Miller Dyck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: