I am trying to improve performance on my sql server by moving the log files
to a different drive than my mdf files. I have done this sucessfuly with my
user databases, but wanted some reassurance before trying the system
databases (i.e. Master, Model, MSDB and TempDB). I have done this with a
detach, and a attach database from Enterprise Administrator (I'm not actually
a dba ).
Is there a recommened method (if it's possible) to move the log files of the
system databases?
TIA,
JerameThere is how to move user DBs as well as system DBs and trans logs
between devices.
Regards.
"Jerame" wrote:
> I am trying to improve performance on my sql server by moving the log files
> to a different drive than my mdf files. I have done this sucessfuly with my
> user databases, but wanted some reassurance before trying the system
> databases (i.e. Master, Model, MSDB and TempDB). I have done this with a
> detach, and a attach database from Enterprise Administrator (I'm not actually
> a dba ).
> Is there a recommened method (if it's possible) to move the log files of the
> system databases?
> TIA,
> Jerame|||Sorry, the link is here
http://support.microsoft.com/default.aspx?scid=kb;en-us;224071#XSLTH3188121122120121120120
Regards.
"Jerame" wrote:
> I am trying to improve performance on my sql server by moving the log files
> to a different drive than my mdf files. I have done this sucessfuly with my
> user databases, but wanted some reassurance before trying the system
> databases (i.e. Master, Model, MSDB and TempDB). I have done this with a
> detach, and a attach database from Enterprise Administrator (I'm not actually
> a dba ).
> Is there a recommened method (if it's possible) to move the log files of the
> system databases?
> TIA,
> Jerame|||Hi
Master, Model and MSDB are so very low thoughput DB's that they are not an
issue with performance.
Temp DB:
From BOL:
I. Move the tempdb database
This example moves tempdb from its current location on disk to another disk
location.
Note This example is applicable to tempdb only. To move user databases, use
sp_detach_db and sp_attach_db. For more information, see Attaching and
Detaching a Database.
Determine the logical file names for the tempdb database.
USE tempdb
GO
EXEC sp_helpfile
GO
--The logical name for each file is contained in the NAME column.
Change the location of each file using ALTER DATABASE.
USE master
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = 'E:SQLData\tempdb.mdf')
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = templog, FILENAME = 'E:SQLData\templog.ldf')
GO
Stop and restart SQL Server.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jerame" <Jerame@.discussions.microsoft.com> wrote in message
news:671E1EBA-D3DD-43B4-99EA-A48352460CF9@.microsoft.com...
>I am trying to improve performance on my sql server by moving the log files
> to a different drive than my mdf files. I have done this sucessfuly with
> my
> user databases, but wanted some reassurance before trying the system
> databases (i.e. Master, Model, MSDB and TempDB). I have done this with a
> detach, and a attach database from Enterprise Administrator (I'm not
> actually
> a dba ).
> Is there a recommened method (if it's possible) to move the log files of
> the
> system databases?
> TIA,
> Jerame|||There's a code error in the BOL example that I should point out. The
Filename specified should have a \ after the drive letter (E:\...)
You may also want to look at this KB article:
http://support.microsoft.com/?id=224071
--
Gail Erickson [MS]
SQL Server Documentation Team
This posting is provided "AS IS" with no warranties, and confers no rights
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:umLWgcjZFHA.3876@.TK2MSFTNGP12.phx.gbl...
> Hi
> Master, Model and MSDB are so very low thoughput DB's that they are not an
> issue with performance.
> Temp DB:
> From BOL:
> I. Move the tempdb database
> This example moves tempdb from its current location on disk to another
> disk location.
> Note This example is applicable to tempdb only. To move user databases,
> use sp_detach_db and sp_attach_db. For more information, see Attaching and
> Detaching a Database.
> Determine the logical file names for the tempdb database.
> USE tempdb
> GO
> EXEC sp_helpfile
> GO
> --The logical name for each file is contained in the NAME column.
> Change the location of each file using ALTER DATABASE.
> USE master
> GO
> ALTER DATABASE tempdb
> MODIFY FILE (NAME = tempdev, FILENAME = 'E:SQLData\tempdb.mdf')
> GO
> ALTER DATABASE tempdb
> MODIFY FILE (NAME = templog, FILENAME = 'E:SQLData\templog.ldf')
> GO
> Stop and restart SQL Server.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jerame" <Jerame@.discussions.microsoft.com> wrote in message
> news:671E1EBA-D3DD-43B4-99EA-A48352460CF9@.microsoft.com...
>>I am trying to improve performance on my sql server by moving the log
>>files
>> to a different drive than my mdf files. I have done this sucessfuly with
>> my
>> user databases, but wanted some reassurance before trying the system
>> databases (i.e. Master, Model, MSDB and TempDB). I have done this with a
>> detach, and a attach database from Enterprise Administrator (I'm not
>> actually
>> a dba ).
>> Is there a recommened method (if it's possible) to move the log files of
>> the
>> system databases?
>> TIA,
>> Jerame
>|||Thanks Mike. I guess I'm looking for some ways to improve the perofrmance,
which may now lead to a new post.
I have already seperated my user databases mdf and ldf files, but I still
see high Ave. Disk Queue Length in Perf Mon. I'm connected to a SAN, so I
have my mdf files on one logical drive, which is using one path (hba) to the
SAN. I have the ldf files now on another logical disk, using my other patch
(second hba) back to the SAN.
Durring Transaction Log backups (trn) or full backups (bak) I see the Ave.
Queue Length skyrockets to 50 and 60 (sometimes higher) for a few minutes
(the duration of the backup). I am also receiving traps from my server the
the logical disk is busy ( I set thresholds of warnings at 80%, and critical
at 90%).
I have a seperate mirrored OS drive. More than enough physical ram, as well
as swap file space. Any suggestions?
Thanks,
Jerame
"Mike Epprecht (SQL MVP)" wrote:
> Hi
> Master, Model and MSDB are so very low thoughput DB's that they are not an
> issue with performance.
> Temp DB:
> From BOL:
> I. Move the tempdb database
> This example moves tempdb from its current location on disk to another disk
> location.
> Note This example is applicable to tempdb only. To move user databases, use
> sp_detach_db and sp_attach_db. For more information, see Attaching and
> Detaching a Database.
> Determine the logical file names for the tempdb database.
> USE tempdb
> GO
> EXEC sp_helpfile
> GO
> --The logical name for each file is contained in the NAME column.
> Change the location of each file using ALTER DATABASE.
> USE master
> GO
> ALTER DATABASE tempdb
> MODIFY FILE (NAME = tempdev, FILENAME = 'E:SQLData\tempdb.mdf')
> GO
> ALTER DATABASE tempdb
> MODIFY FILE (NAME = templog, FILENAME = 'E:SQLData\templog.ldf')
> GO
> Stop and restart SQL Server.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Jerame" <Jerame@.discussions.microsoft.com> wrote in message
> news:671E1EBA-D3DD-43B4-99EA-A48352460CF9@.microsoft.com...
> >I am trying to improve performance on my sql server by moving the log files
> > to a different drive than my mdf files. I have done this sucessfuly with
> > my
> > user databases, but wanted some reassurance before trying the system
> > databases (i.e. Master, Model, MSDB and TempDB). I have done this with a
> > detach, and a attach database from Enterprise Administrator (I'm not
> > actually
> > a dba ).
> >
> > Is there a recommened method (if it's possible) to move the log files of
> > the
> > system databases?
> >
> > TIA,
> > Jerame
>
>
No comments:
Post a Comment