Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-29-2009, 10:41 AM   #16
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130

Dump ext3, use xfs.

Edit: oh wait, I just realize that CentOS does not provide xfs - which means you'll need to dump CentOS or compile your own kernel but I don't know whether those are acceptable options.

Last edited by jay73; 03-29-2009 at 10:46 AM.
Old 03-29-2009, 11:18 PM   #17
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,674
Blog Entries: 4

Rep: Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021Reputation: 3021
When hard drives were much smaller than they are today, they were routinely close to being "completely filled up." When files were added or expanded, it was fairly unlikely that sufficient large blocks of contiguous free space existed, anywhere, period. So, "fragmentation" was a fact-of-life, as much because of the problem of "being almost completely filled up" as anything else.

These days, space is usually plentiful. But disk and disk-controller hardware is a lot smarter, too. There is often copious amounts of unused RAM which can be devoted to file-buffers. So the practical impact of fragmentation is for the most part "gone."

Does fragmentation continue to exist? As I said earlier, yes, but it's academic: nobody's "screaming." Some filesystems and storage systems rearrange files on the media for various reasons, but the payoff of a "disk defragmenter" program has vanished.
Old 07-14-2011, 12:03 PM   #18
LQ Newbie
Registered: Mar 2004
Posts: 20

Rep: Reputation: 3
Originally Posted by acid_kewpie View Post
When I was in secondary school I was taught loads of stuff in science class, mainly about electrons and atoms and orbits. Then I get to university and am told "yeah, that was kinda nonsense, just a teaching aid and not at all true, but you couldn't handle the truth" by the lecturers there. At the risk of aligning myself to a university lecturer, I'd say this is a similar thing...
Are you saying there aren't really electrons and atoms and orbits? I think even in university, that is the official story.

Unless you get into quantum mechanics, which is highly specialized.
Old 07-14-2011, 01:52 PM   #19
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Do you really have to revive a thread that has been sleeping for 2 years to react on a post that's over 3 years old
Old 07-14-2011, 02:08 PM   #20
LQ Newbie
Registered: Mar 2004
Posts: 20

Rep: Reputation: 3
Originally Posted by Wim Sturkenboom View Post
Do you really have to revive a thread that has been sleeping for 2 years to react on a post that's over 3 years old
LOL. The thread was sleeping so soundly and happily for 2 years! I am just a troublemaker. We can drop it.
Old 07-14-2011, 05:39 PM   #21
Registered: Mar 2008
Posts: 17,169

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
In the very old days when I went to school on this stuff this is the answer I was told.

Backup to tape each night and restore in morning. Backup with tar to tape puts every file in order (some order but not fragmented).

Everyday your system will be both backed up and tested and defragged.

We still back up some systems to tape but the sad fact is tapes can't keep up with the amount or speed needed anymore so you have to back up to some networked or attached raid if you can do it.

Instead of backup you may be able to use other tools depending on what is going on. VM's can compact virtual disks and you can still tar over to a image and back. Might be other ways.

Cat and chunk may be able to fix some single files.

Last edited by jefro; 07-14-2011 at 05:41 PM.
1 members found this post helpful.
Old 07-14-2011, 10:53 PM   #22
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I note that the next Fedora release will dump the whole ext file system tree in favor of the btrfs (which is fully supported in the new 3.0 Linux kernels). My understanding (from reading, no experience) is that you really don't need to defragment btrfs file systems because the storage medium usage (and access) is optimized by the file system's internal structure.

Since Fedora is Red Hat's "test bed" for new things, if the Fedora experience is positive, newer Red Hat (and CentOS) releases may move to the btrfs in a year or two.
Old 01-11-2012, 04:55 PM   #23
LQ Newbie
Registered: Jul 2006
Distribution: Debian for Sparc, OpenSUSE 11.2, Solaris 9, Debian/x86, Ubuntu Server
Posts: 19

Rep: Reputation: 1
Originally Posted by terfy View Post
Hello guys..

I'm wondering about this..
Everyone says that it is not necessary to defrag ext3 filesystem.. but look at this.

"420 extents found, perfection would be 37 extents"
its a 4gig file..

why is it not necessary to defrag this file ? or any other files..
I just don't get why there is no defrag tool for Linux.. I don't get it.
First of all, defragmenting a filesystem in Linux while it is mounted could be a very bad thing.

Secondly, 9 out of 10 times filesystems under Linux generally DON'T need to be defragmented. However, since you seem adamant about making this happen for you, may I suggest the following link:

Just remember that it is a good idea to have a least 10% of the filesystem you want defragmented available for the entire process to be successful. And don't forget, UNMOUNT THE AFFECTED FILESYSTEM BEFORE YOU RUN DEFRAGMENT!
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ext3 super block get modified after mkfs.ext3 amitpardesi Programming 1 04-25-2008 11:42 AM
USB Hardrive with FAT32 and ext3 partitions in need of repair/defrag MiniDev Linux - Hardware 6 02-15-2008 04:05 PM
Defrag (NOT for ext2/ext3, for FAT32 partitions) Red Barchetta Linux - Software 2 03-31-2007 08:01 AM
Ext3 & tune2fs tweaking question for ext3 experts wrc1944 Linux - General 8 12-11-2005 08:45 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration