<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Not sure what you mean by a partition table crash. Is it that
    someone<br>
    overwrote the partition table on the iscsi server? That's what it
    looks<br>
    like. If mount cannot detect the fs type, then it means atleast
    superblock<br>
    corruption. And such corruptions typically caused by external
    entities.<br>
    Stray dd perhaps.<br>
    <br>
    Did you try recovering the superblock using one of the the backups?<br>
    fsck.ocfs2 -r [1-6] /dev/sdX ?<br>
    <br>
    On 10/11/2011 07:04 PM, Frank Zhang wrote:
    <blockquote
cite="mid:93099572B72EB341B81A644E134F240BF7A9F18EFE@SJCPMAILBOX01.citrite.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Hi Experts, recently I observed a partition
          table crash that made me really scared.<o:p></o:p></p>
        <p class="MsoNormal">I have two OVM servers sharing OCFS2 over
          iscsi, after running &nbsp;a bunch of VMs for a while, &nbsp;all VMs
          were gone and I saw the mount points of OCFS2 gone on both
          hosts.<o:p></o:p></p>
        <p class="MsoNormal">Then I tried to mount it again, the iscsi
          device crashed by saying &#8220;please specify filesystem type&#8221;. I
          checked dmesg but there is nothing useful except <o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">&#8220;SCSI device sdc: drive cache: write back<o:p></o:p></p>
        <p class="MsoNormal"> sdc: unknown partition table<o:p></o:p></p>
        <p class="MsoNormal">sd 2:0:0:1: Attached scsi disk sdc<o:p></o:p></p>
        <p class="MsoNormal">sd 2:0:0:1: Attached scsi generic sg3 type
          0<o:p></o:p></p>
        <p class="MsoNormal">OCFS2 Node Manager 1.4.4<o:p></o:p></p>
        <p class="MsoNormal">OCFS2 DLM 1.4.4<o:p></o:p></p>
        <p class="MsoNormal">OCFS2 DLMFS 1.4.4<o:p></o:p></p>
        <p class="MsoNormal">OCFS2 User DLM kernel interface loaded<o:p></o:p></p>
        <p class="MsoNormal"> connection1:0: detected conn error (1011)&#8221;<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">basically after logging into ISCSI device
          on both hosts, I created soft links of /dev/ovm_iscsi1
          pointing to device node under
          /dev/disk/by-path/real_isci_device, then I formatted
          /dev/ovm_iscsi1 to OCFS2 and mounted them to somewhere(of
          course I configured /etc/ocfs2/cluster.conf and made o2cb
          correctly start).<o:p></o:p></p>
        <p class="MsoNormal">Could somebody tell me where to get more
          debug info to trace the problem? This is really scared
          considering I may lose all my VMs because of the silent crash.<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">And is there any way to recover the
          partition table? Thanks<o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"> <o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Ocfs2-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ocfs2-users@oss.oracle.com">Ocfs2-users@oss.oracle.com</a>
<a class="moz-txt-link-freetext" href="http://oss.oracle.com/mailman/listinfo/ocfs2-users">http://oss.oracle.com/mailman/listinfo/ocfs2-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>