[Ocfs2-users] ocfs2 filesystem seems out of sync

Tom Schouteden tsch at newtec.eu
Mon Sep 29 00:35:54 PDT 2008


Hi Sunil

Sunil Mushran wrote:
> Which kernel/distro/ocfs2 version?

We're using CentOS 5, kernel 2.6.18-53.el5PAE, 
ocfs2-2.6.18-53.el5PAE-1.2.9-1.el5

> When you say writes, are you referring to files/dirs mismatch or
> filedata mismatch. Can you expand on what you are noticing.

When I write a file on the OCFS2 mountpoint from one node (e.g.: `touch 
/mnt/docsdata/test.txt`) it does not appear on the same mountpoint at 
the other node.

> BTW, you can use debugfs.ocfs2 to help in your debugging.
> It allows one to read the contents of the fs directly from the
> volume. It has commands like ls and cat. Check out its manpage.
> 
> For example, say a file is not showing up on the other node.
> Do a sync on the node you created the file and then use debugfs.ocfs2
> to read the fs. Do the same on both nodes.

Thanks for the tip, I will digg into this.

Best regards


tom

> Tom Schouteden wrote:
>> Hi there
>>
>> I recently installed an OCFS2 filesystem on our FC-SAN.  Everything 
>> seemed to work fine and I could read & write the filesystem from both 
>> servers that are mounting it.  After a while though, writes coming 
>> from one node do not appear on the other node and vice versa.
>>
>> I am not sure what's causing this, and not very experienced at 
>> debugging   filesystems.  If anybody has any pointers as to how to 
>> debug/solve this,   that would be greatly appreciated.
>>
>> Not sure if the following information is useful at all, but let me 
>> know if you need anything else:
>>
>> [root at docs1 mon]# /etc/init.d/o2cb status
>> Module "configfs": Loaded
>> Filesystem "configfs": Mounted
>> Module "ocfs2_nodemanager": Loaded
>> Module "ocfs2_dlm": Loaded
>> Module "ocfs2_dlmfs": Loaded
>> Filesystem "ocfs2_dlmfs": Mounted
>> Checking O2CB cluster ocfs2: Online
>>    Heartbeat dead threshold: 31
>>    Network idle timeout: 30000
>>    Network keepalive delay: 2000
>>    Network reconnect delay: 2000
>> Checking O2CB heartbeat: Active
>>
>> [root at docs1 mon]# /etc/init.d/ocfs2 status
>> Configured OCFS2 mountpoints:  /mnt/docsdata
>> Active OCFS2 mountpoints:  /mnt/docsdata
>>
>> Best regards
>>
>>
>> tom





More information about the Ocfs2-users mailing list