Hello... it was put under my attention that a partition we have in one of our production system was displaying wrong size with df command.... 123 GB... but in fact the size of all the files is a mere 15 GB.... What is going on? Shall we use ocfs.fsck to fix that? Is strange... Thanks for any comment.... Raymundo Garcia ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100628/c6cd824e/attachment.html
Make sure you don't have deleted files, which are still open. You can use lsof to find those. From: ocfs2-users-bounces at oss.oracle.com [mailto:ocfs2-users-bounces at oss.oracle.com] On Behalf Of Garcia, Raymundo Sent: Sunday, June 27, 2010 11:18 PM To: ocfs2-users at oss.oracle.com Subject: [Ocfs2-users] df showing wrong size Hello... it was put under my attention that a partition we have in one of our production system was displaying wrong size with df command.... 123 GB... but in fact the size of all the files is a mere 15 GB.... What is going on? Shall we use ocfs.fsck to fix that? Is strange... Thanks for any comment.... Raymundo Garcia ________________________________ The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100627/731c480b/attachment.html
Hi Garcia, On 06/28/2010 02:17 PM, Garcia, Raymundo wrote:> > > Hello? it was put under my attention that a partition we have in one of > our production system was displaying wrong size with df command?. 123 > GB? but in fact the size of all the files is a mere 15 GB?. What is > going on? Shall we use ocfs.fsck to fix that? Is strange?123GB is the total size of the used size? df use statfs(2) to check the size, so in general, you will get the used size for the whole volume(including some files that haven't been freed and stayed in orphan dir). 15GB is what you get from du I guess? du will iterate the dir and check it. So it only contains the size for every visible file, not including orphan files. Regards, Tao> > Thanks for any comment?. > > Raymundo Garcia > > > The information contained in this message may be confidential and > legally protected under applicable law. The message is intended solely > for the addressee(s). If you are not the intended recipient, you are > hereby notified that any use, forwarding, dissemination, or reproduction > of this message is strictly prohibited and may be unlawful. If you are > not the intended recipient, please contact the sender by return e-mail > and destroy all copies of the original message. > > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users
On Sun, Jun 27, 2010 at 11:17 PM, Garcia, Raymundo <Raymundo.Garcia at philips.com> wrote:> Hello? it was put under my attention that a partition we have in one of our > production system was displaying wrong size with df command?. 123 GB? but in > fact the size of all the files is a mere 15 GB?. What is going on? Shall we > use ocfs.fsck to fix that? Is strange?As others have mentioned, this could be still-open files that have been deleted. It could also be that ocfs2 is leaking free space. I thought journaling file systems didn't have "orphan" files after reboot, but I could be wrong. I think I have seen ocfs2 leak free space even during normal operation, but I am still working on reproducing it. If you do run fsck.ocfs2 -- you probably want to use "fsck.ocfs2 -fy" -- could you please send the output to the list? Thanks. - Pat