1 |
On Fri, Nov 28, 2008 at 6:46 AM, Alan McKinnon <alan.mckinnon@×××××.com> wrote: |
2 |
> On Friday 28 November 2008 13:14:42 Dale wrote: |
3 |
>> If this is a little high, what would be the best way to defrag it? |
4 |
> |
5 |
> By not defragging it. |
6 |
> |
7 |
> It's not Windows. Windows boxes needs defragging not because fragmentation is |
8 |
> a huge problem in itself, but because windows filesystems are a steaming mess |
9 |
> of cr@p that do little right and most things wrong. Defrag treats the |
10 |
> symptom, not the cause :-) |
11 |
> |
12 |
> Reiser tends to self-balance itself out. What is especially noteworthy is that |
13 |
> none of the general purpose Linux filesystems provide a defrag utility. |
14 |
> Theodore 'Tso and Hans Reiser are both exceptional programmers, if there was |
15 |
> a need for such a tool they would assuredly have written one. They did not, |
16 |
> so there probably isn't. |
17 |
> |
18 |
> Any Linux defrag tool you encounter will have been written by a third party |
19 |
> separate from the developers. It will move blocks around and update |
20 |
> superblocks, the drive will have to be unmounted for that to work and a |
21 |
> slight misunderstanding of how to do it will ruin data. |
22 |
> |
23 |
> Are you willing to take the very real risk of data corruption? |
24 |
> |
25 |
>> Is |
26 |
>> there a best way? I do have a second hard drive that I back up too. |
27 |
>> Both Drives are 80Gbs and I do have a set of DVD back ups as well. I |
28 |
>> can update those pretty quick. |
29 |
> |
30 |
> |
31 |
> |
32 |
> -- |
33 |
> alan dot mckinnon at gmail dot com |
34 |
> |
35 |
> |
36 |
|
37 |
While not trying to incite flames here... xfs isn't general purpose? |
38 |
xfs_fsr defrags xfs partitions while they're mounted and is designed |
39 |
to be used from cron (it's in xfsdump, not xfsprogs). File |
40 |
fragmentation, while a fact of life on any filesystem that sees any |
41 |
real use, does slow access times, as the drive head has to jump from |
42 |
one place to another, so a lot of fragmentation is a bad thing... but |
43 |
as you say, we're not dealing with FAT based FS's here, so severe |
44 |
fragmentation only shows itself on very full filesystems. I very |
45 |
rarely see over 80% usage of my filesystems and have never |
46 |
consistently checked fragmentation levels, though, so I can't say |
47 |
whether xfs's being the exception on having a tool for the job means |
48 |
it particularly needed one... |
49 |
|
50 |
-- |
51 |
Poison [BLX] |
52 |
Joshua M. Murphy |