Applicable Products
- QTS
- QuTS hero
- QES
- QNAP Snapshot Agent
- Windows Server
Scenario
When a QNAP NAS takes an application-consistent snapshot using QNAP Snapshot Agent, it triggers Windows Server Volume Shadow Copy Service (VSS) on the application server. VSS may create shadow copies on Windows Server that are not required after the backup is complete. You can periodically remove these shadow copies to free up space on the Windows server.
Solution
On the Windows Server where QNAP Snapshot Agent is installed, you can remove VSS shadow copies and free up disk space using the following methods.
Important
- Deleting shadow copies is permanent and cannot be undone. Make sure the shadow copies are no longer required for backups, restores, or previous versions of files before deleting them.
- If these shadow copies are part of your backup strategy, review your backup plan and retention policy before deleting them.
Method 1: Manual deletion
- Open File Explorer on Windows Server.
- Locate the volume containing the shadow copies you want to delete.
- Right-click the volume and select Configure Shadow Copies....
The Shadow Copies window appears. - Select one or more shadow copies and click Delete Now.
A warning message appears. - Click Yes.
Method 2: Using the command-line tool vssadmin
- Open Command Prompt as an administrator on Windows Server.
- Search "cmd" in the Start menu.
- Right-click Command Prompt and select Run as administrator.
- List existing shadow copies by entering the following command:
vssadmin list shadows
Note
This command displays all existing shadow copies, including information such as the shadow copy ID, creation time, and associated volume. The shadow copy ID allows you to specify individual shadow copies to delete.
- Perform one of the following actions by entering the corresponding command:
- Delete a specific shadow copy:
vssadmin delete shadows /Shadow={SHADOW_COPY_ID}
Note
Replace "{SHADOW_COPY_ID}" with the actual ID of the shadow copy you want to delete.
- Delete all shadow copies for a specific volume:
vssadmin delete shadows /for=C:
Note
Replace "C:" with your target volume.
- Delete all shadow copies globally:
vssadmin delete shadows /all
Important
This command deletes all shadow copies on the server, including those used for backups and Previous Versions. Use this option only if you are sure that no shadow copies are needed.
Further Reading
适用产品
- QTS
- QuTS hero
- QES
- QNAP Snapshot Agent
- Windows Server
场景
当 QNAP NAS 使用 QNAP 快照 Agent 进行应用程序一致性快照时,它会在应用程序服务器上触发 Windows Server 卷影复制服务 (VSS)。在备份完成后,VSS 可能会在 Windows Server 上创建不需要的卷影副本。您可以定期删除这些卷影副本以释放 Windows 服务器上的空间。
解决方案
在安装了 QNAP 快照 Agent 的 Windows Server 上,您可以使用以下方法删除 VSS 卷影副本并释放磁盘空间。
重要提示
- 删除卷影副本是长期性的,无法撤销。在删除之前,请确保这些卷影副本不再需要用于备份、还原或文件的以前版本。
- 如果这些卷影副本是您备份策略的一部分,请在删除之前审查您的备份计划和保留策略。
方法 1:手动删除
- 在 Windows Server 上打开文件资源管理器。
- 找到包含您要删除的卷影副本的卷。
- 右键单击该卷并选择配置卷影副本...。
出现卷影副本窗口。 - 选择一个或多个卷影副本并单击立即删除。
出现警告信息。 - 点击是。
方法二:使用命令行工具 vssadmin
- 在 Windows Server 上以管理员身份打开命令提示符。
- 在开始菜单中搜索“cmd”。
- 右键单击命令提示符并选择以管理员身份运行。
- 通过输入以下命令列出现有的影子副本:
vssadmin list shadows
注意
此命令显示所有现有的影子副本,包括影子副本 ID、创建时间和关联卷等信息。影子副本 ID 允许您指定要删除的单个影子副本。
- 通过输入相应的命令执行以下操作之一:
- 删除特定的影子副本:
vssadmin delete shadows /Shadow={SHADOW_COPY_ID}
注意
将“{SHADOW_COPY_ID}”替换为您要删除的影子副本的实际 ID。
- 删除特定卷的所有影子副本:
vssadmin delete shadows /for=C:
- 全局删除所有影子副本:
vssadmin delete shadows /all
重要
此命令会删除服务器上的所有影子副本,包括用于备份和以前版本的影子副本。仅在确定不需要任何影子副本时使用此选项。
进一步阅读