The 4 journal inodes got zeroed out. Do you know how/why?<div><br></div><div>Have you tried running fsck with -fy (enable writes).</div><div><br></div><div>fsck.ocfs2 does have a check for bad journals that it will regenerate.</div>
<div><br><div>JOURNAL_FILE_INVALID</div><div>OCFS2 uses JDB for journalling and some journal files exist in the system directory. Fsck has found some journal files that are invalid.</div><div>Answering yes to this question will regenerate the invalid journal files.</div>
<div><br></div><div>But that may still not work as fsck is currently bailing out during journal recovery</div><div>that happens much earlier on.</div><div><br></div><div>Try with -fy. If that does not work, we&#39;ll have to reconstruct empty inodes as</div>
<div>placeholders to allow fsck to complete journal recovery followed by journal</div><div>recreation.</div><div><br></div><div class="gmail_quote">On Wed, Aug 1, 2012 at 6:41 PM, Christophe BOUDER <span dir="ltr">&lt;<a href="mailto:Christophe.Bouder@lip6.fr" target="_blank">Christophe.Bouder@lip6.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
i use ocfs2 1.6.3 kernel 3.4.4 on debian testing<br>
i had problem on my infortrend device<br>
media error on a disk<br>
the result i can&#39;t mount my ocfs2 file but<br>
i can read the files with debugfs.ocfs2<br>
<br>
and my question is<br>
can i recover or recreate the journal size for node 8 9 10 11 ?<br>
<br>
thank for your help<br>
here&#39;s some log :<br>
<br>
# mount /data<br>
mount.ocfs2: Internal logic failure while trying to join the group<br>
<br>
<br>
# fsck.ocfs2 -n /dev/sdc1<br>
fsck.ocfs2 1.6.3<br>
Checking OCFS2 filesystem in /dev/sdc1:<br>
  Label:              data<br>
  UUID:               9B655B51E6874480BBC1309DCA048A39<br>
  Number of blocks:   4027690992<br>
  Block size:         4096<br>
  Number of clusters: 251730687<br>
  Cluster size:       65536<br>
  Number of slots:    32<br>
<br>
journal recovery: I/O error on channel while reading cached inode 112 for<br>
slot 8&#39;s journal<br>
fsck encountered unrecoverable errors while replaying the journals and<br>
will not continue<br>
<br>
# echo &quot;ls -l //&quot; | debugfs.ocfs2 /dev/sdc1 |grep journal<br>
debugfs.ocfs2 1.6.3<br>
        55              -rw-r--r--   1     0     0       268435456 23-Jun-2007<br>
21:30 journal:0000<br>
        56              -rw-r--r--   1     0     0       268435456 23-Jun-2007<br>
21:30 journal:0001<br>
        57              -rw-r--r--   1     0     0       268435456 23-Jun-2007<br>
21:30 journal:0002<br>
        58              -rw-r--r--   1     0     0       268435456 23-Jun-2007<br>
21:30 journal:0003<br>
        59              -rw-r--r--   1     0     0       268435456 23-Jun-2007<br>
21:31 journal:0004<br>
        79              -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:45 journal:0005<br>
        80              -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:45 journal:0006<br>
        81              -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:45 journal:0007<br>
        112             ----------   0     0     0               0  1-Jan-1970<br>
01:00 journal:0008<br>
        113             ----------   0     0     0               0  1-Jan-1970<br>
01:00 journal:0009<br>
        114             ----------   0     0     0               0  1-Jan-1970<br>
01:00 journal:0010<br>
        115             ----------   0     0     0               0  1-Jan-1970<br>
01:00 journal:0011<br>
        116             -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:46 journal:0012<br>
        117             -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:47 journal:0013<br>
        118             -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:47 journal:0014<br>
        119             -rw-r--r--   1     0     0       268435456 31-Aug-2007<br>
00:47 journal:0015<br>
        142             -rw-r--r--   1     0     0       268435456 29-May-2009<br>
22:53 journal:0016<br>
        143             -rw-r--r--   1     0     0       268435456 29-May-2009<br>
22:54 journal:0017<br>
        166             -rw-r--r--   1     0     0       268435456 31-Jan-2010<br>
15:36 journal:0018<br>
        167             -rw-r--r--   1     0     0       268435456 31-Jan-2010<br>
15:36 journal:0019<br>
        168             -rw-r--r--   1     0     0       268435456 31-Jan-2010<br>
15:37 journal:0020<br>
        169             -rw-r--r--   1     0     0       268435456 31-Jan-2010<br>
15:37 journal:0021<br>
        170             -rw-r--r--   1     0     0       268435456 31-Jan-2010<br>
15:38 journal:0022<br>
        171             -rw-r--r--   1     0     0       268435456 31-Jan-2010<br>
15:38 journal:0023<br>
        208             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:35 journal:0024<br>
        209             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:35 journal:0025<br>
        210             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:36 journal:0026<br>
        211             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:36 journal:0027<br>
        212             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:36 journal:0028<br>
        213             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:36 journal:0029<br>
        214             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:37 journal:0030<br>
        215             -rw-r--r--   1     0     0       268435456 21-Nov-2010<br>
19:37 journal:0031<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Christophe Bouder<br>
<br>
_______________________________________________<br>
Ocfs2-users mailing list<br>
<a href="mailto:Ocfs2-users@oss.oracle.com">Ocfs2-users@oss.oracle.com</a><br>
<a href="https://oss.oracle.com/mailman/listinfo/ocfs2-users" target="_blank">https://oss.oracle.com/mailman/listinfo/ocfs2-users</a><br>
</font></span></blockquote></div><br></div>