Solved

Best Practices for suspending a SQL Server for maintenance

Posted on 2011-09-26
4
256 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

11 Experts available now in Live!

Get 1:1 Help Now