SRM Health Check

The health check for SRM involves the following. 

 

  • Check protection groups for errors.
  • Check recovery plans:
  • Validate the resource mappings.  Ensure they include ESXi resource mappings.
  • Validate the SRA replications
  • Validate the NTP settings
  • Validate port settings
  • Run a test plan

Figure 1 )

 

Invalid VMs, check SRM settings. 

f1

f2

Figure 2 )

f3

f4

f5

Figure 3 )

 

Validate the resource mappings.  Ensure they include ESXi resource mappings. 

f7

f8

 

SRM 8.X test recovery. Planned migration and recovery, cleanup and reprotect steps.

recoverysteps

 

 

Figure 4 )

 

Validate the SRA replications

Figure 5 )

 

Validate the NTP settings

 

Ref: https://paulsbestscriptlets.wordpress.com/2018/07/05/ntp-check-with-powercli/

 

 

One-liners to speed up troubleshooting common NTP related issues. 

Connect-ViServer <vCenter address> -user administrator@vsphere.local -password VMware123!

Check NTP Server is configured.

Get-VMHost |Sort Name|Select Name, @{N=“NTPServer“;E={$_ |Get-VMHostNtpServer}}, @{N=“ServiceRunning“;E={(Get-VmHostService -VMHost $_ |Where-Object {$_.key-eq “ntpd“}).Running}}

Check timestamp for ESXi host.

foreach($esxcli in get-vmhost|get-esxcli){“”|select @{n=’Time’;e={$esxcli.system.time.get()}},@{n=’hostname’;e={$esxcli.system.hostname.get().hostname}} }

Set time manually on esxi host. 

Directly on host: esxcli system time set -H 03 -m 29 -s 40

For all hosts.

$esxlist = get-vmhost

foreach ($_ in $esxlist) {$esxcli = Get-EsxCli -VMHost $_; $esxcli.system.time.get();}

foreach($_ in $esxlist){$esxcli = Get-EsxCli -VMHost $_; $esxcli.system.time.set(10,09,53,01,20,2019); }

/// Parameters are ///

(day,hour,minute,month,second,year)

 

Figure 6 )

 

Validate port settings

 

http://vmwaresrmguru.blogspot.com/

 

 

https://kb.vmware.com/s/article/1009562

 

 

 

Figure 7 )

 

Run a test plan

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s