[ale] ext3 fragmentation

Chris Ricker kaboom at oobleck.net
Mon Jul 25 16:33:07 EDT 2005


On Mon, 25 Jul 2005, Jim Popovitch wrote:

> I've long heard that there is no need to "defrag" ext2 and ext3
> partitions..... So, should I worry about this one:
> 
>    $ fsck.ext3 -f /dev/md12
>    e2fsck 1.27 (8-Mar-2002)
>    Pass 1: Checking inodes, blocks, and sizes
>    Pass 2: Checking directory structure
>    Pass 3: Checking directory connectivity
>    Pass 4: Checking reference counts
>    Pass 5: Checking group summary information
>    /dev/md12: 287/525312 files (62.7% non-contiguous), 410249/1048576
> blocks

use filefrag to see if you have fragmented files

if you do,

# cp fragfile newfile ; rm fragfile ; mv newfile fragfile

fixes (assuming sufficient free blocks for newfile not to be fragmented)

later,
chris



More information about the Ale mailing list