How persistent FastResync works with snapshots

Persistent FastResync keeps the FastResync maps on disk so that they can survive system reboots, system crashes and cluster crashes. Persistent FastResync uses a map in a data change object (DCO) volume on disk to implement change tracking. Each bit in the map represents a contiguous number of blocks in a volume's address space.

Persistent FastResync can also track the association between volumes and their snapshot volumes after they are moved into different disk groups. When the disk groups are rejoined, this allows the snapshot plexes to be quickly resynchronized. This ability is not supported by non-persistent FastResync.

When persistent FastResync is enabled on a volume or on a snapshot volume, a data change object (DCO) and a DCO volume are associated with the volume.

Figure: Mirrored volume with persistent FastResync enabled shows an example of a mirrored volume with two plexes on which persistent FastResync is enabled.

Figure: Mirrored volume with persistent FastResync enabled

Mirrored volume with persistent FastResync enabled

Associated with the volume are a DCO object and a DCO volume with two plexes.

Create an instant snapshot by using the vxsnap make command, or create a traditional third-mirror snapshot by using the vxassist snapstart command.

Figure: Mirrored volume after completion of a snapstart operation shows how a snapshot plex is set up in the volume, and how a disabled DCO plex is associated with it.

Figure: Mirrored volume after completion of a snapstart operation

Mirrored volume after completion of a snapstart operation

Multiple snapshot plexes and associated DCO plexes may be created in the volume by re-running the vxassist snapstart command for traditional snapshots, or the vxsnap make command for space-optimized snapshots. You can create up to a total of 32 plexes (data and log) in a volume.

A traditional snapshot volume is created from a snapshot plex by running the vxassist snapshot operation on the volume. For instant snapshots, however, the vxsnap make command makes an instant snapshot volume immediately available for use. There is no need to run an additional command.

Figure: Mirrored volume and snapshot volume after completion of a snapshot operation shows how the creation of the snapshot volume also sets up a DCO object and a DCO volume for the snapshot volume.

Figure: Mirrored volume and snapshot volume after completion of a snapshot operation

Mirrored volume and snapshot volume after completion of a snapshot operation

The DCO volume contains the single DCO plex that was associated with the snapshot plex. If two snapshot plexes were taken to form the snapshot volume, the DCO volume would contain two plexes. For space-optimized instant snapshots, the DCO object and DCO volume are associated with a snapshot volume that is created on a cache object and not on a VM disk.

Associated with both the original volume and the snapshot volume are snap objects. The snap object for the original volume points to the snapshot volume, and the snap object for the snapshot volume points to the original volume. This allows VxVM to track the relationship between volumes and their snapshots even if they are moved into different disk groups.

The snap objects in the original volume and snapshot volume are automatically deleted in the following circumstances:

Note:

The vxsnap reattach, dis and split operations are not supported for space-optimized instant snapshots.

See the vxassist(1M) manual page.

See the vxsnap(1M) manual page.

More Information

Reorganizing the contents of disk groups

DCO volume versioning