Richard Sibthorp
2015-Mar-19 08:59 UTC
[Ocfs2-users] Ocfs2-users Digest, Vol 132, Issue 3 - file size
See the ocfs2 FAQ <https://oss.oracle.com/projects/ocfs2/dist/documentation/v1.2/ocfs2_faq.html> - point #32 explains cluster size (the "-C 128K" parameter in your mkfs.ocfs2), hence the 128k file size of smaller files. The FAQ was written for OCFS2 1.2, but is still largely correct for 1.8. See also the man pages <https://oss.oracle.com/projects/ocfs2/dist/documentation/v1.8/ocfs2-1_8_2-manpages.pdf> for 1.8. Note that extN filesystems only allow sharing via NFS. I assume you use ocfs2 because you want the benefits of a cluster filesystem. Regards, Richard. On 18/03/2015 19:00, ocfs2-users-request at oss.oracle.com wrote:> Send Ocfs2-users mailing list submissions to > ocfs2-users at oss.oracle.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://oss.oracle.com/mailman/listinfo/ocfs2-users > or, via email, send a message with subject or body 'help' to > ocfs2-users-request at oss.oracle.com > > You can reach the person managing the list at > ocfs2-users-owner at oss.oracle.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ocfs2-users digest..." > > > Today's Topics: > > 1. Re: size increase (Zhen Ren) > 2. Re: size increase (Umarzuki Mochlis) > 3. Re: [Ocfs2-devel] size increase (Umarzuki Mochlis) > 4. Re: [Ocfs2-devel] size increase (Sunil Mushran) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 17 Mar 2015 20:05:20 -0600 > From: "Zhen Ren" <zren at suse.com> > Subject: Re: [Ocfs2-users] size increase > To: "Umarzuki Mochlis" <umarzuki at gmail.com>, > <ocfs2-devel at oss.oracle.com>, <ocfs2-users at oss.oracle.com> > Message-ID: <55094DE0020000D400003494 at relay2.provo.novell.com> > Content-Type: text/plain; charset=US-ASCII > > Hi Umarzuki, > 1) Does it always occur, or sometime? > > 2) Could you give more info to reproduce this issue? > > 3) And could you have a try on ext3? Frankly,most of suse people (if I don't make a mistake) use ext3. > > Also,I add the devel mail list. Hope experts there can help. > > -- > Best regards, > Eric, Ren > HA team, SUSE > > >> I noticed a few folders copied over from ext4 partition to ocfs2 >> partition increased it total size to more than double. >> >> Any document explaining this that I could refer to? >> >> _______________________________________________ >> Ocfs2-users mailing list >> Ocfs2-users at oss.oracle.com >> https://oss.oracle.com/mailman/listinfo/ocfs2-users >> >> > > > > > ------------------------------ > > Message: 2 > Date: Wed, 18 Mar 2015 10:50:24 +0800 > From: Umarzuki Mochlis <umarzuki at gmail.com> > Subject: Re: [Ocfs2-users] size increase > To: Zhen Ren <zren at suse.com> > Cc: ocfs2-users at oss.oracle.com, ocfs2-devel at oss.oracle.com > Message-ID: > <CAHW9mbxD7DhZt=eed50WJ4UNSHkRXjxdAXHG_8COsFCQUJWJMQ at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > 1) yes > > even 36K text html file in ext4 became 128K inside ocfs2 > > 2) I installed ocfs-tools on Ubuntu 14.04 amd64 > > A LUN added to a newly created LVM group, so no other physical volume > added other than this one and formatted as ocfs2 with below command > > sudo mkfs.ocfs2 -b 4K -C 128K -L "Web Cluster" /dev/webvg/weblv > > /dev/webvg/weblv mounted on /var/www > > I'll check with ext3 later > > 2015-03-18 10:05 GMT+08:00 Zhen Ren <zren at suse.com>: >> Hi Umarzuki, >> 1) Does it always occur, or sometime? >> >> 2) Could you give more info to reproduce this issue? >> >> 3) And could you have a try on ext3? Frankly,most of suse people (if I don't make a mistake) use ext3. >> >> Also,I add the devel mail list. Hope experts there can help. >> >> -- >> Best regards, >> Eric, Ren >> HA team, SUSE >> > > > ------------------------------ > > Message: 3 > Date: Wed, 18 Mar 2015 11:03:32 +0800 > From: Umarzuki Mochlis <umarzuki at gmail.com> > Subject: Re: [Ocfs2-users] [Ocfs2-devel] size increase > To: xuejiufei at huawei.com > Cc: ocfs2-users at oss.oracle.com, ocfs2-devel at oss.oracle.com > Message-ID: > <CAHW9mbx73AuENu-CQo++2kxBOR+HMv_GLr-taxbRjFHp6syboQ at mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Hi, > > What I meant by total size is output of 'du -hs' > > I can see output of fdisk on mpath1 of ocfs2 LUN similar to logical > volume of ext4 partition (255 head & 63 sectors) > > It is a 2 nodes ocfs cluster. > > 2015-03-18 10:50 GMT+08:00 Xue jiufei <xuejiufei at huawei.com>: >> Hi Umarzuki, >> What is the meaning of total size, file size or disk usage? >> If you means the disk usage, I think maybe the difference of >> cluster size(the minimum allocation unit) is the case. >> Have you notice the cluster size or block size of your ocfs2 >> and ext4 filesystem? >> >> Thanks, >> Xuejiufei >> > > > ------------------------------ > > Message: 4 > Date: Tue, 17 Mar 2015 20:26:49 -0700 > From: Sunil Mushran <sunil.mushran at gmail.com> > Subject: Re: [Ocfs2-users] [Ocfs2-devel] size increase > To: Umarzuki Mochlis <umarzuki at gmail.com> > Cc: xuejiufei at huawei.com, ocfs2-users at oss.oracle.com, > ocfs2-devel at oss.oracle.com > Message-ID: > <CAEeiSHX-U+t+5j218FF58gEujpf4rDJLs4ipr1XbUhPptN0RyA at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > This is because you are specifying a 128k cluster size. Refer to man > mkfs.ocfs2 for more. > On Mar 17, 2015 8:04 PM, "Umarzuki Mochlis" <umarzuki at gmail.com> wrote: > >> Hi, >> >> What I meant by total size is output of 'du -hs' >> >> I can see output of fdisk on mpath1 of ocfs2 LUN similar to logical >> volume of ext4 partition (255 head & 63 sectors) >> >> It is a 2 nodes ocfs cluster. >> >> 2015-03-18 10:50 GMT+08:00 Xue jiufei <xuejiufei at huawei.com>: >>> Hi Umarzuki, >>> What is the meaning of total size, file size or disk usage? >>> If you means the disk usage, I think maybe the difference of >>> cluster size(the minimum allocation unit) is the case. >>> Have you notice the cluster size or block size of your ocfs2 >>> and ext4 filesystem? >>> >>> Thanks, >>> Xuejiufei >>> >> _______________________________________________ >> Ocfs2-users mailing list >> Ocfs2-users at oss.oracle.com >> https://oss.oracle.com/mailman/listinfo/ocfs2-users >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20150317/3ead2592/attachment-0001.html > > ------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > https://oss.oracle.com/mailman/listinfo/ocfs2-users > > End of Ocfs2-users Digest, Vol 132, Issue 3 > *******************************************-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20150319/8bf0871a/attachment.html