Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is defragging a W2K3 server running SQL a bad thing to do?

Status
Not open for further replies.

Strollski13

Technical User
Sep 19, 2007
4
0
0
US
I recently started at a new company and was asked to trouble shoot a slow SQL data base server. I checked the drive that the SQL data bases are on and it was 47% fragmented. In the the past what I've done was to defrag the SQL data bases from with in SQL then stop all instances of SQL and defrag the drive using plain old defrag.exe. I know there are commercial defrag utilities but they're not in the budget. I've never had an issue doing this but when I suggested doing that here folks freaked out. Can I get a sanity check? Has any one else had issues running defrag.exe on a Windows Server 2003? Is this not recommended?

Thank you in advance.
 
Can't speak for Win OS defrag, as to SQL directly but I have never had a problem with defragmenting drives...

I have defraging software call Diskeeper which does a boot time defrag on ALL files, including normally open SQL files, had no issues after hundreds of runs. Basically defrags SQL with instances/services stopped. From my observations SQL does speed up when defraged.

Diskeeper has a link about defragging SQL....




........................................
Chernobyl disaster..a must see pictorial
 
Files aren't open at boot time, so the "open file" issue isn't part of that. Boot time defragging is fine if you want the down time associated with it. Most orgs don't want that on a recurring basis, as that affects SLAs.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top