OCFS2 Fileystem Switches To Read-Only Mode (Doc ID 566353.1)

Last updated on MARCH 06, 2017

Applies to:

Linux OS - Version 1.2.0-1 to 1.2.5-1 [Release OCFS2]
Linux x86-64
Linux x86
Linux x86-64Linux x86

Symptoms

The symptom of this problem is that write operations to a filesystem that is normally mounted in read/write mode suddenly start failing.  In the file /var/log/messages there is an entry similar to this:

Oct 1 10:31:38 my_server kernel: OCFS2: ERROR (device emcpowerm1): ocfs2_check_group_descriptor: Group descriptor #22708224 has bit count 32256 but claims that 32291 are free
Oct 1 10:31:38 my_server kernel: File system is now read-only due to the potential of on-disk corruption. Please run fsck.ocfs2 once the file system is unmounted.
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_search_chain:1064 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_claim_suballoc_bits:1231 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_claim_clusters:1466 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_local_alloc_new_window:850 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_local_alloc_slide_window:957 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_reserve_local_alloc_bits:513 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_reserve_clusters:645 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_extend_file:837 ERROR: status = -5
Oct 1 10:31:38 my_server kernel: (16913,2):ocfs2_write_lock_maybe_extend:718 ERROR: status = -5


This example shows an OCFS2 filesystem but most Linux filesystems, including the EXT3 layout, show this behavior.  This note concentrates on OCFS2, however.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms