<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi All...<br>
<br>
1) I have recently deleted a big 100GB file from an OCFS2 partition.
The problem is that a "df" command still shows that partition with 142
GB of used spaced when it should report ~42Gb of used space (look to <b>/site06)</b>:<br>
<br>
[root@core23 ~]# df -h<br>
Filesystem Size Used Avail Use% Mounted on<br>
/dev/sda1 87G 2.4G 80G 3% /<br>
tmpfs 512M 0 512M 0% /dev/shm<br>
none 512M 104K 512M 1% /var/lib/xenstored<br>
/dev/mapper/iscsi04-lun1p1<br>
851G 63G 788G 8% /site04<br>
/dev/mapper/iscsi05-lun1p1<br>
851G 65G 787G 8% /site05<br>
/dev/mapper/iscsi06-lun2p1<br>
884G 100G 785G 12% /apoio06<br>
/dev/mapper/iscsi06-lun1p1<br>
<b>851G 142G 709G 17% /site06<br>
<br>
<br>
</b>2) Running "debugfs.ocfs2 /dev/mapper/iscsi06-lun1p1", I found the
following relevant file:<br>
<br>
debugfs: ls -l //orphan_dir:0001<br>
13 drwxr-xr-x 2 0 0 3896
27-Jul-2009 09:55 .<br>
6 drwxr-xr-x 18 0 0 4096
9-Jul-2009 12:24 ..<br>
524781 -rw-r--r-- 0 0 0 104857600000
24-Jul-2009 16:35 00000000000801ed<br>
<br>
<br>
3) I need to clean this metadata information, but I can not run
"fsck.ocfs2 -f" because this is a production filesystem being accessed
by 12 clients. To run "fsck.ocfs2 -f" I would have to unmount the
partition from all the clients, and this is not a solution at the time.
The software I'm currently using is:<br>
<br>
[root@core09 log]# cat /etc/redhat-release <br>
Scientific Linux SL release 5.3 (Boron)<br>
<br>
[root@core09 log]# uname -a<br>
Linux core09.ncg.ingrid.pt 2.6.18-128.1.16.el5xen #1 SMP Tue Jun 30
07:06:24 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>
[root@core09 log]# rpm -qa | grep ocfs2<br>
ocfs2-2.6.18-128.1.16.el5xen-1.4.2-1.el5<br>
ocfs2-tools-1.4.2-1.el5<br>
ocfs2console-1.4.2-1.el5<br>
<br>
<br>
Is there a workaround for this?<br>
Cheers<br>
Goncalo<br>
</body>
</html>