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.

Veeam Quick Migration

Standard

I usual y blog about System Center Operations Manager 2007 r2 or 2012. This time I am not going to blog about System Center but about migrating vmware host from one Hardware Box to another Hardware Box.

For a customer of mine I needed to migrate his Virtual machines from one Hardware Box to Another Hardware Box. This customer was using vmware ESXi as hyper-visor with his storage directly in his server. Because the customer didn’t want to buy VMware Vsphere Enterprise just for the Storage V-Motion function. I thought Veeam Quick Migration would help and also a great option to test Veeam Backup and Recovery tool.

Before you start the migration download the Veeam Backup Free Edition for Vmware and Hyper-V from here. I did the installation of the software on my laptop and it’s a straight forward installation

I used the following steps to migrate the Virtual Machines:

  1. I shut-down the virtual Machines that needed to be migrated
  2. Start the Veeam backup free edition.

    StartScreenVeeam

  3. Click "Add Server" and select "Vmware VSphere"

    AddServerWizzard

  4. On the "Name" page, enter the host name or IP-address of the Server and click "Next"

    SpecifyDNSnameOrIPAdressofVMWareServer

  5. On the "Credentials" page, enter the "User name" and "Password" and click "Next"

    Credenitals

  6. On the "Summary" page, click "Finish"

    SummaryAddServer

  7. Repeat Step 3 to 6 for the other Server
  8. On the Server that you want to migrate "Right Click" and click "Quick Migration"

    RightclickQuickMigration

  9. On the "Virtual Machines" page, click "Next"

    VirtualMachinesSelection 

  10. On the "Destination" page, Select the "Host or Cluster" and the "Datastore and click "Next"

    DestinationVMwareServer.

  11. On the "Transfer" page, click "Next"

    Transfer

  12. The Job Will start

    MigrationWorking

  13. When the Job is completed you will need to start the Virtuals Machines. When you start the Virtual Machine, Vsphere will give the mention "msg.uuid.alterd: This virtual machine may have been moved OU copied". Choose "I Moved It".

I Think this tool is extremely useful and the best part the tool is completely free. More information on Veeam Backup and Recovery can be found here