[Ocfs2-tools-users] deleting a file on OCFS2

Sunil Mushran Sunil.Mushran at oracle.com
Wed Dec 26 10:35:04 PST 2007


The file could be in use in the cluster. If so, rm will merely
unlink the file from the current directory and move it into
the orphan directory.

Only when the last process in the cluster stops using that file,
will it be deleted.

To see such files unlinked/inuse (aka orphan) files, do:

$ debugfs.ocfs2 -R "ls -l //orphan_dir:0000" /dev/sdX

0000 is the first slot. 0001, 0002... to the number of slots
in your fs. Note the name of the file is munged. But the size
and other inode attributes may help identify that file.

Sunil

Yoav Givon wrote:
> Hi
> I have deleted  a  file on OCFS2 F/S using <rm file_name> command .
> The  above succeeded  but checking  the free  space  on the f/s level 
> using <df -h) shows no change in free  space .
> What went  wrong ?
>
> Will appreciate  your  prompt  reply
>
> -- 
> Regards
> Yoav
>
> ------------------------------------
> Yoav Givon
> Fcruise  Software  GmbH
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ocfs2-tools-users mailing list
> Ocfs2-tools-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-tools-users




More information about the Ocfs2-tools-users mailing list