<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I tried hacking the fsck.ocfs2 source
      code by not considering metaecc flag. Then I ran into <br>
      <br>
      <tt>journal recovery: Bad magic number in inode while looking up
        the journal inode for slot 0</tt><tt><br>
      </tt><tt>fsck encountered unrecoverable errors while replaying the
        journals and will not continue</tt><tt><br>
      </tt><br>
      After bypassing journal replay function, I got <br>
      <br>
      <tt>Pass 0a: Checking cluster allocation chains</tt><tt><br>
      </tt><tt>pass0: Bad magic number in inode while looking up the
        global bitmap inode</tt><tt><br>
      </tt><tt>fsck.ocfs2: Bad magic number in inode while performing
        pass 0</tt><tt><br>
      </tt><br>
      <br>
      Does it mean the filesystem is destroyed completely?<br>
      <br>
      <br>
      <br>
      On 10.11.2012 02:54, Marian Serban wrote:<br>
    </div>
    <blockquote cite="mid:509DA5E1.5010909@easic.ro" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">That's the kernel:<br>
        <br>
        <tt>Linux ro02xsrv003.bv.easic.ro 2.6.39.4 #6 SMP Mon Dec 12
          12:09:49 EET 2011 x86_64 x86_64 x86_64 GNU/Linux</tt><tt><br>
        </tt><br>
        Anyway, I tried disabling the metaecc feature, no luck.<br>
        <br>
        <tt>[root@ro02xsrv003 ~]# tunefs.ocfs2 --fs-features=nometaecc
          /dev/mapper/volgr1-lvol0</tt><tt><br>
        </tt><tt>tunefs.ocfs2: I/O error on channel while opening device
          "/dev/mapper/volgr1-lvol0"</tt><tt><br>
        </tt><br>
        These are the last lines of strace corresponding to the
        tunefs.ocfs command:<br>
        <tt><br>
          <br>
          <br>
          open("/sys/fs/ocfs2/cluster_stack", O_RDONLY) = 4<br>
          fstat(4, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0<br>
          mmap(NULL, 4096, PROT_READ|PROT_WRITE,
          MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f54aad05000<br>
          read(4, "o2cb\n", 4096)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 5<br>
          close(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>
          munmap(0x7f54aad05000, 4096)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>
          open("/sys/fs/o2cb/interface_revision", O_RDONLY) = 4<br>
          read(4, "5\n", 15)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 2<br>
          read(4, "", 13)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>
          close(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>
        </tt><tt>stat("/sys/kernel/config", {st_mode=S_IFDIR|0755,
          st_size=0, ...}) = 0</tt><tt><br>
        </tt><tt>statfs("/sys/kernel/config", {f_type=0x62656570,
          f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0,
          f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0</tt><tt><br>
        </tt><tt>open("/dev/mapper/volgr1-lvol0", O_RDONLY) = 4</tt><tt><br>
        </tt><tt>ioctl(4, BLKSSZGET, 0x7fffce711454)&nbsp;&nbsp;&nbsp;&nbsp; = 0</tt><tt><br>
        </tt><tt>close(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0</tt><tt><br>
        </tt><tt>pread(3,
          "\0\0\v\25\37\1\200\200\202@\21\2\30\26\0\0\0,\17\272\241\4\340\210\311\377\17\300\327\332\373\17"...,

          4096, 532480) = 4096</tt><tt><br>
        </tt><tt>close(3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0</tt><tt><br>
        </tt><tt>write(2, "tunefs.ocfs2", 12tunefs.ocfs2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
          12</tt><tt><br>
        </tt><tt>write(2, ": ", 2: )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 2</tt><tt><br>
        </tt><tt>write(2, "I/O error on channel", 20I/O error on
          channel)&nbsp;&nbsp;&nbsp; = 20</tt><tt><br>
        </tt><tt>write(2, " ", 1 )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1</tt><tt><br>
        </tt><tt>write(2, "while opening device \"/dev/mappe"...,
          47while opening device "/dev/mapper/volgr1-lvol0") = 47</tt><tt><br>
        </tt><tt>write(2, "\r\n", 2</tt><tt><br>
        </tt><br>
        <br>
        <br>
        <br>
        <br>
        On 10.11.2012 02:06, Sunil Mushran wrote:<br>
      </div>
      <blockquote
cite="mid:CAEeiSHWbfXHrVh6hDcamZ7HJMJhO8vDCgR3_VRnJ+oDoBisK3w@mail.gmail.com"
        type="cite">It's either that or a check sum problem. Disable
        metaecc. Not sure which kernel you are running.
        <div>We had fixed few problems few years ago around this. If
          your kernel is older, then it could be</div>
        <div>a known issue.</div>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Fri, Nov 9, 2012 at 12:50 PM,
            Marian Serban <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:marian@easic.ro" target="_blank">marian@easic.ro</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi
              Sunil,<br>
              <br>
              Thank you for answering. Unfortunately, it doesn't seem
              like it's a hardware problem. There's no way a cable can
              be loose because it's iSCSI over 1G Ethernet (copper
              wires) environment. Also I performed "dd if=/dev/....
              of=/dev/null" and first 16GB or so are fine. "Dmesg" shows
              no errors.<br>
              <br>
              <br>
              Also tried with debugfs.ocfs2:<br>
              <br>
              <br>
              [root@ro02xsrv003 ~]# debugfs.ocfs2
              &nbsp;/dev/mapper/volgr1-lvol0<br>
              debugfs.ocfs2 1.6.3<br>
              debugfs: ls<br>
              ls: Bad magic number in inode '.'<br>
              debugfs: slotmap<br>
              slotmap: Bad magic number in inode while reading slotmap
              system file<br>
              debugfs: stats<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Revision: 0.90<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Mount Count: 0 &nbsp; Max Mount Count: 20<br>
              &nbsp; &nbsp; &nbsp; &nbsp; State: 0 &nbsp; Errors: 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Check Interval: 0 &nbsp; Last Check: Fri Nov &nbsp;9
              14:35:53 2012<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Creator OS: 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Feature Compat: 3 backup-super
              strict-journal-super<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Feature Incompat: 16208 sparse extended-slotmap
              inline-data metaecc xattr indexed-dirs refcount
              discontig-bg<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Tunefs Incomplete: 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Feature RO compat: 7 unwritten usrquota grpquota<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Root Blknum: 129 &nbsp; System Dir Blknum: 130<br>
              &nbsp; &nbsp; &nbsp; &nbsp; First Cluster Group Blknum: 64<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Block Size Bits: 12 &nbsp; Cluster Size Bits: 18<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Max Node Slots: 10<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Extended Attributes Inline Size: 256<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Label: SAN<br>
              &nbsp; &nbsp; &nbsp; &nbsp; UUID: B4CF8D4667AF43118F3324567B90A987<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Hash: 3698209293 (0xdc6e320d)<br>
              &nbsp; &nbsp; &nbsp; &nbsp; DX Seed[0]: 0x9f4a2bb7<br>
              &nbsp; &nbsp; &nbsp; &nbsp; DX Seed[1]: 0x501ddac0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; DX Seed[2]: 0x6034bfe8<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Cluster stack: classic o2cb<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Inode: 2 &nbsp; Mode: 00 &nbsp; Generation: 1093568923
              (0x412e899b)<br>
              &nbsp; &nbsp; &nbsp; &nbsp; FS Generation: 1093568923 (0x412e899b)<br>
              &nbsp; &nbsp; &nbsp; &nbsp; CRC32: 46f2d360 &nbsp; ECC: 04d4<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Type: Unknown &nbsp; Attr: 0x0 &nbsp; Flags: Valid System
              Superblock<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Dynamic Features: (0x0)<br>
              &nbsp; &nbsp; &nbsp; &nbsp; User: 0 (root) &nbsp; Group: 0 (root) &nbsp; Size: 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Links: 0 &nbsp; Clusters: 45340448<br>
              &nbsp; &nbsp; &nbsp; &nbsp; ctime: 0x4ee67f67 -- Tue Dec 13 00:25:43 2011<br>
              &nbsp; &nbsp; &nbsp; &nbsp; atime: 0x0 -- Thu Jan &nbsp;1 02:00:00 1970<br>
              &nbsp; &nbsp; &nbsp; &nbsp; mtime: 0x4ee67f67 -- Tue Dec 13 00:25:43 2011<br>
              &nbsp; &nbsp; &nbsp; &nbsp; dtime: 0x0 -- Thu Jan &nbsp;1 02:00:00 1970<br>
              &nbsp; &nbsp; &nbsp; &nbsp; ctime_nsec: 0x00000000 -- 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; atime_nsec: 0x00000000 -- 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; mtime_nsec: 0x00000000 -- 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Refcount Block: 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Last Extblk: 0 &nbsp; Orphan Slot: 0<br>
              &nbsp; &nbsp; &nbsp; &nbsp; Sub Alloc Slot: Global &nbsp; Sub Alloc Bit: 65535<span
                class="HOEnZb"><font color="#888888"><br>
                  <br>
                  <br>
                  <br>
                  <br>
                  Marian<br>
                  <br>
                </font></span><br>
              _______________________________________________<br>
              Ocfs2-users mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Ocfs2-users@oss.oracle.com">Ocfs2-users@oss.oracle.com</a><br>
              <a moz-do-not-send="true"
                href="https://oss.oracle.com/mailman/listinfo/ocfs2-users"
                target="_blank">https://oss.oracle.com/mailman/listinfo/ocfs2-users</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>