Microsoft has posted a new article that discusses a problem on Windows Server that can lead to data loss when an administrator resets a virtual disk from the “Server Manager” console. Explanations.
You will tell me : “If I reset a virtual disk, it is normal that I lose data“. Yes, I agree. Except that there, according to details provided by Microsoftit appears that when a virtual disk is reset, the system may mistakenly reset another disk! It is for this reason that there can be a real loss of data.
This problem occurs when using the console “server manager” to manage one or more servers under Windows Server. On its site, Microsoft specifies: “If you attempt to reset (erase) a virtual disk using the Community Virtual Driver, you risk resetting the wrong disk.“. This error occurs because there can be several disks with the same ID, the latter not being unique, the system deletes the first disk it finds: and it can be the bad one.
The Redmond firm also specifies that the following error is displayed: “I found multiple disks with the same ID. Please update your storage driver and try again.“Obviously, that does not prevent the operation.
If you need to do this, and pending a fix from Microsoft, there is a workaround which is to use PowerShell.
First of all, you have to start by listing the disks to locate the one you want to delete:
Get-PhysicalDisk | Select-Object -Property FriendlyName, DeviceID, UniqueId
Then, after having noted the DeviceID corresponding to your disk, you must reset it with this command:
Clear-Disk -Number <DeviceID>
In this way, you are sure not to have any bad surprises…
This bug affects the following versions: Windows Server 2019, Windows Server 2022but also Windows 11 22H2.
Logiciel – OS,Microsoft,Windows Server,
#bug #lose #data