All of lore.kernel.org
 help / color / mirror / Atom feed
* I need help analyzing a failed UBIfs
@ 2012-01-02 19:11 Atlant Schmidt
       [not found] ` <0A40042D85E7C84DB443060EC44B3FD33254FA3C58@dekaexchange07.deka.local>
  2012-01-04 16:03 ` I need help analyzing a failed UBIfs Artem Bityutskiy
  0 siblings, 2 replies; 5+ messages in thread
From: Atlant Schmidt @ 2012-01-02 19:11 UTC (permalink / raw)
  To: linux-mtd

Folks:

  I've been asked to analyze a 2GB NAND flash that contains
  a single volume UBIfs file system that has developed an
  uncorrectable ECC error in one PEB (which is apparently
  in use storing a LEB).

  The one thing I'd really like to determine is:

    o Is the failed LEB part of the UBIfs "Wandering
      Journal" or is it storing actual, fully-committed
      parts of the data volume such as iNodes, directories,
      or file data extents?*

  Looking at a data dump of the volume (from the MTD
  level), is there an easy way to determine this?
  For example, "All the Journal LEBs are listed in
  a table at..."**

                          Atlant


 * I'm assuming that LEBs are either fully-allocated to
   the Wandering Journal or fully-available to the "data
   volume"; if this assumption is incorrect, I'm sure
   someone will correct me!

** I have a Perl script that I wrote that helps me automate
   this and could easily extend my script to do more analysis
   if I knew what I was looking for.



This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: I need help analyzing a failed UBIfs (resolved)
       [not found] ` <0A40042D85E7C84DB443060EC44B3FD33254FA3C58@dekaexchange07.deka.local>
@ 2012-01-04 13:03   ` Atlant Schmidt
  2012-01-04 13:44     ` Reginald Perrin
  0 siblings, 1 reply; 5+ messages in thread
From: Atlant Schmidt @ 2012-01-04 13:03 UTC (permalink / raw)
  To: Atlant Schmidt, linux-mtd

All:

  (Self-answered question)

  Based on the debug stack trace below, I conclude
  that my failed block *IS* composed of buds in
  the Wandering Journal.

  Any dissent?

                                    Atlant

 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

[   16.998114] UBI error: ubi_io_read: error -74 (ECC error) while reading 516096 bytes from PEB 1715:8192, read 516096 bytes
[   17.009997] Call Trace:
[   17.012659] [cf831ad0] [c0008f88] show_stack+0x4c/0x16c (unreliable)
[   17.019402] [cf831b10] [c030a9bc] ubi_io_read+0x21c/0x434
[   17.025107] [cf831b70] [c0308e2c] ubi_eba_read_leb+0x17c/0x42c
[   17.031382] [cf831bb0] [c0306d28] ubi_leb_read+0x14c/0x1a0
[   17.037212] [cf831be0] [c01e1638] ubifs_leb_read+0x2c/0xa4
[   17.043037] [cf831c00] [c01e9a8c] ubifs_start_scan+0xe8/0x200
[   17.049110] [cf831c30] [c02016a0] ubifs_recover_leb+0xb0/0xb28
[   17.055296] [cf831c80] [c01eb0a4] replay_buds+0x8e8/0xb84                <===
[   17.061035] [cf831d20] [c01ebb98] ubifs_replay_journal+0x858/0x1358      <===
[   17.067653] [cf831da0] [c01dbe60] ubifs_fill_super+0x1108/0x2180
[   17.074033] [cf831e00] [c01dd6ac] ubifs_get_sb+0x1d4/0x3d4
[   17.079836] [cf831e80] [c00c0adc] vfs_kern_mount+0x70/0x190
[   17.085742] [cf831eb0] [c00c0c4c] do_kern_mount+0x40/0x100
[   17.091565] [cf831ed0] [c00da8ec] do_mount+0x680/0x820
[   17.097033] [cf831f30] [c00dab1c] sys_mount+0x90/0xd0
[   17.102384] [cf831f60] [c04f1aac] do_mount_root+0x30/0xc0
[   17.108107] [cf831f70] [c04f1be8] mount_block_root+0xac/0x240
[   17.114206] [cf831fb0] [c04f1ef4] prepare_namespace+0x68/0x1c8
[   17.120381] [cf831fd0] [c04f126c] kernel_init+0x150/0x164
[   17.126117] [cf831ff0] [c0012390] original_kernel_thread+0x4c/0x68
[   17.138694] UBIFS error (pid 1): ubifs_recover_leb: corruptio -3
[   17.145111] UBIFS error (pid 1): ubifs_scanned_corruption: corruption at LEB 1408:458752
[   17.153728] UBIFS error (pid 1): ubifs_scanned_corruption: first 8192 bytes from LEB 1408:458752
[   17.175760] UBIFS error (pid 1): ubifs_recover_leb: LEB 1408 scanning failed
[   17.194746] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)

-----Original Message-----
From: linux-mtd-bounces@lists.infradead.org [mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of Atlant Schmidt
Sent: Monday, January 02, 2012 14:12
To: linux-mtd@lists.infradead.org
Subject: I need help analyzing a failed UBIfs

Folks:

  I've been asked to analyze a 2GB NAND flash that contains
  a single volume UBIfs file system that has developed an
  uncorrectable ECC error in one PEB (which is apparently
  in use storing a LEB).

  The one thing I'd really like to determine is:

    o Is the failed LEB part of the UBIfs "Wandering
      Journal" or is it storing actual, fully-committed
      parts of the data volume such as iNodes, directories,
      or file data extents?*

  Looking at a data dump of the volume (from the MTD
  level), is there an easy way to determine this?
  For example, "All the Journal LEBs are listed in
  a table at..."**

                          Atlant


 * I'm assuming that LEBs are either fully-allocated to
   the Wandering Journal or fully-available to the "data
   volume"; if this assumption is incorrect, I'm sure
   someone will correct me!

** I have a Perl script that I wrote that helps me automate
   this and could easily extend my script to do more analysis
   if I knew what I was looking for.



This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: I need help analyzing a failed UBIfs (resolved)
  2012-01-04 13:03   ` I need help analyzing a failed UBIfs (resolved) Atlant Schmidt
@ 2012-01-04 13:44     ` Reginald Perrin
  2012-01-04 14:38       ` Atlant Schmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Reginald Perrin @ 2012-01-04 13:44 UTC (permalink / raw)
  To: linux-mtd

----- Original Message -----

> From: Atlant Schmidt <aschmidt@dekaresearch.com>
> To: Atlant Schmidt <aschmidt@dekaresearch.com>; "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
> Cc: 
> Sent: Wednesday, January 4, 2012 8:03 AM
> Subject: RE: I need help analyzing a failed UBIfs (resolved)
> 
> All:
> 
>   (Self-answered question)
> 
>   Based on the debug stack trace below, I conclude
>   that my failed block *IS* composed of buds in
>   the Wandering Journal.
> 
>   Any dissent?
> 
>                                     Atlant


Would you be willing to share your analysis script?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: I need help analyzing a failed UBIfs (resolved)
  2012-01-04 13:44     ` Reginald Perrin
@ 2012-01-04 14:38       ` Atlant Schmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Atlant Schmidt @ 2012-01-04 14:38 UTC (permalink / raw)
  To: 'Reginald Perrin', linux-mtd

Reginald:

> Would you be willing to share your analysis script?

  I would; I'll investigate with my superiors whether
  they would be willing to have me share it.

                        Atlant

-----Original Message-----
From: linux-mtd-bounces@lists.infradead.org [mailto:linux-mtd-bounces@lists.infradead.org] On Behalf Of Reginald Perrin
Sent: Wednesday, January 04, 2012 08:45
To: linux-mtd@lists.infradead.org
Subject: Re: I need help analyzing a failed UBIfs (resolved)

----- Original Message -----

> From: Atlant Schmidt <aschmidt@dekaresearch.com>
> To: Atlant Schmidt <aschmidt@dekaresearch.com>; "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
> Cc:
> Sent: Wednesday, January 4, 2012 8:03 AM
> Subject: RE: I need help analyzing a failed UBIfs (resolved)
>
> All:
>
>   (Self-answered question)
>
>   Based on the debug stack trace below, I conclude
>   that my failed block *IS* composed of buds in
>   the Wandering Journal.
>
>   Any dissent?
>
>                                     Atlant


Would you be willing to share your analysis script?


This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: I need help analyzing a failed UBIfs
  2012-01-02 19:11 I need help analyzing a failed UBIfs Atlant Schmidt
       [not found] ` <0A40042D85E7C84DB443060EC44B3FD33254FA3C58@dekaexchange07.deka.local>
@ 2012-01-04 16:03 ` Artem Bityutskiy
  1 sibling, 0 replies; 5+ messages in thread
From: Artem Bityutskiy @ 2012-01-04 16:03 UTC (permalink / raw)
  To: Atlant Schmidt; +Cc: linux-mtd

[-- Attachment #1: Type: text/plain, Size: 1806 bytes --]

Hi,

On Mon, 2012-01-02 at 14:11 -0500, Atlant Schmidt wrote:
>     o Is the failed LEB part of the UBIfs "Wandering
>       Journal" or is it storing actual, fully-committed
>       parts of the data volume such as iNodes, directories,
>       or file data extents?*

To get the list of uncommitted journal LEBs you have to analyze the Log
which is stored at the beginning of the volume and has a fixed address.

>   Looking at a data dump of the volume (from the MTD
>   level), is there an easy way to determine this?
>   For example, "All the Journal LEBs are listed in
>   a table at..."**

I think in case of error UBIFS prints a lot of information, if debugging
is enabled. It uses KERN_DEBUG level, though, which causes a lot of
confusion because people do not realize that they have a lot of info, it
is just not in their console and they have to type 'dmesg'. A patch
which changes this would be welcome.

Anyway, the info you want can be printed there as well.

>  * I'm assuming that LEBs are either fully-allocated to
>    the Wandering Journal or fully-available to the "data
>    volume"; if this assumption is incorrect, I'm sure
>    someone will correct me!

When new data arrives, the Journal subsystem allocates space. If there
is half-filled committed LEB, it may be allocated and its empty space
may be used.

Why half-filled committed LEBs may appear? E.g., if you unmount or do a
sync, we commit everything, including partially filled LEBs.

> ** I have a Perl script that I wrote that helps me automate
>    this and could easily extend my script to do more analysis
>    if I knew what I was looking for.

If it is a general purpose scripts, making it a part of the mtd-utils
could be a good idea.

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-04 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-02 19:11 I need help analyzing a failed UBIfs Atlant Schmidt
     [not found] ` <0A40042D85E7C84DB443060EC44B3FD33254FA3C58@dekaexchange07.deka.local>
2012-01-04 13:03   ` I need help analyzing a failed UBIfs (resolved) Atlant Schmidt
2012-01-04 13:44     ` Reginald Perrin
2012-01-04 14:38       ` Atlant Schmidt
2012-01-04 16:03 ` I need help analyzing a failed UBIfs Artem Bityutskiy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.