Files Won't Defragment

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

Files Won't Defragment

Postby Lucky Stiff » Tue Jul 29, 2008 10:24 am

Lately when I try to defragment my hard drive there are many Postgres files which will not go through the process. Is there a fix for this?
Lucky Stiff
 
Posts: 16
Joined: Thu Jan 24, 2008 9:03 pm

Re: Files Won't Defragment

Postby WhiteRider » Tue Jul 29, 2008 3:16 pm

I'm not 100% sure about this, but I suspect postgres files can't be defragmented because they are 'managed' files. Postgres is in charge of their layout, and if they get moved around it could cause problems.
Of course, it might just be that they can't be defragged while the postgres service is running..
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Files Won't Defragment

Postby keggler » Tue Jul 29, 2008 4:54 pm

1. do a cluster & analyse first.

2. defrag after stopping the postgres service.

3, if that doesn't get 'em, defrag in safe mode.

4, if that still doesn't get 'em, get contig, the single file defragger from sysinternals...


susan
keggler
 
Posts: 640
Joined: Sun Jun 01, 2008 4:53 am

Re: Files Won't Defragment

Postby six4withafro » Tue Jul 29, 2008 7:02 pm

you also need a decent amount of empty space on the hdd/partition being defragged for these files to defrag completely. i use executive software diskeeper, fwiw.
six4withafro
 
Posts: 199
Joined: Fri Mar 07, 2008 3:33 pm

Re: Files Won't Defragment

Postby Lucky Stiff » Tue Jul 29, 2008 7:03 pm

keggler wrote:1. do a cluster & analyse first.

2. defrag after stopping the postgres service.

3, if that doesn't get 'em, defrag in safe mode.

4, if that still doesn't get 'em, get contig, the single file defragger from sysinternals...


susan

Thanks. Cluster/analyze had no effect. How does one stop the postgres service and does it need to be restarted after the defrag process? How does one enter safe mode?
Lucky Stiff
 
Posts: 16
Joined: Thu Jan 24, 2008 9:03 pm

Re: Files Won't Defragment

Postby WhiteRider » Wed Jul 30, 2008 4:02 am

To stop postgres:
Start -> Programs -> Postgres -> Stop Service

Safe Mode is described here:
viewtopic.php?f=17&t=8753&p=40321&hilit=+safe+mode#p40321
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 14 guests