MSMQ errors in ClusterLog

What is MSMQ:

You can use MSMQ for Application communication across heterogeneous networks and systems that may be temporarily offline. Applications send messages to queues and read messages from queues. A queue is a temporary storage location from which messages can be sent and received reliably, as and when conditions permit. This enables communication across networks and between computers, running Windows, which may not always be connected.

When MSMQ is not enabled or not configured you get a lots of errors in your Windows Cluster log.
In our Hyper-v cluster we don’t need MSMQ.

Errors we faced:

ERR   [RHS] s_RhsRpcCreateResType: (21)’ because of ‘Startup routine for ResType MSMQTriggers returned 21.’
INFO  [RCM] result of first load attempt for type MSMQTriggers: 21
WARN  [RCM] Failed to load restype ‘MSMQTriggers’: error 21.

If you don’t use MSMQ you can disable it with the following PowerShell commands:

 

Start VEEAM Job Task Scheduler

The VEEAM job scheduler is really basic. It’s not possible to schedule a job on different times in a week for example.
You can create a task schedule job to start the back-up on every possible time.

Start -> Task scheduler -> Create Task

– Name (Job name and Time)
– Check Run whether user is logged on or not
– Check Run with highest privileges
– Configure for: Windows server 2012 R2 (or other late OS)
– Triggers (choose a time)
– Action -> New -> Start a program
– Program script: powershell
– Arguments:

Start job normally:

Start full backup you give the value -fullbackup after start-vbrjob:

 

Get folder size on Cluster Shared Volume (CSV) Hyper-v

In VMM or Failover cluster manager there is no way to view the total size of the directory’s on the ClusterSharedVolumes (CSV).
Ive made a simple script to determine the size of a folder.

Run this script against a Hyper-v node in a cluster.

 

Hyper-v VM migration with VMM Powershell

Somethimes you need to bulk migrate some Hyper-v virtual machines.
This is not possible with the VMM gui.

In this situation PowerShell can help:
Filter on VMname

Replace the $VM line when you need to migrate all the machines placed on a specified host:

 

 

 

 

List all Hyper-v snapshots with the VMM PowerShell Module

There is no place where you can find an overview from all Hyper-v snapshots in the VMM Gui.
In this situation PowerShell is your friend. With a few lines of PowerShell code is this overview simple to make.

Run this commands in an elevated PowerShell  prompt where you installed the VMM Console:

 

 

Get Hyper-v snapshot with Powershell

List Hyper-v VM Snapshots.
With this PowerShell command you can search for snapshots on a Hyper-v node.

List all snapshots within a Hyper-v cluster.
With this script you can search for all checkpoints on a Hyper-v cluster.

Extend Cluster shared volume (CSV) Hyper-v

The first step is to extend the lun on your storage device.
Then, look into your failover cluster manager to find the owner of the CSV.
This can be found in the Storage -> Disks section under Current Owner.

Log into the CSV owner node and type in a elevated command prompt:
1. Type Diskpart
2. Type Rescan
3. Type List volume
4. Type Select Volume (wich you have extended on the storagebox)
5. Type Extend

Voila

Enable disk performance counters Windows server 2012 / R2 taskmgr

In Windows server 2012 / R2 you doesn’t see the disk performance counters in Task Manager as you see in Windows 8.1.

Disk performance counters Windows 8

The simple solution for this is:

Open Powershell:
diskperf -y

Close the current taskmgr, and open a new one.
Voila. Really simple isn’t it?

IBM Storage management pack SCOM

With the SCOM management pack for IBM you can monitor the following systems:

  • DS8000
  • Flex Systems
  • SAN Volume Controller (SVC)
  • Storwize V3500
  • Storwize V3700
  • Storwize V5000
  • Storwize V7000 & Unified
  • XIV Systems

Logon to your storage system. Add a user for monitoring purpose in the monitoring user group.
Be sure that port 22 is open from the SCOM landscape to the IBM Management Addresses.

Download the newest IBM_Storage_MP_for_SCOM_#.#_Windows setup from the IBM site.
Install the IBM Storage SCOM-control utility.

Import the SCOM management packs, the setup placed them on:
C:\Program Files\IBM\Storage\Host\IBMStorageSCOM\mps

Open the configuration utility command line.

Link IBM Storage SCOM-Control utility with SCOM:
scomu.cmd --sc-set --servername scomsrv01 --domain domain01 --username usr --password pass

Choose:

  • Password authentication mode:
    scomu.cmd --add -t storwize --ip #### --authmode password --username ### --password ###
  • Public key authentication mode:
    scomu.cmd --add -t storwize --ip #### --authmode publickey --username ### --certpath c:\storwize.cert --passphrase xxxxx

List the added storage systems:
scomu.cmd --list

Delete a connection:
scomu.cmd --del -t storwize.v7000 --ip 172.24.101.175