Restoring SQL Server data
Use a restore job to restore SQL Server environments from snapshots. Your SQL Server clones can be utilized and consumed instantly through IBM Spectrum Protect Plus Instant Disk Restore jobs. IBM Spectrum Protect Plus catalogs and tracks all cloned instances.
Before you begin
- Create and run a SQL backup job. For more information, see Backing up SQL Server data.
- Review the SQL Server system requirements in Microsoft SQL Server requirements.
- Before an IBM Spectrum Protect Plus user can implement backup and restore operations, roles and resource groups must be assigned to the user. Grant users access to resources and backup and restore operations through the Accounts pane. For more information, see Managing user access.
- When completing a production restore to a SQL Server failover cluster, the root volume of the alternate file path must be eligible to host database and log files. The volume should belong to the destination SQL Server cluster server resource group, and be a dependency of the SQL Server cluster server.
- A restore to an NTFS or FAT compressed volume is not supported because of SQL Server database restrictions. For more information see Description of support for SQL Server databases on compressed volumes.
- When completing a point-in-time recovery, ensure that both the restore target SQL instance service and the IBM Spectrum Protect Plus SQL Server service use the same user account.
- When restoring to an alternate location, the SQL Server destination must be running the same version of SQL Server or a later version. For more information, see Compatibility Support.
- When restoring to a primary instance in a SQL Always On Availability Group environment, the
database is added to the target Always On database group. After the primary restore, the secondary
database is seeded by the SQL server in environments where automatic seeding is supported (SQL 2016
and later). The database is then enabled on the destination availability group. The synchronization
time depends on the amount of data being transferred and the connection between the primary and
secondary replicas.
If automatic seeding is not supported or is disabled, a secondary restore from the restore point with the shortest LSN gap of the primary instance must be completed. Log backups with the latest point-in-time restore point created by IBM Spectrum Protect Plus must be restored if the log backup was enabled on the primary instance. The secondary database restore is completed in a restoring state and you must issue the T-SQL command to add the database to the target group. For more information, see Transact-SQL Reference (Database Engine).
About this task
Instant Disk Restore leverages iSCSI or fibre channel protocols to provide immediate mount of LUNs without transferring data. Snapshotted databases are cataloged and instantly recoverable with no physical transfer of data.
- Instant Access mode
- In Instant Access mode, no further action is taken after mounting the share. Users can complete any custom recovery using the files in the vSnap volume. An Instant Access restore of an Always On database is restored to the local destination instance.
- Test mode
- In test mode, the agent creates a new database using the data files directly from the vSnap volume.
- Production mode
- In production mode, the agent first restores the files from the vSnap volume back to primary storage and then spins up the new database using the restored files.
Procedure
To define a SQL restore job, complete the following steps:
at the resource level.
to
remove restore points from the