How can I determine the cause of NTFS file system issues on a VHDX virtual disk?
I have a Windows Server 2016 with the Hyper-V role. Two Windows Server 2016 virtual machines have started reporting NTFS file system errors. I’ve checked the RAID array for errors and the host machine, but no errors were found.
In what direction should I look for a solution to the problem?
How to Determine the Cause of NTFS File System Problems on a VHDX Virtual Disk
The main causes of NTFS errors on VHDX disks are damage to the virtual disk itself, problems with the host storage system, conflicts in the Volume Shadow Copy Service (VSS) operation, or incorrect hypervisor operation. For diagnosis, it is necessary to check the integrity of VHDX files, event logs in guest systems, and the operation of Hyper-V components, especially the virtual disk management service and restore points.
Contents
- Main Causes of NTFS Errors on VHDX
- Diagnostics of VHDX Disk Problems
- Tools for Checking and Repair
- Checking Host System and Hyper-V
- Preventive Measures
- Step-by-Step Problem Resolution Plan
Main Causes of NTFS Errors on VHDX
Problems with the NTFS file system on VHDX virtual disks can occur for several main reasons:
VHDX file damage itself
A VHDX virtual disk can be damaged due to power failures, RAID controller errors, or storage problems. Even if the host system doesn’t show errors, the VHDX file itself may have structural corruption.
Compression issues
As noted in one source, the VHDX file must be uncompressed. Attempting to compress files inside VHDX doesn’t solve the problem, but the VHDX container itself should remain uncompressed.
VSS service conflicts
Volume Shadow Copy Service (VSS) can cause problems, especially when creating Hyper-V checkpoints. Incorrect VSS operation leads to NTFS Event ID 55 errors.
VHDX chain issues
When using differential disks or multiple checkpoints, a situation can occur where parent nodes of the current disk image are deleted, causing the disk chain to fail to load.
Diagnostics of VHDX Disk Problems
To determine the exact cause of the problems, it is necessary to conduct systematic diagnostics:
Checking VHDX file integrity
Use PowerShell to check the status of virtual disks:
Test-VHD -Path "C:\VMs\VM1\Virtual Hard Disks\VM1.vhdx"
Test-VHD -Path "C:\VMs\VM2\Virtual Hard Disks\VM2.vhdx"
If the command returns False, this indicates VHDX file damage.
Event log analysis
Pay special attention to events with Event ID 55 in guest systems. The message “The file system structure on the disk is corrupt and unusable” requires immediate attention.
Checking the file system inside VHDX
To check NTFS inside a virtual disk, you need to:
- Mount the VHDX file on the host system
- Run
CHKDSKin read-only mode - If necessary, execute
CHKDSK /F /R
Important: As noted in sources, the only tool capable of resolving file system damage is CHKDSK.
Tools for Checking and Repair
Standard Windows Tools
CHKDSK
The main tool for NTFS recovery:
# Read-only mode
chkdsk C: /r
# With error correction (requires reboot)
chkdsk C: /f /r
PowerShell for VHDX management
# Getting disk information
Get-VMHardDiskDrive -VMName "VM1"
# Checking disk integrity
Get-VMHardDiskDrive -VMName "VM1" | Test-VHD
Specialized Tools
DiskInternals VHDX Repair
A specialized tool for recovering damaged VHDX files with support for NTFS, FAT, exFAT, and other file systems.
Windows Server Recovery
For critically damaged cases, you can use:
# Recovery from checkpoints
Get-VMSnapshot -VMName "VM1" | Restore-VMSnapshot
Checking Host System and Hyper-V
Hyper-V Storage Configuration
-
Check VHDX file locations
Ensure that VHDX files are placed on optimized storage, not on network drives with high latency. -
Check virtual disk management service
Errors with code Error Code: 2424869 indicate problems with this service. -
Check Hyper-V Storage component operation
powershell# Check service status Get-Service -Name "vmms" Get-Service -Name "msiserver"
Checking iSCSI Integration
If iSCSI storage is used, connection problems can cause damage. Temporarily disable iSCSI connections and check disk status.
Preventive Measures
Hyper-V Configuration Optimization
-
Use dynamically expanding VHDX
Instead of fixed sizes to save space. -
Regular checkpoint creation
Before performing important operations in guest systems. -
Storage health monitoring
Use Windows Server Monitoring to track disk status.
Backup Configuration
-
Use specialized tools
Hyper-V-aware backup solutions for proper backup creation. -
Regular integrity checks
Weekly execution ofTest-VHDfor all virtual disks.
Step-by-Step Problem Resolution Plan
Step 1: Problem Identification
- Collect all information about Event ID 55 errors from guest systems
- Execute
Test-VHDfor all VHDX files - Check Hyper-V event logs on the host system
Step 2: Diagnosis
- Mount damaged VHDX files on the host system
- Run
CHKDSK /Rin read-only mode - Check RAID array and host file system integrity
Step 3: Recovery
- If VHDX is damaged - use DiskInternals VHDX Repair
- If the problem is with NTFS - execute
CHKDSK /F /Rwith reboot - If the problem is with the VHDX chain - restore from the last checkpoint
Step 4: Prevention
- Set up regular VHDX file monitoring
- Optimize Hyper-V and storage configuration
- Update Hyper-V components to the latest version
Sources
- ServerFault - Hyper-V how to connect compressed NTFS storage or convert it
- DiskInternals - VHDX Repair: Comprehensive Guide to Fix Corrupt or Unreadable VHDX Files
- Spiceworks - Hyper-V Guest Reporting NTFS Errors
- Microsoft Learn - Troubleshoot Hyper-V Virtual Machine Backup, Checkpoint, and Storage Failures
- Reddit - VM fails to start - Virtual Hard Disk Errors
- Experts Exchange - NTFS Event ID: 55 - File Corruption on Hyper-V
- Partition Wizard - Event ID 55, 50, 98, 140 Disk Errors in Event Viewer
- The Windows Club - Fix Event ID 55, 50, 98, 140 Disk Errors in Event Viewer
- AskWoody - Error ID 55
- Microsoft Learn - Error when you manage a VHD file
Conclusion
To solve NTFS problems on VHDX disks in a Hyper-V environment, it is necessary to sequentially go through the stages of diagnosis and recovery. The main directions for finding a solution are checking VHDX file integrity, analyzing Event ID 55 event logs, using CHKDSK to recover the file system, and specialized tools to recover damaged virtual disks. Preventive measures, including regular monitoring and Hyper-V configuration optimization, will help avoid similar problems in the future.