Backing up SQL Server data
Use a backup job to back up SQL Server environments with snapshots.
Before you begin
During the initial base backup, IBM Storage® Protect Plus creates a vSnap LUN volume and creates an NTFS share on that iSCSI LUN. During incremental backups, the previously created volume is reused. The IBM Storage Protect Plus agent maps the LUN to the SQL Server server and mounts the NTFS volume to where the backup is completed. If log backups are enabled, IBM Storage Protect Plus creates a separate vSnap volume and creates a CIFS on that volume. Log backup transaction files are copied to this share according to the schedule created for log backup.
When the backup job is completed, the IBM Storage Protect Plus agent unmounts the share from the SQL Server server and creates a vSnap snapshot of the backup volume.
Review the following information:
- Before an IBM Storage 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.
- Microsoft™ iSCSI Initiator must be enabled and running on the Windows™ server. An iSCSI route must be enabled between the SQL system and vSnap server. For more information, see Microsoft iSCSI Initiator Step-by-Step Guide.
- IBM Storage Protect Plus does not support log backup of Simple recovery models.
- Failover of an SQL cluster instance during backup is not supported.
- If you plan to back up a large number of databases, you might have to increase the number of maximum worker threads on each associated SQL Server instance to ensure that backup jobs are completed successfully. The default value for maximum worker threads is 0. The server automatically determines the maximum worker threads value based on the number of processors available to the server. SQL Server uses the threads from this pool for network connections, database checkpoints, and queries. Additionally, a backup of each database requires one additional thread from this pool. If you have a large number of databases in a backup job, the default max worker threads might not be enough to back up all of the databases and the job will fail. For more information about increasing the maximum worker threads option, see Configure the max worker threads Server Configuration Option.
- IBM Storage Protect
Plus supports database backups and
transaction log backups. The product name is populated in the
msdb.dbo.backupsetfor records created by backups initiated from IBM Storage Protect Plus. - SQL databases protected by transparent data encryption (TDE) require that a master key and certificate to be created prior to encryption. The master key and certificate are managed by the user outside of IBM Storage Protect Plus and are not protected as part of a backup job. Prior to restoring a TDE protected database, the master key and certificate must be restored to the restore destination so that the data protected by IBM Storage Protect Plus can be unencrypted. The password used during the initial encryption process must be used to unencrypt the data. For more information about moving SQL databases protected with TDE, see Move a TDE Protected Database to Another SQL Server.
- For more information about log backups for SQL, see Log backups.
- When the SQL Server backup job fails and the server reports an error message, you can resolve the issue. For instructions, see Resolving the failed SQL Server database backup.
Take the following actions:
- Register the SQL Servers that you want to back up. For more information, see Adding an SQL Server application server.
- Configure SLA policies. For more information, see Create backup policies.
- Before you set up and run SQL backup jobs, configure the Shadow Copy storage settings for the volumes where your SQL databases are located. This setting is configured one time for each volume. If new databases are added to the job, the setting must be configured for any new volumes that contain SQL databases. In Windows Explorer, right-click the source volume and select the Shadow Copies tab. Set the Maximum size to No limit or a reasonable size based on the source volume size and I/O activities, and then click OK. The shadow copy storage area must be on the same volume or another available volume during backup job.
Procedure
What to do next
| Action | How to |
|---|---|
| Create an SQL Restore job definition. | See Restoring SQL Server data. |