Debugging VMM Event ID 20404

Tony Gedge 241 Reputation points
2020-12-15T05:14:01.77+00:00

I'm getting an Event ID 20404 in VMM when trying to live migrate or run the dynamic optimizer:
48234-image.png

How would I debug this issue? Specifically, where can I look for more detailed information as to what object it's looking for that it can't find?

System Center Virtual Machine Manager
{count} votes

Accepted answer
  1. Tony Gedge 241 Reputation points
    2021-01-15T04:35:32.173+00:00

    We eventually had Microsoft Support involved in the issue. After much investigation, it was determined that several SMB file shares on our NetApp NAS were registered in the VMM database with an AssociatedVolumeID that was not known to the host. Further testing showed that when a new file share was added via the SMI using VMM, the registration of all file shares got updated by the SMI incorrectly.

    To test if it had happened, we run the query:

    Select * from tbl_ST_StorageFileShare where AssociatedVolumeID not in (Select volumeid from tbl_ADHC_HostVolume )
    

    To resolve the issue when it occurred, we had to remove the SMI provider for the NetApp and then add it back. This resulted in the file shares being registered with NULL for the AssociatedVolumeID.

    Hope this might help someone in the future.


1 additional answer

Sort by: Most helpful
  1. Crystal-MSFT 43,381 Reputation points Microsoft Vendor
    2020-12-16T02:29:45.123+00:00

    @Tony Gedge , To troubleshoot our issue, we can see more information as below:

    1. Check the Job details by clicking on the Details tab.
    2. Check event log on VMM server, Hyper-V server or VM machine.
      http://techgenix.com/troubleshooting-virtual-machine-manager-2016/
      Note: Non-Microsoft link, just for the reference.
    3. Enable debug logging in VMM to check.
      https://support.microsoft.com/en-us/help/2913445/how-to-enable-debug-logging-in-virtual-machine-manager
      Note:This can also be used with VMM 2016.

    Hope it can help.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.