2 Replies Latest reply: Jul 12, 2012 11:35 AM by 783262 RSS

    OCFS2 Free space issue

    783262
      Hello,
      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.
        • 1. Re: OCFS2 Free space issue
          Sebastian Solbach -Dba Community-Oracle
          Hi,

          did you already execute a filesystem check of the ocfs2 partition?

          Worth a try...

          Just as a sidenode: One of the reasons ASM really is recommended ;)

          Regards
          Sebastian
          • 2. Re: OCFS2 Free space issue
            783262
            fsck.ocfs2 -f /dev/iscsi/openfiler:disk01/part1

            mount /dev/iscsi/openfiler:disk01/part1 /d01

            Filesystem Size Used Avail Use% Mounted on
            /dev/sdf1 4.0G *283M* 3.7G 8% /d01

            It's the same.

            Just to add, the partitions were formatted like this:
            mkfs.ocfs2 -b 4K -C 32K -N 4 -L oracrsfiles /dev/iscsi/crs/part1

            /etc/fstab:
            /dev/iscsi/openfiler:disk01/part1 /d01 ocfs2 _netdev,datavolume,nointr     0 0