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.
Figure 2 )
Figure 3 )
Validate the resource mappings. Ensure they include ESXi resource mappings.
SRM 8.X test recovery. Planned migration and recovery, cleanup and reprotect steps.
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