VMware Cloud Community
MRoushdy
Hot Shot
Hot Shot

Get gatestores experienced APD, or any connectivity issues

Hi,

we had an outage, and we need to know which datastores were affected by APD, access lost to volume, is there a script to get this intel please?

Thanks,

vEXPERT - VCAP-DCV - Blog: arabitnetwork.com | YouTube: youtube.com/c/MohamedRoushdy
Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership

Try something like this.

Adapt the Start value to cover the time the incident happened.

Get-VIEvent -MaxSamples ([int]::MaxValue) -Start (Get-Date).AddDays(-1) |

where {$_.EventTypeId -eq 'esx.problem.storage.apd.start' -or

       $_.EventTypeId -eq 'esx.problem.storage.apd.timeout' -or

       $_.EventTypeId -eq 'esx.clear.storage.apd.exit'}

Select CreatedTime,

  @{N='Datastore';E={($_.Arguments | where {$_.key -eq "2"}).value}},

  @{N='VMHost';E={$_.Host.Name}},

  FullFormattedMessage


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
MRoushdy
Hot Shot
Hot Shot

Hello again/,

Thanks but, it didn't return anything, I've changed the value to 6 days, but I got nothing, does this mean anything? Bye the way, host logs indicated that thousands of APD errors were detected last Saturday, and Sunday.

vEXPERT - VCAP-DCV - Blog: arabitnetwork.com | YouTube: youtube.com/c/MohamedRoushdy
Reply
0 Kudos
LucD
Leadership
Leadership

Can you run the following, it should show what kind of events are present over the last 6 days.

Get-VIEvent -Start (Get-Date).AddDays(-6) -MaxSamples ([int]::MaxValue) |

where {$_ -is [VMware.Vim.EventEx]} |

Group-Object -Property EventTypeId

Which vSphere version are you running?

There have been some issues with APD handling.

See for example ESXi 6.7 U1 fixes: APD and VMCP is not triggered even when no paths can service I/Os


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
MRoushdy
Hot Shot
Hot Shot

vSphere 6.0, but we are upgrading it in the following couple of weeks to 6.7 U1.

vEXPERT - VCAP-DCV - Blog: arabitnetwork.com | YouTube: youtube.com/c/MohamedRoushdy
Reply
0 Kudos
MRoushdy
Hot Shot
Hot Shot

Good Morning,

Here's the result I've got, but it didn't mention the names of affected datastores, is it possible to get affected datastores?

pastedImage_0.png

vEXPERT - VCAP-DCV - Blog: arabitnetwork.com | YouTube: youtube.com/c/MohamedRoushdy
Reply
0 Kudos
LucD
Leadership
Leadership

Looks like there are no esx.problem.storage events recorded.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos