[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: heavily fragmented file system.. How to defrag it on-line??



On Mar 03, 2004  15:01 -0800, Guolin Cheng wrote:
>  I got machines running continuously for long time, but then the underlying
>  ext3 file systems becomes quite heavily fragmented (94% non-contiguous).
>  We just don't have a chance to shutdown the machines since they are always busy..
>  Anyone have any ideas on defraging ext3 file systems on-line? Thanks a lot.

Why do you think you need to defragment?  Do you notice performance loss, or
is it just because of the e2fsck number?  Given that you have only 1225 files
and 50GB of space usage it is almost guaranteed that each file will not be
contiguous.

> -----------------------------------------------------------------------------
> The following is the defragment reported by e2fsck.. 
> 
> arc158.example.com guolin 135% sudo e2fsck -f -n -d /dev/hda9
> e2fsck 1.27 (8-Mar-2002)
> Warning!  /dev/hda9 is mounted.
> Warning: skipping journal recovery because doing a read-only filesystem check.
> 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
> /0: 1225/8601600 files (94.3% non-contiguous), 12724107/17181982 blocks

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]