?
Solved

Best Practices for suspending a SQL Server for maintenance

Posted on 2011-09-26
4
Medium Priority
?
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Back in July, I blogged about how Microsoft's new server pricing model, combined with the end of the Small Business Server package, would result in significant cost increases for many small businesses (see SBS End of Life: Microsoft Punishes Small B…
Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

765 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