This section contains procedures for using the Configuration Wizard to migrate SQL Server databases. See the following topics for more information:
Before you migrate your SQL Server databases, verify that your environment is in the proper state.
For resource planning information, see Chapter 6, Preparing to Migrate SQL Server Databases. For detailed instructions for creating LUNs, see the SnapDrive Installation and Administration Guide for your version of SnapDrive.
For information about how to check that users are not connected to a database, see your SQL Server documentation.
For more information, see SQL Server database configurations to avoid.
The following steps summarize the migration of SQL Server 2000 or 2005 database files:
Note
If the databases you intend to back up and restore using SnapManager are already on LUNs, and their configurations meet the requirements for operating with SnapManager, then you do not need to migrate them. Instead, use the Configuration Wizard only to set up the SnapInfo directory. No databases will be taken offline or copied.
Note
SnapManager for SQL 2.1 provides the capability to backup a Read-only database. Use the Configuration Wizard to migrate the Read-only database. However, you cannot select the Run UPDATE STATISTICS option for the Read-only database. During migration, SnapManager for SQL will skip this option only for Read-only database. After migration, you can restore and backup the Read-only database like any other normal database.
SnapManager detaches SQL Server user databases before migrating them to LUNs.
SnapManager also stops the SQL Server while migrating SQL Server system databases to LUNs.
Migrating SQL Server databases causes them to be taken offline during the copy operation.
In a Windows cluster, if you migrate a database file to a Data ONTAP LUN that does not have dependency set on the SQL Server cluster resource, SnapManager places all resources directly or indirectly dependent on that LUN into an offline state while it adds the dependency on the cluster resource.
If a database copy or a database attach fails, SnapManager attaches the original database file to the SQL Server.
If you have multiple databases that reside on one or two LUNs, specify a common SnapInfo directory for those databases.
If you want to place the SnapInfo directory for an individual database on a LUN other than in the default location for that SQL Server instance, the Configuration Wizard supports the creation of that SnapInfo directory as well.
Use the Configuration Wizard to move the system databases to LUNs. While the Configuration Wizard is migrating SQL Server system databases to LUNs, the SQL Server is stopped by SnapManager.
Migrating SQL Server databases causes them to be taken offline during the move operation.
Run SnapManager Configuration wizard to move the master database. SnapManager for SQL also moves the resource database to the location where the master database is migrated.
To migrate your SQL Server 2000 or 2005 databases from local disk to LUNs or from one LUN to another, complete the following steps.
Attention
After an SQL Server database has been migrated to LUNs using SnapManager, do not use the Enterprise Manager--or any other utility outside of SnapManager--to move any other data in the SQL Server system. Doing so might prevent SnapManager from functioning correctly.
| 1 |
If you have not already done so, start the SnapManager for SQL Server application. To do this, go to the Windows Start menu and select Program Files > SnapManager for SQL Server. ResultSnapManager for SQL Server main window opens. |
|
| 2 |
If you want to view or change the SQL Server managed by SnapManager, do this using the Connect to SQL Server dialog box. To open the dialog box, go to the SnapManager menu bar and select Action > Connect to a different SQL Server. For more information, see Appendix C, Configuring SnapManager Application Settings. |
|
| 3 |
Start the Configuration Wizard.
ResultThe Configuration Wizard is launched and the Welcome screen appears. |
|
| 4 |
At the Configuration Wizard Welcome screen, click Next. ResultThe Database Verification Server and Account Authentication screen appears. |
|
| 5 |
Use the Database Verification Server and Account Authentication screen to specify the SQL Server to be used to perform SQL Server database verification and account authentication. Note
|
|
| 6 |
Result |
|
| 7 |
Use the Where to Move Databases screen to specify the databases (or individual data files or transaction log files) you want to move and where you want them moved.
For more information about any LUN in the Disk List, move the mouse over the LUN name. This causes a tooltip to appear and display the IP address or host name of the storage system and the name of the volume that houses the LUN. Note From this screen, you can do any of the following:
|
|
| 8 |
ResultThe Number of Databases that Can be Backed Up Concurrently screen appears and displays the current value. |
|
| 9 |
Use the Number of Databases that Can be Backed Up Concurrently screen to change the maximum number of databases that can be backed up concurrently.
For more detailed information, see Using the Number of Databases that Can Be Backed Up Concurrently screen. |
|
| 10 |
ResultThe next screen that appears depends on whether you chose to modify the SQL Server maximum number of worker threads allowed. |
|
|
You did not select the Modify SQL Server "Maximum Worker Threads" Parameter option |
The SnapInfo Directory Type screen appears. Go to Step 13. | |
|
You selected the Modify SQL Server "Maximum Worker Threads" Parameter option |
The Modify SQL Server Maximum Worker Threads Parameter screen appears. Go to Step 11. | |
| 11 |
Use the Modify SQL Server Maximum Worker Threads Parameter screen to specify whether you want to modify the maximum number of worker threads for any SQL Server instance. You have the following options:
For more detailed information, see Using the Modify SQL Server Maximum Worker Threads Parameter screen. Note |
|
| 12 |
After you have finished viewing and optionally changing this SQL Server parameter, click Next. ResultThe SnapInfo Directory Type screen appears. |
|
| 13 |
Use the SnapInfo Directory Type screen to choose how you want the SnapInfo directory or directories configured. Note |
|
|
Create one SnapInfo directory for all SQL Server instances and their associated databases (including multiple databases sharing one or two LUNs) |
Go to Step 14. | |
|
Create a different SnapInfo directory for each SQL Server instance, or for multiple databases sharing one or two LUNs, or for each database in an SQL Server instance |
Go to Step 18. | |
|
Go to Step 18. | ||
| 14 |
Select the Single SnapInfo Directory option, then click Next. ResultThe Specify a Single SnapInfo Directory screen appears. Note |
|
| 15 |
Use the Specify a Single SnapInfo Directory screen to specify how you want to create a single SnapInfo directory for all your databases. By default, the SnapInfo directory name is SMSQL_SnapInfo. However, you can specify a different SnapInfo directory path by modifying the information in the Result SnapInfo Directory box. For more detailed information, see Using the Specify a Single SnapInfo Directory screen. ResultThe Result SnapInfo Directory field displays the mount point for the newly specified SnapInfo directory. |
|
| 16 |
ResultThe Database Migration Options screen appears. |
|
| 17 |
Proceed to Step 25. |
|
|
Where to Put the Default SnapInfo Directory for Each SQL Server Instance |
||
| 18 |
Select the Advanced SnapInfo Directories option, then click Next. ResultThe Where to Put the Default SnapInfo Directory for Each SQL Server Instance screen appears. Note |
|
| 19 |
Use the Where to Put the Default SnapInfo Directory for Each SQL Server Instance screen to create a default SnapInfo directory for all the databases owned by a specific SQL Server instance. In subsequent screens, you will have the opportunity to override this setting for specific cases:
By default, the SnapInfo directory name is SMSQL_SnapInfo. However, you can specify a different SnapInfo directory path by using the Default SnapInfo Property dialog box. For more detailed information, see Using the Where to Put the Default SnapInfo Directory for Each SQL Server Instance screen. |
|
| 20 |
ResultThe Where to Put the Default SnapInfo Directory for LUNs Shared by Multiple Databases screen appears. Note |
|
|
Where to Put the Default SnapInfo Directory for LUNs Shared by Multiple Databases |
||
| 21 |
If you have multiple databases that reside on one or two LUNs, use the Where to Put the Default SnapInfo Directory for LUNs Shared by Multiple Databases screen to specify a common SnapInfo directory location for those databases. By default, the SnapInfo directory name is SMSQL_SnapInfo. However, you can specify a different SnapInfo directory path by using the Default SnapInfo Property dialog box. For more detailed information about using the Where to Put the Default SnapInfo Directory for LUNs Shared by Multiple Databases screen, see Using the Where to Put the Default SnapInfo Directory for LUNs Shared by Multiple Databases screen. |
|
| 22 |
ResultThe Where to Put the SnapInfo Directory for Each Database screen appears. Note |
|
| 23 |
If you want to place the SnapInfo directory for an individual database on a LUN other than in the default location for that SQL Server instance, use the Where to Put the Default SnapInfo Directory for Each Database screen to select the database and specify the SnapInfo directory location. By default, the SnapInfo directory name is SMSQL_SnapInfo. However, you can specify a different SnapInfo directory path by using the Default SnapInfo Property dialog box. For more detailed information about using the Where to Put the Default SnapInfo Directory for Each Database screen, see Using the Where to Put the SnapInfo Directory for Each Database screen. |
|
| 24 |
ResultThe Database Migration Options screen appears. Note |
|
| 25 |
Use the Database Migration Options screen to select options for the database migration:
For a more detailed description, see Using the Database Migration Options screen. |
|
| 26 |
ResultThe next screen that appears depends on whether SnapManager is installed in an MSCS environment or on a stand-alone Windows host. |
|
|
You are configuring SnapManager in a MSCS environment -or- the Microsoft iSCSI service is not running on the Windows host system |
The Configure Automatic Event Notification screen appears. Go to Step 29. | |
|
You are configuring SnapManager on a stand-alone Windows host system |
The Add Microsoft iSCSI Service Dependency screen appears. Proceed to Step 27. | |
| 27 |
Use the Add Microsoft iSCSI Service Dependency screen to optionally configure the Microsoft iSCSI service as a dependency for the Microsoft SQL Server services on a particular SQL Server instance. For each SQL Server instance, if you are migrating databases to LUNs accessed using the iSCSI protocol, then select the option to ensure that the Microsoft iSCSI service will be added as a dependency for the Microsoft SQL Server services in that instance. This will prevent Microsoft SQL Server from starting before the Microsoft iSCSI service is ready to accept connections. Note |
|
| 28 |
Click Next.Result |
|
| 29 |
Use the Configure Automatic Event Notification screen to configure the automatic event notification options for SnapManager:
After you complete the Configuration Wizard, you can also view or change these settings by selecting Options > Notification Settings to access the Auto Notification Settings dialog box. For more detailed information, go to Event notification options. Result |
|
| 30 |
In the Completing the Configuration Wizard screen, click Finish to close the Configuration Wizard so that you can begin the actual database configuration process. Note ResultThe Configuration Wizard closes, and the Configurator Status dialog box appears. |
|
| 31 |
To migrate your databases to the LUNs you specified and to set up the SnapInfo directory as specified, click Start Now. ResultThe Configuration Wizard moves the databases and logs to their specified LUNs and displays a task check-off list.
When the migration finishes successfully, SnapManager displays a message box. This message also reminds you to make a backup immediately. |
|
| 32 | ||
| 33 |
Back up your databases immediately. Any time you use the Configuration Wizard to move data from one drive to another, backups performed prior to the move become invalid. After you migrate your databases to a new LUN, perform an immediate backup. |
|
Copyright © 1994-2006, Network Appliance, Inc. All rights
reserved.
Part No. 215-01752_A0
File: cfgdata4.htm
Last updated: 01-Sep-2006 07:41:12