大网数据广告活动
备份与恢复

Files are corrupted on deduplicated volume that were created as NTFS-compressed

· 52CE 我爱测

Discusses that files cannot be opened and are logged as corrupted on deduplicated volumes that were created by having NTFS compression enabled. Provides a resolution.

This article provides a solution to an issue where files can't be opened and are logged as corrupted on deduplicated volumes.

Original KB number:   3066174

Symptoms

Users can no longer open files on a deduplication-enabled volume that was created by having NTFS compression enabled at the root of the volume. Additionally, the Data Deduplication scrubbing job may log an event in the event log to report corruption on the volume of files that it cannot repair.

Cause

This problem occurs because deduplication metadata that is stored on the compressed volume root becomes corrupted when a process writes in-place to a file on the deduplicated volume. The deduplication metadata that is stored on the compressed volume root is located under the System Volume Information (SVI) folder.

Duplication is not supported on volumes that have compression enabled on the root when the volume is created. However, deduplication on compressed folders is supported and functions as expected.

Resolution

To resolve this problem, do not enable data deduplication on an NTFS volume that has volume-level compression enabled.

Unfortunately, we cannot restore data that is already corrupted on existing compressed volumes that have deduplication enabled. Files that have already been corrupted must be restored from backups, if they are available.

To decompress the deduplication metadata folder so that write actions to deduplicated files on this volume are no longer corrupted, follow these steps.

Note: In the example commands, <X> is a volume that has been created as compressed and that has Data Deduplication enabled.

  1. Download the PsExec tool from the following Windows Sysinternals website: PsExec v2.2

    [!NOTE] The PsExec tool lets users run processes by having "SYSTEM" user rights. This is necessary to access the protected Data Deduplication metadata folder that is located in the System Volume Information folder.

  2. Block data access for your users on the affected volume. To do this, run the following Windows PowerShell disable-dedupvolume command:

    disable-dedupvolume X: -dataaccess
    

    [!NOTE]

    • This command dismounts and then remounts the volume without the data deduplication filter attached. This blocks users from accessing any deduplicated files.
    • The dismount action invalidates any open file handles on this volume.
  3. Use PsExec to run Cmd.exe as a "SYSTEM" user. To do this, run the following command:

    Psexec.exe -i -s cmd
    

    [!NOTE] The Command Prompt window will now open by having "SYSTEM" user rights assigned.

    [!CAUTION] The "SYSTEM" account is a user account that has a much higher level of access than an administrator account. Users should be careful to perform only the steps that are mentioned in the article while they are running the "SYSTEM" account. Users should be especially careful not to change ACLs or take ownership of the System Volume Information folder.

  4. In the PsExec Command Prompt window, locate the System Volume Information folder of your affected volume.

  5. Verify that the volume's deduplication metadata folder is currently compressed.

  6. Decompress the volume's deduplication metadata folder.

  7. In the PsExec Command Prompt window, run the following command:

    X:\System Volume Information>compact /s:Dedup
    

    The output will include the following summary message:

    Of M files within N directories
    <X> are compressed and <Y> are not compressed.

    If <X> is greater than zero (0), go to step 8. Otherwise, go to step 11 because your deduplication metadata folder is not compressed.

  8. In the PsExec Command Prompt window, run the following command:

    X:\System Volume Information>compact /u /s:Dedup
    
  9. Wait for the deduplication metadata folder to be uncompressed. The process works on one file at a time and can be slow.

    [!NOTE] The time that is required by this process is proportional to the amount of data that is on the volume. For volumes that contain terabytes of data, this process can take several hours to finish. After it finishes, the command exits and generates the following status message:
    N files within M directories were uncompressed.

  10. In the PsExec Command Prompt window, run the following "display compression state" command to verify that there are no compressed files in the Data Deduplication metadata folder.

    X:\System Volume Information>compact /s:Dedup
    
  11. Close the PsExec Command Prompt window.

  12. Re-enable data access for your users on the affected volume. To do this, run the following command:

    Enable-DedupVolume X: -DataAccess
    

    [!NOTE]

    • This command dismounts and then remounts the volume with the data deduplication filter attached. Users will now be able to access the deduplicated files.
    • The dismount action invalidates any open file handles on this volume.

Note: To prevent similar corruptions from occurring, perform this procedure on all deduplication-enabled volumes that were created as compressed.

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 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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