[ale] Ubuntu Linux Defrag EXT4

Lightner, Jeff jlightner at water.com
Mon Sep 13 09:30:53 EDT 2010


I was under the impression there was little value in defragging a
journaled filesystem.   Even the commercial Veritas Filesystem (vxfs)
has a defrag method available but in the few times I've decided it might
be worthwhile to try defragging I've seen no real improvement in the way
the filesystem operated before and after the defrag.

 

________________________________

From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
Richard Faulkner
Sent: Monday, September 13, 2010 9:10 AM
To: Atlanta Linux Enthusiasts - Yes! We run Linux!
Subject: Re: [ale] Ubuntu Linux Defrag EXT4

 

Okay...and for those who are new to the GNU world (on this level)...me
for one...

Paul:  You're doing a defrag operation on a mounted drive?  I've done
this a billion times I swear on M$ but not Linux (don't feel a need to).
Am I correct in thinking that to do an actual defrag on Linux you need
to unmount the drive in question and do the operation from a bootable
disc?  Am I reading this correctly that your doing a disk fragmentation
check on a mounted drive and it "no-likey" that because it is mounted?

I'm headed out-of-town for a day so won't be checking the thread until
my return...this is getting interesting!  (As things often do around
here -- In a good way!)  : )

Cya'll when I get back!    --Rich in Lilburn



-----Original Message-----
From: Paul Cartwright <ale at pcartwright.com
<mailto:Paul%20Cartwright%20%3cale at pcartwright.com%3e> >
Reply-to: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org>
To: Atlanta Linux Enthusiasts - Yes! We run Linux! <ale at ale.org
<mailto:Atlanta%20Linux%20Enthusiasts%20-%20Yes!%20We%20run%20Linux!%20%
3cale at ale.org%3e> >
Subject: Re: [ale] Ubuntu Linux Defrag EXT4
Date: Mon, 13 Sep 2010 06:53:30 -0400

 
On Sun September 12 2010, Ed Cashin wrote:
> I found out recently that you can see exactly what's fragmentated
> with one command.
> 
>   e2fsck -n -E fragcheck {device}
> 
> I believe it works on ext4, but I haven't tried it.
YIPES! works on ext3!
I good good news & bad news..
mount
/dev/sda6 on / type ext3 (rw,usrquota,grpquota,errors=remount-ro) 
/dev/sda7 on /home type ext3 (rw)
 
 
 #e2fsck -n -E fragcheck /dev/sda7
e2fsck 1.41.11 (14-Mar-2010)
Warning!  /dev/sda7 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem
check.
/dev/sda7: clean, 274376/21872640 files, 30881155/43722897 blocks
 
 
 
# e2fsck -n -E fragcheck /dev/sda6
e2fsck 1.41.11 (14-Mar-2010)
Warning!  /dev/sda7 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem
check.
/dev/sda7: clean, 274376/21872640 files, 30881155/43722897 blocks
(SKIP LOTS of lines...)
Free blocks count wrong (1395294, counted=1395257).
Fix? no
 
Inode bitmap 
differences:  -98843 -771568 -902896 -(902899--902900) -902965 -904492
-(904551--904555) -(904557--904558) -922016 -922018 -925348
-(925354--925355) -952787 -968546 -968973 -968975 -(969647--969648)
-(969650--969651) -1625307 -1625323 -1625553 -1626351 -1626358 -1626361
-1626409 -1855116 -1855359 -1856395 -2019692 -2021651 -2216788 -2217096
-2217264 -2217294 -2217495 -2217572 -2217736 -2217803 -2217897 -2218290
-2218474 -2218500 -2282147 -2287055 -2299185 -2299205
Fix? no
 
Free inodes count wrong for group #55 (8466, counted=8464).
Fix? no
 
Free inodes count wrong for group #56 (10358, counted=10359).
Fix? no
 
Directories count wrong for group #58 (39, counted=38).
Fix? no
 
 
/dev/sda6: ********** WARNING: Filesystem still has errors **********
 
/dev/sda6: 521067/2626560 files (6.7% non-contiguous), 3847586/5242880
blocks
 
## uptime
 06:52:41 up 28 days, 44 min,  7 users,  load average: 0.03, 0.24, 0.27
 
so, after you do the fsck fragcheck... and it fails...
 
Proud partner. Susan G. Komen for the Cure.
 
Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100913/0ec8a063/attachment-0001.html 


More information about the Ale mailing list