Solved

Best Practices for suspending a SQL Server for maintenance

Posted on 2011-09-26
4
259 Views
Last Modified: 2012-05-12
What are the best practices for suspending a non-clustered/non-fault tolerant SQL 2008 server for maintenance?

We have a SQL 2008 server in a hosted environment.  The transaction log files and the DB files sit on SAN LUNS presented to the physical SQL server.  Our host/vendor is migrating all data off that current SAN to a new SAN.  Therefore, I want to stop all SQL prior to the move, then bring SQL back online after the SAN migration is complete.

Thanks,

Cw.
0
Comment
Question by:craig16229
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:almander
ID: 36601238
Regardless of what you do, make a backup of the database!

To perform the move, I would
1. Detach the current database(s).
2. Move the Database (mdf), and Log (ldf) files to the new location.
3. Reattach the database(s).

http://support.microsoft.com/kb/224071
0
 

Author Comment

by:craig16229
ID: 36601449
Almander,

Thanks for your rapid reply, and the link.  I did not come across that MS KB, and that is at least part of what I am looking for.

Our vendor is telling us that essentially they are migrating our data for us.  So aside from the backup (which is obviously a good idea no matter what the vendor says), what are the prospects of  re-attaching the databases after the move and having SQL come back online?


Cw.
0
 
LVL 5

Accepted Solution

by:
almander earned 500 total points
ID: 36601623
I guess it depends on what the vendor means by 'migrating' to me that means that they will take care of everything including the detach/stopping and reattach/starting of the databases. Otherwise they could not guarantee that your data and log files are current.

Regardless, someone should be doing something similar to:
1. Stop writing to the files
2. Copy the files
3. Allow writing to the files

Assuming that there are no changes to the server, or to the servers MASTER database. A reattach, or even restore from backup will have a very, very high success rate. Obviously and data changes made after the backup, or copy of the mdf/ldf files would not be in the newly restored/reattached version.





0
 

Author Closing Comment

by:craig16229
ID: 36601720
The vendor is definitely expecting us to have production shut down on our servers prior to the move, but their promise (which I translate into "vendor promise") is that they will migrate the data pristinely.

We'll see about that when I re-attach to the databases.


Cw.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question