[Ocfs2-users] No Space left on the device.

Tao Ma tao.ma at oracle.com
Thu Mar 4 23:46:20 PST 2010



Brad Plant wrote:
> Hi Tao,
> 
> On Fri, 05 Mar 2010 15:03:50 +0800
> Tao Ma <tao.ma at oracle.com> wrote:
> 
>>> 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.
> 
> Ok, so it will defrag files, but will it help with the inability to write to the file system issue reported in http://oss.oracle.com/bugzilla/show_bugcgi?id=1189 ?
yes, it helps to defrag files by cp.
But the root cause for bug 1189 is that the old mechanism is somehow 
making the volume more fragmented. So the real solution has to be a bug 
fix in kernel, which like Sunil said, is ongoing.

Regards,
Tao



More information about the Ocfs2-users mailing list