Restoring from a Safeguarded backup
If your production data is compromised by a cyberattack, you can restore data to the source volumes with a Safeguarded backup. The IBM Copy Services Manager automates and simplifies that process of testing and restoring compromised data from a Safeguarded backup.
Before you can restore data to the source volume with a Safeguarded backup, ensure that you fully test the Safeguarded backups that are associated with the compromised source volume. Multiple versions of Safeguarded backups can exist and some versions can include ransomware or damaged data. The restore operation copies all source volume data with the version of the Safeguarded backup that you are restoring from. If you detect a breach, ensure that you test all the current Safeguarded backups that are associated with a source volume. By testing the backups, you ensure that you are restoring an uncompromised version of the Safeguarded backup to the source volume. For more information, see Recovering a Safeguarded backup.
Prerequisites for HyperSwap volumes
If the Safeguarded source volume is also a HyperSwap volume, you need to complete prerequisite tasks before you can use IBM Copy Services Manager to restore the HyperSwap source volume. The procedures depend on which HyperSwap site the Safeguarded Copy function is configured.
- Master site contains Safeguarded backups, and the auxiliary site does not.
- In this use case, the master site in the HyperSwap system contains the HyperSwap source volumes
with Safeguarded backups. Complete these steps before you restore the Safeguarded backup to the
HyperSwap master volume:
- To verify the HyperSwap volume copies on the HyperSwap system, enter the following
command:
In the results that display, determine both the master site copy of the HyperSwap volume and the auxiliary site copy of the HyperSwap volume. In the results, gather the following information:lsvdisk
- Use the results in the function field to determine whether the volume copy
is on the auxiliary site in the HyperSwap relationship. The value
aux
indicates the volume copy at the auxiliary site. - Determine the pool name or ID that is used by the volume copy on the auxiliary site.
- Determine the ID of the volume copy on the auxiliary site.
- Determine the name or the ID of the volume on which the copies are based.
- Use the results in the function field to determine whether the volume copy
is on the auxiliary site in the HyperSwap relationship. The value
- To remove the volume copy that was identified in step 1, enter the following
command:
where <copy_id> indicates the copy identifier for the copy on the auxiliary site; <pool_id_or_name> indicates the name or identifier of the pool, and <name_id> indicates the name or ID of the volume that is associated with the copy. This command removes the volume copy at the auxiliary site, its associated FlashCopy mappings, and change volumes that are created when HyperSwap volume was created. This action makes the volume copy at the master site an independent volume that can be recovered with IBM Copy Services Manager.svctask rmvolumecopy -copy <copy_id> -pool <pool_id_or_name> -removefcmaps <name_id>
- To verify the HyperSwap volume copies on the HyperSwap system, enter the following
command:
- Auxiliary site contains Safeguarded backups, and the master site does not.
- In this use case the auxiliary site in the HyperSwap system contains the HyperSwap source
volumes with Safeguarded backups. Complete these steps before you restore the Safeguarded backup to
the HyperSwap auxiliary volume:
- To verify the HyperSwap volume copies on the HyperSwap system, enter the following
command:
In the results that display, determine both the master site copy of the HyperSwap volume and the auxiliary site copy of the HyperSwap volume. In the results, gather the following information:lsvdisk
- Use the results in the function field to determine whether the volume copy
is on the master site in the HyperSwap relationship. The value
master
indicates the volume copy at the master site in HyperSwap configuration. - Determine the pool name or ID that is used by the volume copy on the master site.
- Determine the ID of the volume copy on the master site.
- Determine the name or the ID of the volume on which the copies are based.
- Use the results in the function field to determine whether the volume copy
is on the master site in the HyperSwap relationship. The value
- To remove the volume copy that was identified in step 1, enter the following
command:
where <copy_id> indicates the copy identifier for the copy on the master site; <pool_id_or_name> indicates the name or identifier of the pool, and <name_id> indicates the name or ID of the volume that is associated with the copy. This command removes the volume copy at the master site, its associated FlashCopy mappings, and change volumes that are created when HyperSwap volume was created. This action makes the volume copy at the auxiliary site an independent volume that can be recovered with IBM Copy Services Manager.svctask rmvolumecopy -copy <copy_id> -pool <pool_id_or_name> -removefcmaps <name_id>
- To verify the HyperSwap volume copies on the HyperSwap system, enter the following
command:
- Both sites contain Safeguarded backups, but you are restoring the backup to the master site
- If both sites contain Safeguarded backups, but you want to restore to the master site only,
complete the following steps:
- To verify the HyperSwap volume copies on the HyperSwap system, enter the following
command:
In the results that display, determine both the master site copy of the HyperSwap volume and the auxiliary site copy of the HyperSwap volume. In the results, gather the following information:lsvdisk
- Use the results in the function field to determine whether the volume copy
is on the auxiliary site in the HyperSwap relationship. The value
aux
indicates the volume copy at the auxiliary site in HyperSwap configuration. - Determine the pool name or ID that is used by the volume copy at the auxiliary site.
- Determine the ID of the volume copy on the auxiliary site.
- Determine the name or the ID of the volume that the copies are based on.
- Use the results in the function field to determine whether the volume copy
is on the auxiliary site in the HyperSwap relationship. The value
- To remove the volume copy that was identified in step 1, enter the following
command:
where <copy_id> indicates the copy identifier for the copy on the auxiliary site; <pool_id_or_name> indicates the name or identifier of the pool, and <name_id> indicates the name or ID of the volume that is associated with the copy. This command removes the volume copy at the auxiliary site, its associated FlashCopy mappings, and change volumes that are created when HyperSwap volume was created. This action makes the volume copy at the master site an independent volume that can be recovered with IBM Copy Services Manager.svctask rmvolumecopy -copy <copy_id> -pool <pool_id_or_name> -removefcmaps <name_id>
- To verify the HyperSwap volume copies on the HyperSwap system, enter the following
command:
Restoring Safeguarded backups with IBM Copy Services Manager
- Log in to https://<IP address or domain name>:9559/CSM where <IP address or domain name> is the IP address or domain name of IBM Copy Services Manager instance. Use the Administrator user name and password that you created during the configuration of Safeguarded Copy function.
- On the Sessions Overview page, select Sessions.
- On the Sessions page, select the volume group that contains Safeguarded backup copies that you want to restore.
- Select .
- On the Restore Backup page, select the version of the Safeguarded backup that you want to restore. Safeguarded backups are displayed by their backup time from the most recent to the latest version. Restored Safeguarded backups replace the source volumes that is currently defined in volume group. Click Yes.
- Ensure that the restore operation completes successfully. After the copy is restored to the source volume, the session state displays Target Available. You can also monitor the progress of the restore action by selecting Console to display all the command operations that were run during the action.
- If you restored a HyperSwap source volume, you must return the recovered
source volume to a HyperSwap volume with the addvolumecopy command. Enter the
following command to create a copy of the restored volume on the other site:
where <storage_pool_id or storage_pool_name> is the pool that is located on the other site and <volume_name or volume_id> is the name of the volume that was restored.addvolumecopy -pool <storage_pool_id or storage_pool_name> <volume_name or volume_id>