Groups | Blog | Home
all groups > sql server clustering > october 2004 >

sql server clustering : How to move system databases to new SAN drive in cluster server?


Chen
10/21/2004 1:53:03 PM
Hi,

I have to move an entire SQL Server system databases from current basic
drive W: to new SAN drive H: in cluster server (current is one node with two
instances). During the installation, I put Program files to C: drive and Data
Files to W: drive. After move all dbs, we will get rid of drive W. My
questions are:

1) Do I need uninstall and reinstall those instances to move system dbs to
new location?

2) Is it possible to following the article 224071 Moving SQL Server
Databases to a New Location with Detach/Attach? If this is the case, after
SQL Server system dbs moved, how about those cluster Configuration files
under the subdirectory FTDATA and config, do I need copy them to new SAN
drive manually since they automatically generated from installation? And what
kind order should I follow, msdb, master, model and tempdb or must master
first? During the move, it need perform many times to Stop and restart SQL
Server, this should be use Cluster Administrator to offline SQL Server
instance or should go to the control panel services manually stop and restart
SQL Server services?

Any input much appreciate,
-Chen
Rodney R. Fournier [MVP]
10/21/2004 4:30:42 PM
I use the attach method all the time on SQL clusters, works great! You will
need to take SQL down to add the H: drive to the dependency list, if the SAN
does not require the machine(s) to be completely off.

Cheers,

Rod

MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering
http://msmvps.com/clustering - Blog

[quoted text, click to view]

Chen
10/21/2004 6:29:03 PM
Hi Rod,

Thanks for the replay. I used detach and attach method for user define
database all the time in cluster server, but this time I am talking about
moving system databases those are master, msdb and model. Compare with
non-cluster server, can I use the similar way to move system databases in
cluster server?

Regards,
-Chen

[quoted text, click to view]
RIBR
10/22/2004 4:35:06 AM
Hi Chen and Rod,

I have same question. How move system databases and all other directories of
SQL virtual server (on shared disk) to different location (disk)?

Regards

Richard

[quoted text, click to view]
Rodney R. Fournier [MVP]
10/22/2004 6:53:46 AM
True, I have not moved any of the system databases this way. Let me look
into it.

Rod
[quoted text, click to view]

Chen
10/27/2004 2:13:01 PM
Hi Rod,

Any result for this issue?

Best Regards,
-Chen

[quoted text, click to view]
Rodney R. Fournier [MVP]
10/27/2004 4:33:05 PM
I can't find a thing, I am hoping Geoff can come to my rescue once again :)

Cheers,

Rod

MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering
http://msmvps.com/clustering - Blog

[quoted text, click to view]

Chen
10/28/2004 9:25:04 AM
Hi Geoff,

Thanks for the replay. During the move msdb and model, you need perform the
stop and restart the SQL Server and SQL Agent services. Is this can done in
Cluster Administrator console bring offline SQL instance and bring online, am
I right? Another thing is that after all databases moved, we will get rid of
old drive, how can I treat those cluster Configuration files under the
subdirectory FTDATA and config since they are generate from installation, if
I manually copy them to new SAN drive, the failover should work properly in
the future?

Best Regards,
-Chen

[quoted text, click to view]
Geoff N. Hiten
10/28/2004 10:20:59 AM
It should work the same. I have moved model, msdb, and tempdb on a cluster
but not master.

Moving SQL Server databases to a new location with Detach/Attach
http://support.microsoft.com/default.aspx?scid=kb;en-us;224071

If you get stuck you can start SQL via the command line from the node
hosting the resource group. Use the correct switch options to point to
master, etc. and then you can use Enterprise Mangler to fix the startup
parameters.

--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com

I support the Professional Association for SQL Server
www.sqlpass.org

"Rodney R. Fournier [MVP]" <rod@die.spam.die.nw-america.com> wrote in
message news:eLfiMyGvEHA.612@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view]

Geoff N. Hiten
10/28/2004 8:24:18 PM
I would stop/start using the command-line. Just make sure the resources SQL
depends on are online on the node you are working from.

FTData is full-text. You will likely need to deal with that as a separate
issue. Config files should be a non-issue. Make sure and remove the old
drives as dependancies from SQL AFTER you have removed all the data.

Remember, do one step at a time. Have backups and a fall-back plan for each
step. High availability is a state of mind more than anything else.

--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com

I support the Professional Association for SQL Server
www.sqlpass.org

[quoted text, click to view]

Chen
10/29/2004 7:17:01 AM
Thank you very much Geoff.
-Chen

[quoted text, click to view]
Samm
10/29/2004 2:23:04 PM
I've moved Master db on a cluster. Basically it's the same procedure as if
you move Master db on a standalone SQL Server:

Through EM, right-click your sql virtual name, then Properties. At Startup
Parameters, remove the current entries and add your location for -d, -e and
-l. You need to fully qualify the path.
Stop SQL.
Copy master.mdf and mastlog.ldf files to the new location.
Restart SQL.

For moving msdb and model, you need to add "-T3608" trace and to detach and
attach.

I'm not sure about using command line to stop/start sql. I was told MS only
supports three options in a cluster:
1. Cluster admin console.
2. SQL EM
3. SQL Server Service Manager.

I was specifically told not to use Services template on a node to
stopt/start SQL. Maybe using command line to stop/start a virtual sql server
is OK. But I haven't tried that yet.

Jason

[quoted text, click to view]
Geoff N. Hiten
11/1/2004 9:45:39 AM
You use the command-line start when you need to put the instance into
single-user mode for maintenance purposes. You don't do it for actual
operation.

--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com

I support the Professional Association for SQL Server
www.sqlpass.org

[quoted text, click to view]
RIBR
11/3/2004 4:46:02 AM
I tried move FTData.
I stoped SQL virtual server and SQL Server Search.
Then I have to edit keys which bears on MS Search and MSCS and moved FTData.
Finaly i started SQL virtual server and SQL Server Search.


[quoted text, click to view]
Chen
11/8/2004 10:49:02 AM
Thanks for everyone reply this question.

RIBR,

Can you tell me some details that you did edit keys which bears on MS Search
and MSCS? Is that edit inside the Registry Editor? Which article you follow?

Regards,
-Chen

[quoted text, click to view]
RIBR
11/9/2004 12:07:06 AM
Hi Chen,

I did edit Registry keys by Registry Editor.
I did not follow an article I have just searched registry keys for MS
Cluster service and MS Search Service.

Unfortunately I did it at customers place and do not have exact
specification with me at the moment. I can send You list of keys modified by
me by next week.

Regards

RIBR

[quoted text, click to view]
Chen
11/9/2004 6:37:03 AM
Hi RIBR,

Thank you so much. I will wait for next week you send me list of keys need
modify. Since this is my first time edit to the registry, can you send steps
how to modify those keys and after modify do I need stop/start SQL Server
services?

Regards,
-Chen

[quoted text, click to view]