question

ITResearcher-2061 avatar image
0 Votes"
ITResearcher-2061 asked ITResearcher-2061 commented

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

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\DR*x* 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://docs.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-generalwindows-server-hyper-vwindows-server-2012
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ejsiron avatar image
0 Votes"
ejsiron answered ITResearcher-2061 commented

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

"The host handles I/O, but the guest cannot guarantee that it will handle writes correctly so it displays this warning."

As mentioned in my question, the warning is displayed in event logs of the host (server) operating system, not in the guest OS.
Please inform why the warning is showing.


0 Votes 0 ·