Skip to content

Commit 0d70e1f

Browse files
Merge pull request #3428 from Xelu86/VSS
Addressed public GitHub issue #6516
2 parents a69f416 + 66d720e commit 0d70e1f

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

WindowsServerDocs/storage/file-server/volume-shadow-copy-service.md

+2-27
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: Volume Shadow Copy Service"
33
title: Volume Shadow Copy Service
4-
ms.date: 01/30/2019
4+
ms.date: 12/06/2022
55
author: JasonGerend
66
manager: elizapo
77
ms.author: jgerend
@@ -30,7 +30,6 @@ VSS coordinates the actions that are required to create a consistent shadow copy
3030

3131
- You need a fast recovery from data loss by restoring data to the original Logical Unit Number (LUN) or to an entirely new LUN that replaces an original LUN that failed.
3232

33-
3433
Windows features and applications that use VSS include the following:
3534

3635
- [Windows Server Backup](/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc754572(v=ws.10)) (https://go.microsoft.com/fwlink/?LinkId=180891)
@@ -39,8 +38,7 @@ Windows features and applications that use VSS include the following:
3938

4039
- [System Center Data Protection Manager](https://go.microsoft.com/fwlink/?linkid=180892) (https://go.microsoft.com/fwlink/?LinkId=180892)
4140

42-
- [System Restore](https://go.microsoft.com/fwlink/?linkid=180893) (https://go.microsoft.com/fwlink/?LinkId=180893)
43-
41+
- [System Restore](https://support.microsoft.com/windows/use-system-restore-a5ae3ed9-07c4-fd56-45ee-096777ecd14e) (https://support.microsoft.com/windows/use-system-restore-a5ae3ed9-07c4-fd56-45ee-096777ecd14e)
4442

4543
## How Volume Shadow Copy Service Works
4644

@@ -86,7 +84,6 @@ To create a shadow copy, the requester, writer, and provider perform the followi
8684

8785
8. VSS tells the writers to thaw application write I/O requests. At this point applications are free to resume writing data to the disk that is being shadow-copied.
8886

89-
9087
> [!NOTE]
9188
> The shadow copy creation can be aborted if the writers are kept in the freeze state for longer than 60 seconds or if the providers take longer than 10 seconds to commit the shadow copy.
9289
<br>
@@ -95,7 +92,6 @@ To create a shadow copy, the requester, writer, and provider perform the followi
9592

9693
10. If the shadow copy is successfully created, the Volume Shadow Copy Service returns the location information for the shadow copy to the requester. In some cases, the shadow copy can be temporarily made available as a read-write volume so that VSS and one or more applications can alter the contents of the shadow copy before the shadow copy is finished. After VSS and the applications make their alterations, the shadow copy is made read-only. This phase is called Auto-recovery, and it is used to undo any file-system or application transactions on the shadow copy volume that were not completed before the shadow copy was created.
9794

98-
9995
### How the Provider Creates a Shadow Copy
10096

10197
A hardware or software shadow copy provider uses one of the following methods for creating a shadow copy:
@@ -114,7 +110,6 @@ A complete copy is usually created by making a "split mirror" as follows:
114110

115111
2. The shadow copy volume is separated from the original volume. This breaks the mirror connection.
116112

117-
118113
After the mirror connection is broken, the original volume and the shadow copy volume are independent. The original volume continues to accept all changes (write I/O requests), while the shadow copy volume remains an exact read-only copy of the original data at the time of the break.
119114

120115
### Copy-on-write method
@@ -162,7 +157,6 @@ The copy-on-write method is a quick method for creating a shadow copy, because i
162157

163158
In the redirect-on-write method, whenever the original volume receives a change (write I/O request), the change is not applied to the original volume. Instead, the change is written to another volume's shadow copy storage area.
164159

165-
166160
<table>
167161
<colgroup>
168162
<col>
@@ -257,11 +251,8 @@ In Windows Server 2008 R2 and Windows 7, VSS requesters can use a hardware sh
257251

258252
The shadow copy can be a full clone or a differential shadow copy. In either case, at the end of the resync operation, the destination LUN will have the same contents as the shadow copy LUN. During the resync operation, the array performs a block-level copy from the shadow copy to the destination LUN.
259253

260-
261254
> [!NOTE]
262255
> The shadow copy must be a transportable hardware shadow copy.
263-
<br>
264-
265256
266257
Most arrays allow production I/O operations to resume shortly after the resync operation begins. While the resync operation is in progress, read requests are redirected to the shadow copy LUN, and write requests to the destination LUN. This allows arrays to recover very large data sets and resume normal operations in several seconds.
267258

@@ -273,11 +264,8 @@ LUN resynchronization is different from LUN swapping. A LUN swap is a fast recov
273264

274265
- If the destination LUN is unusable and needs to be recreated, LUN swapping may be more economical because it doesn't require a destination LUN.
275266

276-
277267
> [!WARNING]
278268
> All of the operations listed are LUN-level operations. If you attempt to recover a specific volume by using LUN resynchronization, you are unwittingly going to revert all the other volumes that are sharing the LUN.
279-
<br>
280-
281269
282270
### Restoring individual files (Shadow Copies for Shared Folders)
283271

@@ -303,11 +291,8 @@ With the Volume Shadow Copy Service and a storage array with a hardware provider
303291

304292
**Figure 3**   Shadow copy creation and transport between two servers
305293

306-
307294
> [!NOTE]
308295
> A transportable shadow copy that is created on Windows Server 2003 cannot be imported onto a server that is running Windows Server 2008 or Windows Server 2008 R2. A transportable shadow copy that was created on Windows Server 2008 or Windows Server 2008 R2 cannot be imported onto a server that is running Windows Server 2003. However, a shadow copy that is created on Windows Server 2008 can be imported onto a server that is running Windows Server 2008 R2 and vice versa.
309-
<br>
310-
311296
312297
Shadow copies are read-only. If you want to convert a shadow copy to a read/write LUN, you can use a Virtual Disk Service-based storage-management application (including some requesters) in addition to the Volume Shadow Copy Service. By using this application, you can remove the shadow copy from Volume Shadow Copy Service management and convert it to a read/write LUN.
313298

@@ -351,14 +336,12 @@ For more information, see the following Microsoft TechNet Web sites:
351336

352337
- [Windows Server Backup](/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc754572(v=ws.10)) (https://go.microsoft.com/fwlink/?LinkID=180891)
353338

354-
355339
### Can I exclude files from a shadow copy to save space?
356340

357341
VSS is designed to create shadow copies of entire volumes. Temporary files, such as paging files, are automatically omitted from shadow copies to save space.
358342

359343
To exclude specific files from shadow copies, use the following registry key: **FilesNotToSnapshot**.
360344

361-
362345
> [!NOTE]
363346
> The <STRONG>FilesNotToSnapshot</STRONG> registry key is intended to be used only by applications. Users who attempt to use it will encounter limitations such as the following:
364347
> <br>
@@ -368,7 +351,6 @@ To exclude specific files from shadow copies, use the following registry key: **
368351
> <LI>It can delete files from a shadow copy that was created by using the <a href="/windows-server/administration/windows-commands/diskshadow" data-raw-source="[Diskshadow](../../administration/windows-commands/diskshadow.md)">Diskshadow</a> utility, but it cannot delete files from a shadow copy that was created by using the <a href="/windows-server/administration/windows-commands/vssadmin" data-raw-source="[Vssadmin](../../administration/windows-commands/vssadmin.md)">Vssadmin</a> utility.<BR><BR>
369352
> <LI>Files are deleted from a shadow copy on a best-effort basis. This means that they are not guaranteed to be deleted.<BR><BR></LI></UL>
370353
371-
372354
For more information, see [Excluding Files from Shadow Copies](/windows/win32/vss/excluding-files-from-shadow-copies) (https://go.microsoft.com/fwlink/?LinkId=180904) on MSDN.
373355

374356
### My non-Microsoft backup program failed with a VSS error. What can I do?
@@ -399,7 +381,6 @@ The following criteria are evaluated, in this order, to determine the diff area
399381

400382
- If the volume being shadow copied is one of the possible locations, then a local association is created. Otherwise an association with the volume with the most available space is created.
401383

402-
403384
### Can VSS create shadow copies of non-NTFS volumes?
404385

405386
Yes. However, persistent shadow copies can be made only for NTFS volumes. In addition, at least one volume mounted on the system must be an NTFS volume.
@@ -430,7 +411,6 @@ The Windows operating system provides the following tools for working with VSS:
430411

431412
- [VssAdmin](/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc754968(v=ws.11)) (https://go.microsoft.com/fwlink/?LinkId=84008)
432413

433-
434414
### DiskShadow
435415

436416
DiskShadow is a VSS requester that you can use to manage all the hardware and software snapshots that you can have on a system. DiskShadow includes commands such as the following:
@@ -445,7 +425,6 @@ DiskShadow is a VSS requester that you can use to manage all the hardware and so
445425

446426
- **revert**: Reverts a volume back to a specified shadow copy
447427

448-
449428
This tool is intended for use by IT professionals, but developers might also find it useful when testing a VSS writer or VSS provider.
450429

451430
DiskShadow is available only on Windows Server operating systems. It is not available on Windows client operating systems.
@@ -466,7 +445,6 @@ VssAdmin includes commands such as the following:
466445

467446
- **resize shadowstorage**: Changes the maximum size of the shadow copy storage area
468447

469-
470448
VssAdmin can only be used to administer shadow copies that are created by the system software provider.
471449

472450
VssAdmin is available on Windows client and Windows Server operating system versions.
@@ -481,7 +459,6 @@ The following registry keys are available for use with VSS:
481459

482460
- **MinDiffAreaFileSize**
483461

484-
485462
### VssAccessControl
486463

487464
This key is used to specify which users have access to shadow copies.
@@ -492,7 +469,6 @@ For more information, see the following entries on the MSDN Web site:
492469

493470
- [Security Considerations for Requesters](/windows/win32/vss/security-considerations-for-requestors) (https://go.microsoft.com/fwlink/?LinkId=180908)
494471

495-
496472
### MaxShadowCopies
497473

498474
This key specifies the maximum number of client-accessible shadow copies that can be stored on each volume of the computer. Client-accessible shadow copies are used by Shadow Copies for Shared Folders.
@@ -513,7 +489,6 @@ For more information, see the following entry on the MSDN Web site:
513489

514490
The following table lists the minimum supported operating system versions for VSS features.
515491

516-
517492
<table>
518493
<colgroup>
519494
<col>

0 commit comments

Comments
 (0)