Disk Event-ID 32 in server with Hyper-V virtual machine

IT Researcher 26 Reputation points
2021-10-13T06:30:07.107+00:00

We have a server running on Windows Server 2012 R2 and it hosts a Hyper-v virtual machine (configuration: Windows 10, version 20H2, min 16GB & max 32GB RAM with 4 processor cores) . We notice in the event logs of the server: Event-id 32
"The driver detected that the device \Device\Harddiskx\DRx has its write cache enabled. Data corruption may occur."

We would like to know why is this warning coming in Event logs?
We have tried to disable the write cache, but it is not letting us disable and giving the error
"Windows could not change the write-caching setting for the device. Your device might not support this feature or changing the setting"
As per the document from Microsoft the setting cannot be disabled: https://learn.microsoft.com/en-US/troubleshoot/windows-server/virtualization/hyper-v-storage-caching-layers-data-consistency-requirements

We found no issues with the hard disk, and latest firmware updates are installed. Please suggest a solution to prevent the disk warnings.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,608 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,528 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,536 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Eric Siron 1,251 Reputation points MVP
    2021-10-13T18:20:46.347+00:00

    The guest operating system doesn't see a battery for its drive controller so it tries to disable write caching but can't because that's not an option on its controller. The host handles I/O, but the guest cannot guarantee that it will handle writes correctly so it displays this warning. It is the responsibility of the host administrator to configure caching properly on the hardware. The warning is valid and will always appear at boot because the guest has no way to verify that everything is set up correctly. It shows as a warning and not an error because the guest has no way to verify that anything is set up incorrectly.