大网数据广告活动
Hyper-V与虚拟化

Can't take a disk offline in a standalone Windows Server 2022 VM

· 52CE 我爱测

Discusses an issue in which a disk remains online in a standalone Windows Server 2022 virtual machine (VM) despite repeated attempts to take it offline manually.

Summary

This article helps you troubleshoot an issue in which a disk remains online on a standalone Windows Server 2022 virtual machine (VM) despite repeated attempts to take it offline manually. The VM might become unresponsive (hang) when you use Disk Management or DiskPart to perform this action. Use this information to understand the possible causes of this issue, and follow the recommended steps to resolve the issue.

Symptoms

You're running a standalone (not clustered) Windows Server 2022 VM. You didn't make any recent changes to the VM or its hypervisor platform. In this VM, you repeatedly try to manually take a disk offline. However, the disk remains online. Additionally, you experience the following symptoms:

  • If you try to use the Disk Management or DiskPart tools to take the disk offline, the VM becomes unresponsive (hangs).
  • The issue persists over multiple days.

Possible causes

The underlying cause of this issue is likely to be one or more of the following factors:

  • Disk configuration issues that cause the system to become unresponsive when it processes the offline request
  • An issue in the virtual machine's storage subsystem or virtual disk controller
  • Corruption or errors on the disk

Resolution

Important:
Before you troubleshoot this issue, back up the affected disk. For information about backup options, see the documentation for your VM platform. For example, if you're using Azure VMs, see About Azure Virtual Machine restore.

To fix this issue, follow these steps:

  1. Check for Windows Server 2022 updates, and install any pending updates. Check whether any of the updates address disk management or storage subsystem issues.

  2. To assess the disk health and fix underlying issues, see the "Troubleshooting checklist" section of "Data corruption and disk errors troubleshooting guidance." In particular, follow the steps in the following checklist sections:

    1. Scan the health of the storage system. Scan for issues without making any changes.
    2. Review the event log for relevant events. Review event log entries that cover the period when the issue occurred. This section provides a list of events that correspond to specific issues that the troubleshooting guide addresses.
    3. Scan and repair NTFS volumes. Perform a more intensive investigation of the disk, and run repair tools.
  3. If you still can't isolate the issue, create an identical VM and disk configuration in a test environment, and then try to reproduce the symptoms.

  4. If the disk isn't the system disk, and it can be safely detached, remove it from the VM and attach it to a different VM. Check the health of the disk again in the new configuration.

  5. After you make changes, continue to monitor the disk. If the issue persists or reoccurs, collect data for further troubleshooting and then contact Microsoft Support.

Data collection

If you need assistance from {Microsoft Support](https://support.microsoft.com/contactus), prepare the following information to speed up the investigation:

  • Windows Server 2022 version and build details

    [!NOTE]
    To see the exact version and build number, run winver to open the Windows version dialog box, or run the following PowerShell cmdlet:

    (Get-ComputerInfo).OsVersion
    
  • Detailed description of the VM environment, including hypervisor platform and version.

  • List of storage devices and their configurations (physical and virtual).

  • Event data that covers the period when the issue occurred. You can export this information from Event Viewer. Include data from the following logs:

    • System log
    • Application log
    • Microsoft-Windows-Storage-Diagnostics/Operational log (if available)
  • Output from the following Windows PowerShell cmdlet:

    Get-Disk | Format-List
    

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 03/13/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。