Hi Brad,

Brad Plant wrote:
> Hi Tao,
> 
> On Fri, 05 Mar 2010 14:33:36 +0800
> Tao Ma <tao...@oracle.com> wrote:
> 
>> Another way is that you can cp the file to another volume, remove it and 
>> then cp back. It should be contiguous enough.
> 
> Assuming we *can* still write to the FS (i.e. as more of a preventative 
> action), would the following do the same?
> 
> cp -a a b
> mv b a
> 
> Can the above work as a *hack* online defrag? Will this reduce the amount of 
> free space fragmentation and therefore stop (or reduce the chance of) this 
> problem from occurring? Would we need to do it to the entire file system or 
> just a few larger files?
yeah, that should work.
you can use debugfs.ocfs2 to see whether a file is more fragmented or not.

Regards,
Tao
> 
> Cheers,
> 
> Brad

_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users

Reply via email to