[Ocfs2-users] ocfs2 filesystem seems out of sync
Tom Schouteden
tsch at newtec.eu
Mon Sep 29 02:22:32 PDT 2008
I did some further testing. When I try to `ls` the directory from both
nodes, both report the same files and I believe also the same inodes
(?). eg:
debugfs: ls
17 16 1 2 .
17 16 2 2 ..
131593 24 10 2 lost+found
131594 36 4 1 test
516105 20 5 2 mysql
516814 3984 9 2 documents
This is identical on both nodes. However, when I look at the mounted
filesystem on the node itself, only one node shows the 'test' file.
When I run `debugfs.ocfs2 -R "stats" /dev/Docs/docs` on both systems,
the 2nd node replies:
"open: I/O error on channel while opening context for device /dev/Docs/docs
No device open"
When I run it again, I get the same reply on both nodes:
# debugfs.ocfs2 -R "stats" /dev/Docs/docs
Revision: 0.90
Mount Count: 0 Max Mount Count: 20
State: 0 Errors: 0
Check Interval: 0 Last Check: Mon Aug 11 14:37:05 2008
Creator OS: 0
Feature Compat: 1 BackupSuper
Feature Incompat: 0 None
Tunefs Incomplete: 0 None
Feature RO compat: 0 None
Root Blknum: 17 System Dir Blknum: 18
First Cluster Group Blknum: 8
Block Size Bits: 12 Cluster Size Bits: 15
Max Node Slots: 2
Label: KTDMS
UUID: F0667F99E9E142818F247E21CFAEC441
Inode: 2 Mode: 00 Generation: 257944831 (0xf5fecff)
FS Generation: 257944831 (0xf5fecff)
Type: Unknown Attr: 0x0 Flags: Valid System Superblock
User: 0 (root) Group: 0 (root) Size: 0
Links: 0 Clusters: 6651904
ctime: 0x48a03271 -- Mon Aug 11 14:37:05 2008
atime: 0x0 -- Thu Jan 1 01:00:00 1970
mtime: 0x48a03271 -- Mon Aug 11 14:37:05 2008
dtime: 0x0 -- Thu Jan 1 01:00:00 1970
ctime_nsec: 0x00000000 -- 0
atime_nsec: 0x00000000 -- 0
mtime_nsec: 0x00000000 -- 0
Last Extblk: 0
Sub Alloc Slot: Global Sub Alloc Bit: 65535
I have no idea as to while it failed the first time I ran it though.
Looking forward to your input.
Many thanks
tom
Sunil Mushran wrote:
> Which kernel/distro/ocfs2 version?
>
> When you say writes, are you referring to files/dirs mismatch or
> filedata mismatch. Can you expand on what you are noticing.
>
> 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.
>
> 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
>>
>> _______________________________________________
>> Ocfs2-users mailing list
>> Ocfs2-users at oss.oracle.com
>> http://oss.oracle.com/mailman/listinfo/ocfs2-users
>>
>
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users
More information about the Ocfs2-users
mailing list