Solved

Best Practices for suspending a SQL Server for maintenance

Posted on 2011-09-26
4
257 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

When you are trying to access the server, have you ever encountered "The terminal server has exceeded the maximum number of allowed connection" error?  or "The user is attempting to log on to a Terminal Server in Remote Administration mode, but the …
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now