Fix Storage Spaces Direct Virtual Disk Detached Full DRT Log

Published 2026-12-02 | JiWang Data Recovery Technical Team

Fix Storage Spaces Direct Virtual Disk Detached Full DRT Log

When a Storage Spaces Direct (S2D) virtual disk enters a Detached state despite all physical disks reporting a Healthy status, the root cause is almost always a full Dirty Region Tracking (DRT) log. Storage Spaces uses DRT for mirrored spaces to log in-flight metadata updates, ensuring the system can redo or undo operations after an unplanned power failure or crash. If the DRT log fills up completely, the virtual disk cannot be brought online because the metadata is not yet synchronized or flushed to the persistent storage. This state indicates that the system is waiting for a consistency check to resolve the dirty regions, effectively locking the volume until the underlying metadata is validated. You cannot simply force the disk online; you must allow the system to perform the necessary background synchronization to clear the dirty state.

Executing the Data Integrity Scan for Crash Recovery

To resolve this issue, you must initiate the Data Integrity Scan for Crash Recovery task. This specific task is designed to synchronize and clear the full DRT log by scanning the affected virtual disk. In a Windows Server environment, this is typically triggered automatically when the system detects the detached state, or it can be manually invoked via PowerShell cmdlets depending on your cluster configuration. The scan ensures that all pending metadata updates are written to the storage pool, allowing the virtual disk to transition from Detached to Online. This process is critical for restoring data integrity and ensuring that the storage space returns to a flexible and consistent state. Once the scan completes successfully, the virtual disk should automatically come online and resume normal I/O operations.

Managing Expectations: Silent Execution and Duration

Engineers must understand that this repair process operates entirely in the background with no visible progress indicator in the Storage Spaces Direct management UI. The task does not appear as a standard storage job, meaning you cannot monitor a progress bar or estimated time of completion. The scan can take several hours to finish, depending on the size of the virtual disk and the speed of the underlying NVMe or SSD cache. During this time, the virtual disk remains inaccessible, which may impact applications relying on that storage. You must trust that the task is running; if the cluster health shows the task as 'running' or 'completed,' it is actively processing. Do not attempt to bypass this by restarting services or forcing the disk online, as the DRT metadata must be fully flushed before the volume can be mounted.

Critical Warnings: Avoiding Interruption and Restarts

The most critical constraint in this recovery process is that you must never cancel the task or restart a cluster node while the Data Integrity Scan for Crash Recovery is in progress. If you interrupt the scan by canceling it or rebooting a node, the process does not resume from where it left off; instead, it restarts from the beginning. This means you could lose hours of progress and leave the virtual disk in a detached state for an extended period. To mitigate this risk, ensure you have allocated sufficient maintenance window time for the scan to complete. If you must perform maintenance, schedule it after the scan has finished. Additionally, verify that your cluster nodes have the latest cumulative updates, as older versions of Windows Server 2016 may experience extended IO pauses during network reconnections, further delaying the scan completion.

Operational Comparison: Scan Phases and Risks

The following table summarizes the operational phases of the DRT log recovery process to help you plan maintenance windows and assess risk:

Visualizing the data integrity scan synchronizing uncommitted metadata into the storage pool
Visualizing the data integrity scan synchronizing uncommitted metadata into the storage pool

Related Reading

Frequently Asked Questions

How long does the Data Integrity Scan for Crash Recovery typically take to complete?

The duration varies significantly based on the size of the virtual disk and the performance of the underlying storage hardware, but it can take several hours to complete. There is no progress indicator, so you must allocate a large maintenance window to ensure the scan finishes without interruption. Smaller disks with fast NVMe cache may complete faster, but large mirrored volumes on slower SSDs can take much longer.

Can I restart a cluster node while the DRT log synchronization is in progress?

No, you must never restart a cluster node while the Data Integrity Scan for Crash Recovery is running. Doing so will cause the task to restart from the beginning, forcing you to wait several more hours for the scan to complete again. The system does not support checkpointing for this specific metadata synchronization, so any interruption results in a total loss of progress.

Why does the virtual disk remain detached even after all physical disks show a Healthy status?

The virtual disk remains detached because the Dirty Region Tracking (DRT) log is full, preventing the metadata from being synchronized. Even if physical disks are healthy, the virtual disk cannot mount until the DRT metadata is flushed and the dirty regions are cleared. This is a software-level consistency check required by Storage Spaces to ensure data integrity after a potential crash, and it must complete before the volume can be brought online.

Search
WhatsApp