Creating a snapshot of a snapshot shows how it may be desirable to create a snapshot of an existing snapshot for some applications.
Creating a snapshot of a snapshot
Click the thumbnail above to view full-sized image.
Even though the arrangement of the snapshots in this figure appears similar to a snapshot cascade, the relationship between the snapshots is not recursive. When reading from the snapshot S2
, data is obtained directly from the original volume, V
, if it does not exist in S2
itself.
See "Snapshot cascade" on page 322.
Such an arrangement may be useful if the snapshot volume, S1
, is critical to the operation. For example, S1
could be used as a stable copy of the original volume, V. The additional snapshot volume, S2
, can be used to restore the original volume if that volume becomes corrupted. For a database, you might need to replay a redo log on S2
before you could use it to restore V
.
Using a snapshot of a snapshot to restore a database shows the sequence of steps that would be required to restore a database.
Using a snapshot of a snapshot to restore a database
Click the thumbnail above to view full-sized image.
If you have configured snapshots in this way, you may wish to make one or more of the snapshots into independent volumes. There are two vxsnap
commands that you can use to do this:
vxsnap
dis
dissociates a snapshot volume and turns it into an independent volume. The volume to be dissociated must have been fully synchronized from its parent. If a snapshot volume has a child snapshot volume, the child must also have been fully synchronized. If the command succeeds, the child snapshot becomes a snapshot of the original volume.
Dissociating a snapshot volume shows the effect of applying the vxsnap
dis
command to snapshots with and without dependent snapshots.
Dissociating a snapshot volume
Click the thumbnail above to view full-sized image.
vxsnap
split
dissociates a snapshot and its dependent snapshots from its parent volume. The snapshot volume that is to be split must have been fully synchronized from its parent volume.
Splitting snapshots shows the operation of the vxsnap
split
command.
Splitting snapshots
Click the thumbnail above to view full-sized image.