Home > Storage > PowerMax and VMAX > Storage Admin > Dell PowerMax and VMware vSphere Configuration Guide > Copying virtual machines with TimeFinder
Organizations have many different reasons for creating copies of VMFS datastores. Some companies create array snapshots at some regular interval but never link them to targets unless there is an issue (a VM needs recovery, and so forth). Others use them to mount to a backup host and copy the VMs. Still others run reporting activities on those copies.
The process to clone virtual machines with TimeFinder is essentially the same across the various technologies. Each type of TimeFinder technology has specific commands that are tailored to it. There are required steps before and after the copy that must be completed. Rather than show each TimeFinder command, SnapVX is used as the example technology to demonstrate the process. It is the most commonly seen command in customer environments. However, a brief mention of TimeFinder/Clone is included as it is not an emulation in PowerMaxOS 10.
Note: Ideally, virtual machines should be shut down before the metadata and virtual disks that are associated with the virtual machines are copied. Copying virtual machines after shutting down ensures a clean copy of the data. That data can be used for backup or quick startup of the cloned virtual machine. Live copies of VMs, however, are crash-consistent with TimeFinder.
Note: When using TimeFinder/Clone in PowerMaxOS 10, the -consistent flag is required.
TimeFinder/Clone allows users to quickly replicate an application for immediate use by creating read/write copies directly from the source devices. Creating replicas that are not attached to snapshots (for example, SnapVX) reduces steps and resource usage.
However, a snapshot does not protect clones. After clone data is modified, there is no snapshot image that can be used to return the clone to its original state. Therefore, generally clones should not be used for application protection. They are useful where a quick copy to test a patch and then restore the updated, modified target data directly back to the source, is required.
When using Solutions Enabler with TimeFinder/Clone, the target storage group and volumes, or individual volumes, must be created ahead of time. If the clone is taken at the storage group level, Unisphere for PowerMax can create the storage group and volumes for the user. Individual volume clones are accomplished through Solutions Enabler.
SnapVX operations are performed using the symsnapvx command to create point-in-time copies (snapshots) of critical data. SnapVX creates snapshots by storing changed tracks (deltas) directly in the Storage Resource Pool (SRP) of the source device. SnapVX snapshots are targetless. There is no target device unless the snapshot is linked. Snapshots consume minimal cache space rather than disk space. If you ever need the application to use the point-in-time data, you can create links from the snapshot to one or more target devices. If multiple snapshots exist and the application must find a particular point-in-time copy for host access, you can link and relink until the correct snapshot is located.
SnapVX supports up to 256 snapshots per source device (including any emulation mode snapshots) or 1024 snapshots at the storage group level. The legacy session limits still apply to the emulations. For a more detailed overview of TimeFinder SnapVX functionality including I/O flow, see the appropriate product guides.
Since TimeFinder/SnapVX provides the flexibility of creating copies of devices without specifying a target, it distinguishes it from all other TimeFinder technologies. This offers customers greater flexibility and functionality to make copies of production data.
The steps to create array copies are the same whether a particular virtual machine has a raw device mapping (RDM). However, RDM devices must be included with the VMFS devices when creating a copy to ensure the VM is complete. Failure to include the RDM devices will result in errors powering on the virtual machine after restoring the copy.
Note: TimeFinder/SnapVX technology also offers the option of copying the data when the target is linked by using the “COPY” option. Typically this operation should only be done if the linked target is going to be used for an extended period. In PowerMaxOS 10, all copies are NOCOPY.
Note: If the intended linked target device is in use as a VMFS datastore, the VMs should be unregistered. The datastore should then be unmounted from the ESXi hosts before undertaking the array snapshot process.