Hi Bob<div>    Thank you for your advice, </div><div>I had dump the FS head.</div><div>#dd if=/dev/sdc of=/home/disk.dump bs=4096 count=1000</div><div><div>#file disk.dump</div><div>disk.dump: Linux GFS2 Filesystem (blocksize 4096, lockproto fsck_nolock)</div>
</div><div>and I also try</div><div># gfs2_tool sb /dev/sdc all</div><div><div>  mh_magic = 0x01161970</div><div>  mh_type = 1</div><div>  mh_format = 100</div><div>  sb_fs_format = 1801</div><div>  sb_multihost_format = 1900</div>
<div>  sb_bsize = 4096</div><div>  sb_bsize_shift = 12</div><div>  no_formal_ino = 2</div><div>  no_addr = 35</div><div>  no_formal_ino = 1</div><div>  no_addr = 34</div><div><font class="Apple-style-span" color="#ff0000">  sb_lockproto = fsck_nolock</font></div>
<div>  sb_locktable =</div><div>  uuid = 5a8234ba-ad89-f87a-c98b-807e307085fe</div></div><div><br></div><div>then try to mount the storage </div><div><div>#mount.gfs2 -o  lockproto=fsck_nolock /dev/sdc /opt</div><div>error mounting /dev/sdc on /opt: No such file or directory</div>
</div><div><br></div><div>#dmesg</div><div><div>GFS2: can't find protocol fsck_nolock</div></div><div><br></div><div>Is this mean the filesystem structure still ok?</div><div>why should dmesg will report can't find fsck_nolock protocol?</div>
<div>Did I miss something?</div><div><br></div><div>Thank you</div><div><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 10:45 PM, Bob Peterson <span dir="ltr"><<a href="mailto:rpeterso@redhat.com">rpeterso@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">----- Original Message -----<br>
| Hi<br>
|     The host use UIT's CT1600 and UIT's 2000E IP-SAN storage (single<br>
|     LUN<br>
| 10TB)<br>
| last time the switch got a  power failure during the data backup (the<br>
| iSCSI<br>
| connection is lost)<br>
| after the iSCSI reconneted, the filesystem was unable to use.<br>
|<br>
| So I try  use fsck.gfs2 to fix the filesystem problem.but there is a<br>
| error<br>
| message and I got no idea with this error.<br>
|<br>
| [root@Toureg ~]# fsck.gfs2 /dev/sdc<br>
| Initializing fsck<br>
| The system master directory seems to be destroyed.<br>
| Okay to rebuild it? (y/n)y<br>
| Trying to rebuild the master directory.<br>
| libgfs2.h: out of space<br>
<br>
</div>Hi,<br>
<br>
The only time I've seen this error before is when the device<br>
was badly damaged. I don't know how that one was damaged, but<br>
it looked like the RAID controller had completely rearranged<br>
the blocks on the media.<br>
<br>
If you are a Red Hat customer, please call the Red Hat support<br>
number and ask for help.<br>
<br>
A number of things can cause this message:<br>
1. Scrambled blocks on media<br>
2. A disk failed<br>
3. Running fsck on the wrong device. For example, if /dev/sdc<br>
   is partitioned (should have specified /dev/sdc1?) or if<br>
   /dev/sdc is supposed to be part of an LVM2 logical volume,<br>
   (should you have specified /dev/volgrp/logvol (for example)<br>
   rather than /dev/sdc?<br>
<br>
Either way, something's seriously wrong with it. If it were my<br>
device, I'd dump the first few MB to a file and see what's there,<br>
compared to what should be there.<br>
<br>
Regards,<br>
<br>
Bob Peterson<br>
Red Hat File Systems<br>
<font color="#888888"><br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br> Thank you<br><br>Best regards<br>*************************************************************************************************<br>Sherlock Zhang  张 国荣 <br>
Technical Supporter East China Technical Support Department<br><br>Address: Room 23E No. 728 West Yanan Road Changning DC. Shanghai China<br>
Post code: 20050<br><br>Office: +86 021 62253300 ext. 803<br>Mobile: +86 133 8600 6305<br><a href="http://www.uit.com.cn" target="_blank">www.uit.com.cn</a><br><br><br>*************************************************************************************************<br>

</div>