<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><br>&nbsp;&nbsp; Funny, I could not find a option to specify the number of inodes or the inodes/bytes ratio on mkfs.ocfs2?<br><br>Regards,<br>Luis<br><br><br>--- On <b>Tue, 7/22/08, jab@ufba.br <i>&lt;jab@ufba.br&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: jab@ufba.br &lt;jab@ufba.br&gt;<br>Subject: [Ocfs2-users] Recommended block size for a mail environment<br>To: ocfs2-users@oss.oracle.com<br>Date: Tuesday, July 22, 2008, 9:22 AM<br><br><pre>Hello all,<br><br>I have a mail environment, with a situation seemed with a previous  <br>mail "Different size with du and ls". My environment is:<br><br>Debian Etch 4.0<br>Postfix 2.3.8-2<br>ocfs2-tools 1.2.1-1.3<br>kernel 2.6.18-4-amd64<br><br>My "df -h" shows me the follow:<br><br>df -Th<br>/dev/sdb1    ocfs2    1,0T  894G  131G  88%
 /mails<br><br>df -Thi<br>File Syst.   Type      Inodes   IUsed IFree IUse% Mount on<br>/dev/sdb1    ocfs2       16M     14M    2,1M   88% /mails<br><br>but when I do a "du -sh . /mails" it shows me 480GB, so much<br>different  <br>from 849G. The OCFS2 block size is 4K. I made a script to average the  <br>medium mail size, and it's the follow:<br><br>0k to 1k - 8%<br>0k to 2k - 13%<br>0k to 3k - 22%<br>0k to 4k - 35%<br>4.1k to 6k - 15%<br>6.1 to 8k - 10%<br>8.1k to 10k - 9%<br>10.1k to 12k - 7%<br>rest - 24%<br><br>My debug.ocfs2 doesn't has the "-R" option:<br><br># debugfs.ocfs2 -R "stats" /dev/sdb1<br>debugfs.ocfs2: invalid option -- R<br>debugfs.ocfs2 1.2.1<br><br><br>My doubts are:<br><br>4k is a good block size for this situation?<br>How to avoid waste space as now (~50%)?<br>If I choose to use 2k, will the available Inodes double (16M to 32M)?<br><br>Thanks a
 lot!<br><br>Jeronimo<br><br>----------------------------------------------------------------<br>Universidade Federal da Bahia - http://www.portal.ufba.br<br><br><br><br>_______________________________________________<br>Ocfs2-users mailing list<br>Ocfs2-users@oss.oracle.com<br>http://oss.oracle.com/mailman/listinfo/ocfs2-users</pre></blockquote></td></tr></table><br>