Scom Managing Fragmentation levels

Standard

When you have imported the Windows Server Management Pack you can get a lot of warnings saying that your drives fragmentation levels are high

LogicalDiskFragementationWarning

First some background information on the monitor: This monitor runs on a periodic basis (Every Saturday at 3 a.m. by default) to check the fragmentation levels of all logical drives. If fragmentation levels are found to be above threshold then by default the state of the monitor will change to "Warning" and an alert will be generated.

I used the following steps to solve this issue:

  1. Investigate if you are using virtualization solution or physical machines
  2. Create a group for the VMWare Virtual Machine
  3. Create a Group for the Physical Machines
  4. Disable the Monitor for a Group Vmware Virtual Machine
  5. Enable the logical disk fragmentation Recovery for group Physical machines

Investigate if you are using virtualization solution of physical Machines

In our environment we have physical machines with local storage and Virtual Machines with storage on a SAN (Storage Area Network).
Because we are having Virtual Machines with storage on a SAN. I contacted our SAN supplier and he advised not to use any defrag tools in the Guest OS.
Our Physical machines with local storage can use the local installed defrag tools to defrag the local storage

Create a group for the Virtual Machines

  1. Start the operations Manager 2012 console
  2. Select the "Authoring" pane and select "Attributes"
  3. Right click "Attributes" and click "Create a New Attribute…"

    CreateaNewAttribute

  4. On the "General Properties" page, name the attribute and give the attribute a description and click "Next"

    GeneralPropertiesAttribute

  5. On the "Discovery Method" page, choose the discovery type "Registry" on the target click "Browse" and select "Windows Computer", Select the management pack where you want to store the Attribute and click "Next"

    DiscoveryMethodAttribute

  6. On the "Registry Probe Configuration" page, select "Key" on the properties fill in the followind path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMTools" and change the frequency to "86400 to run Daily and click "Finish"

    RegistryProbeConfigurationAttribute

  7. Select the "Monitoring" pane and select "Discovered Inventory" click "Change Target Type" and select "Windows Computer_Extended" (You should see a list of servers with where the Vmware Tools are installed)

    VmwareToolsInstalled

  8. Select the "Authoring" pane and select "Group"
  9. Right click "Groups" and click "Create a New Group…"

    CreateNewGroup

  10. On the "General Properties" page, name the Group and give the Group a description. Select the management pack where you want to store the Group and click "Next"

    GeneralPropertiesGroup

  11. On the "Explicit Members" click "Next"
  12. On the "Dynamic Members" click "Create/Edit Rules…
  13. On the "Create Group Wizard – Query Builder" page select "Windows Computer_Extended" and click "Add". Select "VMWare Tools", "Equels", "True" and click "Ok"

    CreateGroupWizardQueryBuilder

  14. On the "Dynamic Members" click "Next
  15. On the "Subgroups" click "Next
  16. On the "Excluded Members" click "Create
  17. Select the "Authoring" pane and select "Group"
  18. In the look for type "Vmware Virtual Machines and click "view Group Members" (You should only see the Virual Machines that have the vmware tools installed)

    ManagedObjectsGroup

Create a Group for the Physical Machines

  1. Select the "Authoring" pane and select "Group"
  2. Right click "Groups" and click "Create a New Group…"
  3. On the "General Properties" page, name the Group and give the Group a description. Select the management pack where you want to store the Group and click "Next"

    GeneralPropertiesGroupPhysicalMachines

  4. On the "Explicit Members" click "Next"
  5. On the "Dynamic Members" click "Create/Edit Rules…
  6. On the "Create Group Wizard – Query Builder" page select "Windows Computer_Extended" and click "Add". Select "VMWare Tools", "Equels", "false" and click "Ok"

    CreateGroupWizardQueryBuilderfalse

  7. On the "Dynamic Members" click "Next
  8. On the "Subgroups" click "Next
  9. On the "Excluded Members" click "Create
  10. Select the "Authoring" pane and select "Group"
  11. In the look for type "Physical Machines and click "view Group Members" (You should only see the Physical machines)

    ManagedObjectsGroupPhysical

Disable the Monitor for the Group Vmware Virtual Machine

  1. Start the operations Manager 2012 console
  2. Select the "Authoring" pane and select "Monitors" in the look for type "Logical Disk Fragmentation Level"
  3. Right click "Logical Disk Fragmentation Level" select "Overrides", "Disable the Monitor", "For a Group"

    OverridesDisableMonitor

  4. On the "Select Object" select the group you created above and click "Ok"

    SelectObject

  5. On the "Override Properties" click "Apply" and click "Ok"

    OverrideProperties

  6. Repeat the steps for Windows Server 2008 and Windows Server 2012

Enable the logical disk fragmentation Recovery for group Physical machines

  1. Start the operations Manager 2012 console
  2. Select the "Authoring" pane and select "Monitors" in the look for type "Logical Disk Fragmentation Level"
  3. Right click "Logical Disk Fragmentation Level" select "Overrides", "Override Recovery", "Logical disk defragmentation", "For a Group"

    OverrideRecovery

  4. On the "Select Object" select the group you created above and click "Ok"

    SelectObjectPhysicalMachine

  5. On the "Override Properties" select "Enable" and change the Override Value to "false" and click "Apply" and "Ok"

    OverridePropertiesPhysical

  6. Repeat the steps for Windows Server 2008 and Windows Server 2012

If you did the configuration You virtual machines will not give any warnings for Logical disk fragmentation and physical machines will run a auto recovery.

2 thoughts on “Scom Managing Fragmentation levels

  1. Shaikh

    Hi Roel,
    great post, I am very new to SCOM 2012,i was following up all these above mention steps but accidently on procedure for “Create a group for the Virtual Machines” on Step # 5 I choose the wrong MP, now I can not change the MP.. because its greyed out I have tried to remove the attribute but its still showing up under “Management Pack Objects>Attributes Window, and when I am trying to create another new Attribute every time I select “Windows Computer_Extend” target, the wrong MP is populated automatically and I can not change it , how can I fix this can you kindly help?
    any help would be much appreciated. Thanks
    Shaikh

    • Hi Shaikh,
      Thank’s for the comment.
      What I would do is remove the Attribute from the wrong Management Pack. You cannot remove the attribute using the System center Operations Manager Console.
      Here is a Blogpost on how you can remove the attribute:
      http://www.ms-opsmgr.eu/?p=584
      Hope this can help you solve your problem. If you have any question please feel free to ask them
      Greatings
      RoelKn

Leave a Reply to Roelkn Cancel reply

Your email address will not be published. Required fields are marked *