Re: cannot mount nilfs2 partition after io error in raid5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/2/22 Edgard Pineda <epineda.contact@xxxxxxxxx>:
> 2010/2/22 Ryusuke Konishi <ryusuke@xxxxxxxx>:
>> Hi,
>> On Mon, 22 Feb 2010 13:44:46 -0300, Edgard Pineda wrote:
>>> Hi,
>>>
>>> I just had a 4 harddrives in raid5 with nilfs2 (kernel 2.6.32 and
>>> nilfs-utils 2.0.15) and I've got a power cut, then I rebuilt the
>>> array, but when I tried to mount the nilfs2 partition I've got:
>>> "NILFS: Can't find nilfs on dev md0" (in dmesg) after execute
>>> "mount.nilfs2: Error while mounting /dev/md0 on disk: Invalid
>>> argument".
>>>
>>> Any idea? can I mount as "read only" to rescue some files? any tools
>>> to "see" the files and fix the partition?
>>>
>>> Regards,
>>> Edgard.
>>
>> Umm.., sounds serious.  The message "NILFS: Can't find nilfs on xxx"
>> is output when both of the two super blocks are broken.
>>
>> Can you dump the partition with hd command?
>>
>> # hd /dev/md0 | less
>>
>> If the partition is not filled yet, it would look like this:
>>
>> 00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
>> *
>> 00000400  02 00 00 00 00 00 34 34  00 01 00 00 7b 93 80 d4  |......44....{...|
>> 00000410  50 09 11 38 02 00 00 00  17 11 00 00 00 00 00 00  |P..8............|
>> 00000420  00 5e 8f 8b 08 00 00 00  01 00 00 00 00 00 00 00  |.^..............|
>> 00000430  00 08 00 00 05 00 00 00  79 00 00 00 00 00 00 00  |........y.......|
>> 00000440  25 70 00 00 00 00 00 00  0e 00 00 00 00 00 00 00  |%p..............|
>> 00000450  00 88 88 00 00 00 00 00  bb fb 7c 4b 00 00 00 00  |..........|K....|
>> 00000460  71 d4 7f 4b 00 00 00 00  85 d4 7f 4b 00 00 00 00  |q..K.......K....|
>> 00000470  03 00 32 00 01 00 01 00  bb fb 7c 4b 00 00 00 00  |..2.......|K....|
>> 00000480  00 4e ed 00 00 00 00 00  00 00 00 00 0b 00 00 00  |.N..............|
>> 00000490  80 00 20 00 c0 00 10 00  8f d2 a7 e6 99 7a 41 e8  |.. ..........zA.|
>> 000004a0  ae 88 26 e1 48 0c a5 f4  00 00 00 00 00 00 00 00  |..&.H...........|
>> 000004b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
>> *
>> 00001000  dd 21 ee fe 80 ad 4e a1  11 fa af 1e 38 00 07 00  |.!....N.....8...|
>> 00001010  00 00 00 00 00 00 00 00  bb fb 7c 4b 00 00 00 00  |..........|K....|
>> ...
>>
>>
>> where "34 34" at offset 0x0406 is the magic number of NILFS.
>>
>> Regards,
>> Ryusuke Konishi
>>
>
> :( I think I lost the files...
>
> I get:
> 00000000  fc 00 0f 13 26 36 42 48  4d 49 46 41 3d 3c 3b 31  |....&6BHMIFA=<;1|
> 00000010  28 14 03 fc 00 0f 12 2a  39 45 4e 4f 4c 46 3f 3c  |(......*9ENOLF?<|
> 00000020  3b 39 2b 21 14 03 fd 00  0f 03 21 28 3a 3f 45 47  |;9+!......!(:?EG|
> 00000030  43 41 3c 3b 34 29 25 13  03 fc 00 0e 19 29 39 43  |CA<;4)%......)9C|
> 00000040  48 49 48 40 3c 3a 34 2a  17 02 00 fd 00 0c 13 27  |HIH@<:4*.......'|
> 00000050  2a 3b 42 44 3f 35 37 36  2d 28 12 fc 00 0c 0b 19  |*;BD?576-(......|
> 00000060  22 2c 37 3f 44 3d 3a 33  28 18 0f fc 00 04 10 22  |",7?D=:3(......"|
> 00000070  29 35 38 fe 3c 02 37 2a  1e fb 00 09 12 25 28 2b  |)58.<.7*.....%(+|
> 00000080  35 3b 39 2e 27 12 fc 00  08 10 1c 28 29 28 2e 2c  |5;9.'......()(.,|
> 00000090  24 11 fc 00 06 0a 18 26  27 26 27 15 fb 00 04 13  |$......&'&'.....|
> 000000a0  24 27 1f 11 fb 00 03 12  27 28 13 fc 00 03 12 26  |$'......'(.....&|
> 000000b0  26 16 fd 00 00 13 15 22  27 1a 13 12 12 1e 24 26  |&......"'.....$&|
> 000000c0  24 24 26 28 21 22 20 41  60 70 78 77 77 fe 75 1b  |$$&(!" A`pxww.u.|
> 000000d0  77 76 78 77 76 78 75 77  77 75 78 74 75 75 77 75  |wvxwvxuwwuxtuuwu|
> 000000e0  78 75 76 77 79 78 77 77  75 78 78 76 fd 78 12 76  |xuvwyxwwuxxv.x.v|
> 000000f0  78 77 77 78 79 79 77 78  78 77 78 78 76 78 77 78  |xwwxyywxxwxxvxwx|
> 00000100  78 76 fe 78 0b 79 78 77  78 79 79 78 79 77 78 79  |xv.x.yxwxyyxywxy|
> 00000110  78 fd 79 0d 76 78 79 7a  77 79 78 7a 78 77 79 7a  |x.y.vxyzwyxzxwyz|
> 00000120  79 77 fe 79 01 78 77 fe  79 04 7a 79 77 7a 79 fe  |yw.y.xw.y.zywzy.|
> 00000130  7a 00 7b fd 7a 00 7b fe  7a 01 7b 78 fe 7a ff 79  |z.{.z.{.z.{x.z.y|
> 00000140  01 77 79 fe 7a ff 7b 00  7a fe 7b fe 79 12 7a 7b  |.wy.z.{.z.{.y.z{|
> 00000150  7b 79 79 7b 7b 7a 7a 7b  79 7a 7b 7b 7a 7a 79 79  |{yy{{zz{yz{{zzyy|
> 00000160  7a fe 7b ff 7a fd 7b fe  7a fc 7b 03 7c 7b 7b 7a  |z.{.z.{.z.{.|{{z|
> 00000170  fe 7b ff 7c 04 79 7b 7b  7c 7b fe 7c 00 7b fe 7c  |.{.|.y{{|{.|.{.||
> 00000180  12 7b 7d 7c 7d 7c 7d 7c  7c 7a 7d 7d 7c 7d 7c 7b  |.{}|}|}||z}}|}|{|
>
> ...

sorry I forgot to show the content of /dev/md0 from offset 0x0400:

00000400  01 7f 80 fc 7f f9 80 03  7f 7e 7f 80 fe 7f fd 7f  |.........~......|
00000410  03 7e 7f 80 80 fa 7f ff  7e fa 7f fe 7e 02 7f 80  |.~......~...~...|
00000420  7e fe 7f 05 7e 7f 7f 80  7f 80 fd 7f 00 7e fd 7f  |~...~........~..|
00000430  ff 7e 03 7f 7e 7f 7f fe  7e ff 7f fc 7e 00 7d fd  |.~..~...~...~.}.|
00000440  7e 03 7d 7e 7d 7e fb 7f  08 7e 7f 7e 7f 7f 7e 7f  |~.}~}~...~.~..~.|
00000450  7f 7e fb 7f ff 7e fe 7f  00 7d fe 7f fe 80 01 7f  |.~...~...}......|
00000460  7e fe 7f 01 7e 7f fe 7e  fe 7f 01 7e 7d fc 7e 01  |~...~..~...~}.~.|
00000470  7f 7e 01 7f 7e fe 7d fe  7f ff 7e ff 7f fc 7e 00  |.~..~.}...~...~.|
00000480  7f fe 7e 02 7f 7e 7f fe  7e 04 7d 7e 7e 7d 7d fb  |..~..~..~.}~~}}.|
00000490  7e 00 7d fe 7e 00 7d fe  7e fe 7d 02 7e 7d 7c f8  |~.}.~.}.~.}.~}|.|
000004a0  7e ff 7d fe 7e fe 7d 00  7e fd 7d 05 7e 7d 7e 7d  |~.}.~.}.~.}.~}~}|
000004b0  7d 7c fe 7e fe 7d 00 7e  fe 7d 05 7e 7d 7d 7c 7d  |}|.~.}.~.}.~}}|}|
000004c0  7e fe 7d fe 7c 09 7d 7e  7d 7d 7e 7d 7d 7e 7e 7d  |~.}.|.}~}}~}}~~}|
000004d0  fe 7d 06 7e 7d 7d 7c 7e  7d 7e fd 7d ff 7e 05 7c  |.}.~}}|~}~.}.~.||
000004e0  7d 7c 7c 7d 7c f8 7d fd  7c 07 7d 7c 7d 7c 7d 7d  |}||}|.}.|.}|}|}}|


>
> but is there some tool to search for traces of files? or to rebuild
> the superblock?
>
> :(
>
> Than you any way...
>
> Regards,
> Edgard.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux