Michael M.
2007-Dec-23 13:41 UTC
[Ocfs2-users] Large difference between space used on reiserfs vs ocfs2
Dear list, I have all of my web files for my apache servers on multiple machines placed on ocfs2 volumes. I recently did an rsync to a reiserfs volume on an external usb harddrive, and df reports the following: (ocfs2 is on top, reiserfs on bottom) /dev/sde5 218757056 176814592 41942464 81% /mnt/www /dev/sdd1 732549604 117493932 615055672 17% /mnt/pba-web Is this normal? Thanks, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20071223/c9e0d47a/attachment.html
Luis Freitas
2007-Dec-25 11:55 UTC
[Ocfs2-users] Large difference between space used on reiserfs vs ocfs2
If you have lots of small files, it could happen. The basic space allocation
unit is one block. If I am not mistaken on OCFS2 the default is 4k.
A quick search on google shows that Reiserfs can coalesce small files together
and save space.
You could try to format your OCFS partition with a smaller block size, near
the average file size.
Other possible explanation for this (That is, without filesystem corruption)
is a large file that was deleted but is still in use by some process. The space
remains allocated until you kill the process.
Regards,
Luis
"Michael M." <michael@gsc.cc> wrote: Dear
list,
I have all of my web files for my apache servers on multiple machines placed
on ocfs2 volumes. I recently did an rsync to a reiserfs volume on an external
usb harddrive, and df reports the following:
(ocfs2 is on top, reiserfs on bottom)
/dev/sde5 218757056 176814592 41942464 81% /mnt/www
/dev/sdd1 732549604 117493932 615055672 17% /mnt/pba-web
Is this normal?
Thanks,
Michael
_______________________________________________
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://oss.oracle.com/pipermail/ocfs2-users/attachments/20071225/c02e1c41/attachment.html
Sunil Mushran
2007-Dec-26 10:58 UTC
[Ocfs2-users] Large difference between space used on reiserfs vs ocfs2
What's your blocksize/clustersize? If you are on 1.2.7 tools, do: $ tunefs.ocfs2 -q -Q "bs=%B\ncs=%T\n" /dev/sdX If not, do: $ debugfs.ocfs2 -R "stats" /dev/sdX Michael M. wrote:> > Dear list, > > > > I have all of my web files for my apache servers on multiple machines > placed on ocfs2 volumes. I recently did an rsync to a reiserfs volume > on an external usb harddrive, and df reports the following: > > > > (ocfs2 is on top, reiserfs on bottom) > > > > /dev/sde5 218757056 176814592 41942464 81% /mnt/www > > /dev/sdd1 732549604 117493932 615055672 17% /mnt/pba-web > > > > Is this normal? > > > > Thanks, > > Michael > > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users