SC 2012 VMM: How to collect Storage Management Service traces

Summary

This article describes how to enable debug logging for the Microsoft System Center 2012 R2 Virtual Machine Manager (SC 2012 R2 VMM) Storage Management Service. The Storage Management Service communicates with SMI-S providers from several third-party providers.

Note For a complete list of providers, see the following website:
Storage traces (CIMXML output) are useful when you troubleshoot storage provider failures.

More Information

Storage traces can grow very large very quickly. Therefore, make sure that you try to narrow the time of collection as much as you can before you start a trace. To enable Storage Management Service tracing, use one of the following methods.

Automated method

  1. Download the VMM Support Diagnostics Platform (SDP) package from the following website:
  2. Follow the wizard to go to the Select trace type screen, and then click Storage tracing (Select only if debugging storage providers).
  3. Click Next.
  4. When you are prompted, reproduce your issue, and then click Next. The wizard will stop logging after you press Next on this screen and will automatically collect your data.
  5. When you are prompted, save a copy of the .cab file locally.
In the .cab file that you saved in step 5, locate the following files:
  • <ServerName>_VMMLog_<number>.car - VMM debug log
  • <ServerName>_VMMLog_<number>_error.car - VMM debug log errors only
  • <ServerName>-cimxmllog.xml - CimXML debug log
  • <ServerName>_StorageLog_02031445.etl - CIMXML ETL log
Note in these files, the placeholder <ServerName> represents the name of the server that you are tracing, and the placeholder <number> represents a date and time stamp string.

Manual Method

  1. Create a VMM debug trace by following the steps in How to enable debug logging in Virtual Machine Manager.
  2. Start the trace, and then go to step 3. You will capture both the VMM debug trace and the CIMXML trace at the same time.
  3. Start Registry Editor (regedit.exe), and then locate the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Storage Management
  4. Create a key that is named CIMXMLLog under this key if a key that has this name does not exist.
  5. Create the following three values under the CIMXMLLog key:

    • Name: LogFileName
    • Type: REG_SZ
    • Data: [Type the full path of your CIMXMLLog. For example, type C:\temp\cimxmllog.xml.]
    • Name: LogLevel
    • Type: REG_DWORD
    • Data: 4
    • Name: MaxLogFileSize
    • Type: REG_DWORD
    • Data: 0x4000000 (hexadecimal)
  6. Restart the Windows Standards-Based Storage Management service (MSStrgSvc).
  7. Reproduce your issue.
  8. Stop your VMM trace from step 2, and then convert it.
  9. Set the LogLevel registry value that you created in step 5 to 0 (zero).
  10. Restart the Windows Standards-Based Storage Management service (MSStrgSvc).
Egenskaper

Artikel-id: 3037626 – senaste granskning 18 feb. 2015 – revision: 1

Feedback