<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
-F does not run the full fsck. -f does.<br>
<br>
But I would not recommend running fsck as this corruption is not<br>
normal. The inodes in the system directory have been overwritten.<br>
That typically means a storage issue. The fs does not create/remove<br>
inodes in sysdir. Only the tools do that.<br>
<br>
You may want to shutdown drbd and access the devices directly on<br>
the two machines. See if they are ok. If so, then select one as the<br>
master and copy it to the other.<br>
<br>
On 09/15/2011 04:20 PM, Mike Reid wrote:
<blockquote cite="mid:CA97E449.1A694%25mbreid@thepei.com"
type="cite">
<title>Re: [Ocfs2-users] Trouble getting node to re-join two node
cluster (OCFS2/DRBD Primary/Primary)</title>
<font face="Calibri, Verdana, Helvetica, Arial"><span
style="font-size: 11pt;">I may have made some progress on my
OCFS2 error:<br>
<br>
See the following output from “dmesg”<br>
<br>
[88740.345617] OCFS2: ERROR (device drbd0):
ocfs2_validate_inode_block: Invalid dinode #11: fs_generation
is 376662488<br>
[88740.345664] File system is now read-only due to the
potential of on-disk corruption. Please run fsck.ocfs2 once
the file system is unmounted.<br>
[88740.345710]
(mount.ocfs2,26394,5):ocfs2_read_locked_inode:499 ERROR:
status = -22<br>
[88740.345743]
(mount.ocfs2,26394,5):_ocfs2_get_system_file_inode:120 ERROR:
status = -116<br>
[88740.345807]
(mount.ocfs2,26394,5):ocfs2_init_global_system_inodes:466
ERROR: status = -22<br>
[88740.345890]
(mount.ocfs2,26394,5):ocfs2_init_global_system_inodes:469
ERROR: Unable to load system inode 4, possibly corrupt fs?<br>
[88740.345958]
(mount.ocfs2,26394,5):ocfs2_initialize_super:2261 ERROR:
status = -22<br>
[88740.346067] (mount.ocfs2,26394,5):ocfs2_fill_super:1023
ERROR: status = -22<br>
[88740.346124] ocfs2: Unmounting device (147,0) on (node 0)<br>
<br>
<br>
I decided to run “fsck.ocfs2 -F /dev/drbd0”:<br>
<br>
Checking OCFS2 filesystem in /dev/drbd0:<br>
label: <NONE><br>
uuid: fe 42 73 e1 f8 66 45 41 bb cf 66 c5 df
d4 96 d6 <br>
number of blocks: 24999936<br>
bytes per block: 4096<br>
number of clusters: 24999936<br>
bytes per cluster: 4096<br>
max slots: 8<br>
<br>
/dev/drbd0 wasn't cleanly unmounted by all nodes. Attempting
to replay the journals for nodes that didn't unmount cleanly<br>
Checking each slot's journal.<br>
Replaying slot 0's journal.<br>
Slot 0's journal replayed successfully.<br>
Slot 0's local alloc replayed successfully<br>
/dev/drbd0 is clean. It will be checked after 20 additional
mounts.<br>
Slot 0's journal dirty flag removed<br>
<br>
<br>
Unfortunately, I still cannot mount the fs....<br>
<br>
> mount -t ocfs2 /dev/drbd/by-res/repdata /data <br>
<br>
(see attached strace)</span></font>
</blockquote>
<br>
</body>
</html>