OCFS2 Free space issue
783262Jul 12 2012 — edited Jul 12 2012Hello,
I have an Oracle 11gR2 RAC on two Oracle Linux 5 nodes. For storage I use a couple of OCFS2 partitions.
I have deleted a database using dbca and also have deleted the remaining files from shared partitions. When I consulted the free space with df I was surprised to see that the partitions appear to have a lot of used space even that there are no files on them. I've seen a similar behavior on a gpfs partition on AIX. Even that the database was closed and deleted (and lsof doesn't return anything), and I don't see how some files could be still opened, I rebooted both nodes (complete shutdown and start after both were down).
Now I see this:
[root@node1 bin]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdf1 4.0G 283M 3.7G 8% /d01
/dev/sde1 2.0G 283M 1.7G 15% /d02
/dev/sdj1 1.0G 91M 934M 9% /d03
[root@node1 bin]# cd /d01
[root@node1 d01]# ls -a
[root@node1 d01]#
How is it possible to have used space on those partitions even if they are empty?
How can I do some space management on OCFS2 partitions?
[root@node1 d01]# modinfo ocfs2
filename: /lib/modules/2.6.32-300.27.1.el5uek/kernel/fs/ocfs2/ocfs2.ko
license: GPL
author: Oracle
version: 1.6.3
description: OCFS2 1.6.3
srcversion: B8AF3035CE0F00B763D188F
depends: ocfs2_stackglue,ocfs2_nodemanager
vermagic: 2.6.32-300.27.1.el5uek SMP mod_unload modversions
Thanks.