Moving tempdb in cluster environment

  • Hi,

    does anyone know how to move the tempdb to another drive/folder in a cluster environment? the usual alter database does the trick, but when stopping sql server and trying to start, it WON'T start. I can't find anything specific to cluster environment. If anyone has dealt with this, please shed some light.

    Thank you

  • That should work, there is nothing about a cluster that changes the nature of tempdb.

    The only possibility I can think of is that you should verify that the volume to which you moved tempdb is a cluster resource and that the SQL Server resource is dependent on it.

    /*****************

    If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek

    *****************/

  • Assuming you used this proc from BOL, the filename needs to be modified to 'E:\SQLData\tempdb.mdf', same for log. Otherwise as dcpeterson described!

    1. Determine the logical file names for the tempdb database.
    USE tempdbGOEXEC sp_helpfileGO--The logical name for each file is contained in the NAME column.

    1. Change the location of each file using ALTER DATABASE.
    USE masterGOALTER DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'E:SQLData\tempdb.mdf')GOALTER DATABASE  tempdb MODIFY FILE (NAME = templog, FILENAME = 'E:SQLData\templog.ldf')GO

    1. Stop and restart SQL Server.


    Kindest Regards,

    The art of doing mathematics consists in finding that special case which contains all the germs of generality.

  • This may be a stupid comment, but you must be sure you are moving it to a clustered resource, not a local drive.

    Terry.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply