Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Disk Maintenance

Author  Topic 

SamC
White Water Yakist

3467 Posts

Posted - 2004-09-06 : 13:05:35
Outside of DBCC REINDEX and DBCC INDEXDEFRAG commands. Should a windows DEFRAG be run occasionally on the database drive? Is there any DB performance benefit to defraging a hard drive and does SQL need to be stopped to defrag the DB?

Sam

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-09-06 : 22:53:24
You do need to shut off the services. Otherwise, the defrag would never work correctly. It's recommended to do it unless your enclosure or array does it for you. Many of the high-end enclosures and pretty much all the SAN's take care of it for you.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2004-09-07 : 00:12:55
Thanks Derrick. I guess I'll have to find a convenient time (not) to stop the SQL Server for an hour or so.

Sam
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-09-07 : 01:42:40
I use the contig tool from www.sysinternals.com to defrag .dbf and .ldf files when they get too fragmented. btw, it is a free tool and it runs from the command line.



-ec
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2004-09-07 : 08:59:47
Interesting tools. Do you use any others regularly other than contig?

Sam
Go to Top of Page

ze
Starting Member

5 Posts

Posted - 2004-09-07 : 13:13:32
Nobody has answered the main question yet,"Should a windows DEFRAG be run occasionally on the database drive? "
Thanks,
ZE

ze
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-09-07 : 13:21:30
quote:
Originally posted by ze

Nobody has answered the main question yet,"Should a windows DEFRAG be run occasionally on the database drive? "
Thanks,
ZE

ze



Derrick answered it already:

quote:


It's recommended to do it unless your enclosure or array does it for you.




Tara
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-09-07 : 17:06:51
quote:
Originally posted by SamC

Interesting tools. Do you use any others regularly other than contig?



Yes, their entire suite of tools is indespensible. Some of the tools go a little out of the DBA realm, but are valuable nonetheless.

I would say that the pstools collection, process explorer, filemon and regmon are tools that everyone should use and be somewhat familiar with.



-ec
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-09-07 : 17:07:15
quote:
Originally posted by ze

Nobody has answered the main question yet,"Should a windows DEFRAG be run occasionally on the database drive? "
Thanks,
ZE




ummm, read the first reply.


-ec
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-09-07 : 18:58:37
I use all the tools they have. process explorer is really good.


MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -