iSCSI snapshots are created using Volume Shadow Copy Service and a storage array with a hardware provider designed for use with Volume Shadow Copy Service. Snapshots that are created on the iSCSI target server are crash consistent. This means that if the iSCSI initiator computer crashes, the state of the snapshot will be the same as the state of the virtual disk. Most modern file systems can recover from this state. To enable consistent snapshots in Microsoft iSCSI Software Target requires the Microsoft iSCSI Software Target VSS Hardware Provider, which is available as an option in iSCSI Software Target, to be installed on the iSCSI initiator computer. The hardware provider coordinates with the local Volume Shadow Copy Service to create a consistent image of the volume that can be transported to a central backup server.
You can create a crash consistent snapshot in two ways:
- Manually create a snapshot of a single
virtual disk in the Microsoft iSCSI Software Target console. Manual
creation of a snapshot is useful prior to performing a system
upgrade, installation of new software, or any event that might
corrupt the iSCSI virtual disk. If the upgrade or installation
fails, the iSCSI virtual disk can be rolled back to the
- Use the Schedule Snapshot Wizard to set up a
schedule for creating a single snapshot or recurring snapshots
automatically. Regularly scheduled snapshots are useful for
providing ongoing, interim backups in between backups that are
performed using other backup software.
|Application consistent snapshots are created using the VSS Hardware Provider and third party VSS-aware backup software from the iSCSI initiator computer.|
To schedule crash consistent snapshots, you need to specify the following:
- Schedule Actions
In addition to scheduling when to take a snapshot, you can specify that the snapshot should be mounted locally. For more information about locally mounted snapshots, see Mounting a Read-Only Snapshot Locally.
- Resource Group
In a failover cluster environment, the schedule is managed by the resource group. For more information about resource groups, see Configuring iSCSI Storage for High Availability.
A short name to identify the scope of the schedule. For instance, Weekly All Disks.
- Virtual Disks
The virtual disks for which snapshots are to be taken. You can include all virtual disks or select one or more individual virtual disks.
How often the snapshots should be taken (daily, weekly, monthly, or one time only).
The days and times when the snapshots should be taken (based on the frequency selected). Daily snapshots can be taken every day, weekdays only, or every specified number of days. Weekly snapshots can be taken for one or more weeks on any day of the week. Monthly snapshots can be taken every month or only for selected months, on any day of the month or on a specific milestone (such as the first Monday of the month).
It is recommended that snapshots be taken of all iSCSI virtual disks once every four hours; once before the start of the day, once in the middle of the day, and once at the end of the day.
|The Volume Shadow Copy Service (VSS) will automatically select
a location to store the snapshots in unless you define the location
for each volume. To avoid potential issues, you should manually
select the storage location to ensure there is sufficient free disk
space for the snapshots. In a failover cluster environment,
snapshots should be stored in the same storage group as the virtual
disk.To set the storage location using the Microsoft iSCSI Software
After you create a snapshot schedule, you can modify these and other schedule settings. For more information, see Modifying a Snapshot Schedule.
To create an application-consistent snapshot, which means the data is in a state that an application can use it for recovery, the snapshot must be created from the iSCSI initiator computer using the Microsoft iSCSI Software Target VSS Hardware Provider and backup software that works with Volume Shadow Copy Service.
By default, Volume Shadow Copy Service automatically selects a location for the snapshots. On the NTFS file system volume, this location is the System Volume Information folder. If using snapshots in a cluster, the location must be on the same shared drive as the virtual disk. You can configure the location and size of the storage to be used for snapshots by modifying Settings from the Shadow Copies tab of the Properties for the volume. Volume Shadow Copy Service requires that the NTFS volume have at least 300 MB of free space (the default) available on the system to store the snapshots. When the maximum size of the storage area is exceeded, the oldest snapshot is deleted.
|It is important to provide sufficient storage for snapshots. If a snapshot is deleted, it cannot be recovered.|
Each volume can have up to 512 snapshots for iSCSI virtual disks. For example, if there are three iSCSI virtual disks residing on C:\, then the total number of snapshots for all three iSCSI virtual disks combined is limited to 512. Snapshots are space-efficient because they are differential copies.
Membership in the local Administrators group, or equivalent, is the minimum required to complete this procedure. Review the details in "Additional considerations" in this topic.
In Microsoft iSCSI Software Target, in the console tree, click Devices.
In the results pane, right-click the virtual disk for which you want to create a snapshot, and then click Create Snapshot.
After the snapshot is created, click OK.
In Microsoft iSCSI Software Target, in the console tree, double-click Snapshots, right-click Schedules, and then click Create Schedule.
Follow the steps in the Schedule Snapshot Wizard.
|If you need read access to this snapshot on the local computer, be sure to use the Take a snapshot of the virtual disks and mount the snapshot locally option on the Schedule Actions page. If this snapshot is going to be backed up as part of a regular server backup procedure, ensure that the snapshot is scheduled to be created prior to the scheduled backup operation.|
- You must be a member of the local
Administrators group to perform these tasks.
- To open iSCSI Software Target, click
Start, point to Administrative Tools, and then click
Microsoft iSCSI Software Target.
- Another way to open iSCSI Software Target is
to click Start, click Run, and then type