July 26, 2006 at 2:39 pm
Hi all somehow my sql server is not starting up!! in event viewer it says that it could not find the tempdb file!! what can id do to reslove it... Thanks |
July 26, 2006 at 2:52 pm
I would first check and make sure you did not lose a disk. Then look in the folder where you would normally keep your TempDB and make sure it is truely gone. It will be in the default installation data folder unless you've moved it off onto it's own RAID/drive. If it is truely missing, grab a copy of a TempDB from another server if you can. Keep in mind any sizing changes you may have made to your TempDB and make sure the new Tempdb.mdf is sized correctly for your needs.
July 26, 2006 at 3:03 pm
I am missing that drive!! so how can i put new temp db file from another db server and also can i re direct it so can server get restarted!!
Thanks
July 26, 2006 at 3:14 pm
Unless there is some magical way to make SQL Server look for the tempdb in a new location, you are down until you repair/replace the drive. SQL Server is looking for the TempDB in a specific location. Copying a new TempDB will not do you any good because SQL Server is looking for the TempDb in a specific location. If that location does not exist due to the drive being down, it will not start. Was your TempDb not in it's default location? It sounds like you've moved it out to it's own disk for performance reasons. I would recommend some sort of redundancy (I would use mirroring) on your TempDB disk in the future.
July 26, 2006 at 3:18 pm
Rebuilding your master database may get you going again. You may want to look into that option as well.
July 26, 2006 at 3:32 pm
Sorry to keep bombarding you, but check this out. You may be able to get back up without repairing/replacing your disk.
http://dis4ea.blogspot.com/2005/07/tempdb-and-missing-device.html
July 26, 2006 at 3:50 pm
John,
Not in this situation myself, but saved the web page
http://dis4ea.blogspot.com/2005/07/tempdb-and-missing-device.html
to my docs and this gives me what I need in the future if I get the call in the weee hours
July 26, 2006 at 5:12 pm
This is the best way that I have found to move a Tempdb to a new drive location when a drive fails. Scroll down on the article until you see the section for moving the tempdb.
July 27, 2006 at 12:20 am
Hi,
If you are using SQL Server 2005 the procedure of rebuilding your master and thus resetting the tempdb location. You now have to rebuild it from the command prompt.
FROM BOL:
start /wait <CD or DVD Drive>\setup.exe /qn INSTANCENAME=MSSQLSERVER REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=<NewStrongPassword> SQLCOLLATION=<NewSystemCollation>
Read the topic "How to: Install SQL Server 2005 from the Command Prompt" in the Books Online carefully since you will have to do some additional step to get back to the 'old' situation. We have succesfully used this procedure to recover from a missing tempdb device.
But being a SQL Server 7/2000 forum I suppose the procedure on my blog should do the trick (since we also used this succesfully on another server). We've had some bad luck with TempDB 🙂
HTH
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply