[Ocfs2-users] ocfs2 remounted read only

Goldwyn Rodrigues rgoldwyn at suse.de
Sat Feb 14 16:24:10 PST 2015


Hi Antonello,

The errors were not completely fixed by fsck.ocfs2.

On 02/13/2015 04:02 AM, Antonello Cioffi wrote:
> Hi Rodrigues
>
> I tried three times to run fsck.ocfs2 -fy and it founded and correct a
> lot of error.
> So I tried to remounted the partition but after about 10 minutes of
> usage the file system go to read only again:
>
> Feb 11 10:18:22 posta2 kernel: [ 6077.249760] o2dlm: Nodes in domain
> CD18FE0B8D2440719BE71391F1E554DB: 1
> Feb 11 10:18:22 posta2 ocfs2_hb_ctl[14822]: ocfs2_hb_ctl
> /sbin/ocfs2_hb_ctl -P -d /dev/mapper/360080e500024f95000002adc5266d67d
> Feb 11 10:18:22 posta2 kernel: [ 6077.257345] ocfs2: Mounting device
> (253,2) on (node 1, slot 0) with ordered data mode.
> Feb 11 10:18:28 posta2 kernel: [ 6083.228714] o2net: connection to node
> posta-n (num 0) at 172.16.1.1:7777 shutdown, state 7
> Feb 11 10:18:30 posta2 kernel: [ 6085.222665] o2net: connected to node
> posta-n (num 0) at 172.16.1.1:7777
> Feb 11 10:18:32 posta2 kernel: [ 6087.597043] o2dlm: Node 0 joins domain
> CD18FE0B8D2440719BE71391F1E554DB
> Feb 11 10:18:32 posta2 kernel: [ 6087.597047] o2dlm: Nodes in domain
> CD18FE0B8D2440719BE71391F1E554DB: 0 1
> [...]
> Feb 11 10:24:18 posta2 kernel: [ 6432.043311] OCFS2: ERROR (device
> dm-2): ocfs2_validate_inode_block: Invalid dinode #504180555: OC
> FS2_VALID_FL not set
> Feb 11 10:24:18 posta2 kernel: [ 6432.043313]
> Feb 11 10:24:18 posta2 kernel: [ 6432.043315] File system is now
> read-only due to the potential of on-disk corruption. Please run f
> sck.ocfs2 once the file system is unmounted.
> Feb 11 10:24:18 posta2 kernel: [ 6432.043317]
> (imap,17616,1):ocfs2_read_locked_inode:493 ERROR: status = -22
> Feb 11 10:24:18 posta2 kernel: [ 6432.043500] OCFS2: ERROR (device
> dm-2): ocfs2_validate_inode_block: Invalid dinode #504180555: OC
> FS2_VALID_FL not set
> Feb 11 10:24:18 posta2 kernel: [ 6432.043502]
> Feb 11 10:24:18 posta2 kernel: [ 6432.043504]
> (imap,17616,0):ocfs2_read_locked_inode:493 ERROR: status = -22
> Feb 11 10:24:18 posta2 kernel: [ 6432.051688] OCFS2: ERROR (device
> dm-2): ocfs2_validate_inode_block: Invalid dinode #504180555: OC
> FS2_VALID_FL not set
>
> I tried to run fsck.ocfs2 again this mornig and this is the output:
>
> posta2:~ # fsck.ocfs2 -fy /dev/mapper/360080e500024f95000002adc5266d67d
> fsck.ocfs2 1.6.4
> Checking OCFS2 filesystem in /dev/mapper/360080e500024f95000002adc5266d67d:
>     Label:              home
>     UUID:               CD18FE0B8D2440719BE71391F1E554DB
>     Number of blocks:   524288000
>     Block size:         4096
>     Number of clusters: 65536000
>     Cluster size:       32768
>     Number of slots:    16
>
> /dev/mapper/360080e500024f95000002adc5266d67d was run with -f, check forced.
> Pass 0a: Checking cluster allocation chains
> Pass 0b: Checking inode allocation chains
> Pass 0c: Checking extent block allocation chains
> Pass 1: Checking inodes and blocks.
> Pass 2: Checking directory entries.
> pass2: I/O error on channel while reading dir block 349804432
> pass2: I/O error on channel while reading dir block 349824352
> pass2: I/O error on channel while reading dir block 349824353
> pass2: I/O error on channel while reading dir block 349824354
> pass2: I/O error on channel while reading dir block 349824355
> pass2: I/O error on channel while reading dir block 349824356
> pass2: I/O error on channel while reading dir block 349824357
> pass2: I/O error on channel while reading dir block 349824648
> pass2: I/O error on channel while reading dir block 349824649
> pass2: I/O error on channel while reading dir block 349824650
> pass2: I/O error on channel while reading dir block 349824651
> pass2: I/O error on channel while reading dir block 349824652
> pass2: I/O error on channel while reading dir block 349824653

This means this directory was not fixed.

> Pass 3: Checking directory connectivity.
> [DIR_DOTDOT] Directory inode 266888198 is referenced by a dirent in
> directory 266888194 but its '..' entry points to inode 0. Fix the '..'
> entry to reference 266888194? y
> fix_dot_dot: I/O error on channel while iterating through dir inode
> 266888194's directory entries.
> Pass 4a: checking for orphaned inodes
> Pass 4b: Checking inodes link counts.
> All passes succeeded.
>

Can you take an o2img of this device, compress it, and put it on a 
ftp/http site? Send me a private mail with the details if you can create 
an o2img.

On a different note, you seem to be using sles11 sp3. Did you try 
opening a support case or a bugzilla entry with suse?

-- 
Goldwyn



More information about the Ocfs2-users mailing list