Server 2008 does not show the fragmentation percentage.
Unlike Windows Server 2003 and Windows Server 2008 R2, Server 2008 -like Windows Vista- does not show a file fragmentation percentage or report, it only advises whether you should or shouldn’t defrag your harddrive. This can be an issue if you need to improve performance of servers under high-load and/or don’t want to stress your shared storage by defragmenting drives that don’t need defragmentation. Luckily this has been solved in Server 2008 R2.
Solution: Use the command line tool
To see the file fragmentation percentage in Server 2008, instead of the Disk Defragmenter, use the ‘defrag’ tool in your command prompt:
- Open a command prompt
- Type defrag [driveletter] -a -v to analyse your disk
- The command prompt will return something like the screenshot below:
(As you can see, this server needs a defrag quite badly )
You can use the following commandline options:
-A Perform an analysis of the specified volume.
-C Defragment all disks.
-F Force defragmentation of a volume even when low on space.
-R Perform a partial defragmentation, consolidating fragments smaller than 64 MB (default).
-V Set verbose mode for detailed output during analysis and/or defragmentation.
-W Performs full defragmentation, consolidating all fragments regardless of fragment size.
Now to defragment your drive, simply type defrag [driveletter] -w to defragment your harddrive.