[Ocfs2-users] Trouble getting node to re-join two node cluster (OCFS2/DRBD Primary/Primary)

Sunil Mushran sunil.mushran at oracle.com
Thu Sep 15 17:18:42 PDT 2011


-F does not run the full fsck. -f does.

But I would not recommend running fsck as this corruption is not
normal. The inodes in the system directory have been overwritten.
That typically means a storage issue. The fs does not create/remove
inodes in sysdir. Only the tools do that.

You may want to shutdown drbd and access the devices directly on
the two machines. See if they are ok. If so, then select one as the
master and copy it to the other.

On 09/15/2011 04:20 PM, Mike Reid wrote:
> I may have made some progress on my OCFS2 error:
>
> See the following output from "dmesg"
>
> [88740.345617] OCFS2: ERROR (device drbd0): ocfs2_validate_inode_block: Invalid dinode #11: fs_generation is 376662488
> [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.
> [88740.345710] (mount.ocfs2,26394,5):ocfs2_read_locked_inode:499 ERROR: status = -22
> [88740.345743] (mount.ocfs2,26394,5):_ocfs2_get_system_file_inode:120 ERROR: status = -116
> [88740.345807] (mount.ocfs2,26394,5):ocfs2_init_global_system_inodes:466 ERROR: status = -22
> [88740.345890] (mount.ocfs2,26394,5):ocfs2_init_global_system_inodes:469 ERROR: Unable to load system inode 4, possibly corrupt fs?
> [88740.345958] (mount.ocfs2,26394,5):ocfs2_initialize_super:2261 ERROR: status = -22
> [88740.346067] (mount.ocfs2,26394,5):ocfs2_fill_super:1023 ERROR: status = -22
> [88740.346124] ocfs2: Unmounting device (147,0) on (node 0)
>
>
> I decided to run "fsck.ocfs2 -F /dev/drbd0":
>
> Checking OCFS2 filesystem in /dev/drbd0:
>   label: <NONE>
>   uuid:               fe 42 73 e1 f8 66 45 41 bb cf 66 c5 df d4 96 d6
>   number of blocks:   24999936
>   bytes per block:    4096
>   number of clusters: 24999936
>   bytes per cluster:  4096
>   max slots:          8
>
> /dev/drbd0 wasn't cleanly unmounted by all nodes.  Attempting to replay the journals for nodes that didn't unmount cleanly
> Checking each slot's journal.
> Replaying slot 0's journal.
> Slot 0's journal replayed successfully.
> Slot 0's local alloc replayed successfully
> /dev/drbd0 is clean.  It will be checked after 20 additional mounts.
> Slot 0's journal dirty flag removed
>
>
> Unfortunately, I still cannot mount the fs....
>
> > mount -t ocfs2 /dev/drbd/by-res/repdata /data
>
> (see attached strace) 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20110915/2b2768de/attachment.html 


More information about the Ocfs2-users mailing list