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
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.
thank you for you help.
bye
Il 12/02/2015 19:05, Goldwyn Rodrigues ha scritto:> Hello Antonello,
>
> On 02/12/2015 08:36 AM, Antonello Cioffi wrote:
>> Hello
>>
>> yesterday my ocfs2 fail after about 5 months of usage.
>>
>> First I had high load on one of the two node. I rebooted it and at
>> reboot these messeges appered:
>>
>> Feb 10 20:33:22 posta-n kernel: [ 90.342829] o2net: accepted
>> connection from node posta2 (num 1) at 172.16.1.2:7777
>> Feb 10 19:44:01 posta-n kernel: [ 727.825755] OCFS2: ERROR (device
>> dm-0): ocfs2_validate_inode_block: Invalid dinode #221213540:
>> OCFS2_VALID_FL not set
>> Feb 10 19:44:01 posta-n kernel: [ 727.825758]
>> Feb 10 19:44:01 posta-n kernel: [ 727.825761] File system is now
>> read-only due to the potential of on-disk corruption. Please run
>> fsck.ocfs2 once the file system is unmounted.
>> Feb 10 19:44:01 posta-n kernel: [ 727.825767]
>> (pop3,6032,4):ocfs2_read_locked_inode:493 ERROR: status = -22
>> Feb 10 19:44:01 posta-n kernel: [ 727.826228] OCFS2: ERROR (device
>> dm-0): ocfs2_validate_inode_block: Invalid dinode #221213540:
>> OCFS2_VALID_FL not set
>> Feb 10 19:44:01 posta-n kernel: [ 727.826230]
>> Feb 10 19:44:01 posta-n kernel: [ 727.826235]
>> (pop3,6032,5):ocfs2_read_locked_inode:493 ERROR: status = -22
>> Feb 10 19:44:01 posta-n kernel: [ 727.826726] OCFS2: ERROR (device
>> dm-0): ocfs2_validate_inode_block: Invalid dinode #221213540:
>> OCFS2_VALID_FL not set
>> Feb 10 19:44:01 posta-n kernel: [ 727.826728]
>>
>> now I migrate all files to a new ocfs2 partition and I'm using this
new
>> one to come back online.
>>
>> I'm using two SLES 11sp3 with this packages
>>
>> ocfs2-tools-o2cb-1.8.2-0.15.5
>> ocfs2-kmp-default-1.6_3.0.76_0.9-0.16.24
>> ocfs2-kmp-trace-1.6_3.0.76_0.9-0.16.24
>> ocfs2-tools-1.8.2-0.15.5
>> ocfs2console-1.8.2-0.15.5
>> ocfs2-tools-devel-1.8.2-0.15.5
>>
>> How can I figure what appened and is there anything I can do to avoid
>> the occuring again?
>>
>> According to software storage all disks are ok.
>>
>
> Did you try executing fsck.ocfs2 as the message proposes? What message
> did fsck.ocfs2 say? You may have to take it offline and run fsck.ocfs2
> -f <device>
>
>
--
Dott. Antonello Cioffi
Ufficio Servizi Informatici
Universit? degli Studi di Napoli Parthenope
Tel. 081/5475292 - Fax. 081/5475180