HiAll, For my mailserver i am using ocfs2 filesystem configured on san. Now my mail delivery application is sometimes complaining No Space left on the device, even though there is enough space and inodes. Can anyone help me to solve this issue. Rgds, Aravind M D
Hi Aravind, Sounds like you might have hit the free space fragmentation issue: http://oss.oracle.com/bugzilla/show_bug.cgi?id=1189 I'm sure that if you post output of stat_sysdir.sh (http://oss.oracle.com/~seeda/misc/stat_sysdir.sh) one of the ocfs2 devs will be able to confirm this. *If* it is this problem, removing some node slots will help. That is of course if you have more node slots that you need. I think 8 are created by default. Cheers, Brad On Thu, 4 Mar 2010 10:28:49 +0530 (IST) "Aravind Divakaran" <aravind.divakaran at yukthi.com> wrote:> HiAll, > > For my mailserver i am using ocfs2 filesystem configured on san. Now my > mail delivery application is sometimes complaining No Space left on the > device, even though there is enough space and inodes. Can anyone help me > to solve this issue. > > > Rgds, > Aravind M D > > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100304/b8bdcc34/attachment.bin
Hi Brad, Brad Plant wrote:> Hi Tao, > > On Fri, 05 Mar 2010 14:33:36 +0800 > Tao Ma <tao.ma at 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
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 ? Cheers, Brad -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100305/b72e8a3c/attachment.bin
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