SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to restore master database in a SQL Server 2005 Cluster


How to restore master database in a SQL Server 2005 Cluster

Author
Message
Dipali-436410
Dipali-436410
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 175
I did the following:
a. Change the SQL Server start up parameter to add -m (Single User Mode).
b. STOP all SQL Server related services.
c. Restart SQL Server service

After doing this when i try to connect using SQL Server management studio it says only one connection is allowed. I am not sure which other resource is connected. Please help

Its a SQL2005 Cluster sitting on top of a windows 2003 clustering service
There are 2 nodes configured. Any help would be appreciated. Thanks
Jpotucek
Jpotucek
SSCarpal Tunnel
SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)SSCarpal Tunnel (4.4K reputation)

Group: General Forum Members
Points: 4418 Visits: 1680
when restoring Master, I usually stop SQL Server and then start it from a command prompt

from command prompt, navigate to the directory where the sql server executeable resides and start it

sqlservr -m -c

or for a named instance sqlservr -m -c -s instancename

I then start open query analyzer or Enterprise manager and restore (don't open both.. that's two sessions : )



george sibbald
george sibbald
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25062 Visits: 13698
I seem to remember reading that SSMS fires up more than one connection so you will have problems using it in single user mode. Execute the restore master command via one of the command line utilities such as SQLCMD or osql (see BOL)

---------------------------------------------------------------------
Dipali-436410
Dipali-436410
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 175
Thanks george, in my case. It seems that the clustered windows O/S is taking up the connection. When I tried to run the server in normal mode and ran a trace on the connection. I found that the window o/s is connect to sql (may be due to clusters).

Also, FYI we use Veritas Netback. Could that be the issue?
george sibbald
george sibbald
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25062 Visits: 13698
Ah, the isalive process is getting there first. I think you need to go to cluster admin and take sql resources offline first (to take cluster out of it) and then restart sql is single user mode.
see http://www.sql-server-performance.com/faq/cluster_restore_master_database_p1.aspx

the ssms bit might still be true so use SQLCMD if you have to

---------------------------------------------------------------------
Dipali-436410
Dipali-436410
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 175
George,

Thanks a lot for that link. you were true thats why i need to do with a lil tweak. This is what I did:

A. Bring all the resources of the SQL Server Group in the cluster offline (except for Disk drive and IP Address).
B. go to command prompt and start sql server using the following command sqlsrvr.exe -m (single user mode)
C. Connect to sqlcmd using ip address of the sql service sqlcmd -S xxx.xx.xx.xx (ip)

I was then able to restore my database. Thanks a lot for your prompt responses.
george sibbald
george sibbald
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25062 Visits: 13698
no probs. thanks for posting the full resolution.

---------------------------------------------------------------------
Vivien Xing
Vivien Xing
Hall of Fame
Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)

Group: General Forum Members
Points: 3752 Visits: 2204
Does anyone here have rebuilt (not restore) system databases successfully? It is still a mystery for me.
http://www.sqlservercentral.com/Forums/Topic378850-146-1.aspx
umar iqbal
umar iqbal
SSC-Addicted
SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)SSC-Addicted (456 reputation)

Group: General Forum Members
Points: 456 Visits: 395
i have cluster 2005 64 bit . i need to move all system datbases to other directory. here are the steps i follow but it did not work.
i took sql related service offline from cluster admin.
i went to surface area configuration and change master databse files to new location
started sql from command prompt with -m -T3806 flags (single user mode)
i open QA and updated data and log file for all rest of three systyem datbaes by deattaching and . sattaching and alter datbase command.
i run sp_helpdb for all db and confirmed new file location for all system datbase.
i stopped sql server and the started in normal mode and confirm the same again.
now stoope sql services again and brought sql services from cluster admin
to my shock when i connected with cluster and chek path for system datbases it was changed back to old one for all system databases.
yes i did copy all file including resouce dtabse to new location
now the problem how i should have changed it that virtual server show my new location when i connect to virtual sql server


any clue? please advise.

Crazy Alien

Umar Iqbal
TRACEY-320982
TRACEY-320982
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3180 Visits: 1014
A. Bring all the resources of the SQL Server Group in the cluster offline (except for Disk drive and IP Address).
B. go to command prompt and start sql server using the following command sqlsrvr.exe -m (single user mode)
C. Connect to sqlcmd using ip address of the sql service sqlcmd -S xxx.xx.xx.xx (ip)

I was then able to restore my database. Thanks a lot for your prompt responses.


When you say able to restore - did you use sqlcmd script to do a restore of the master or
at this stage did you manage to get up SSMS and do it through GUI
Just curious.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search