All of lore.kernel.org
 help / color / mirror / Atom feed
* UBIFS Corrupt during power failure
@ 2009-03-24 13:45 Eric Holmberg
  2009-03-24 15:30 ` Adrian Hunter
  0 siblings, 1 reply; 89+ messages in thread
From: Eric Holmberg @ 2009-03-24 13:45 UTC (permalink / raw)
  To: linux-mtd

Using kernel 2.6.27 on NOR flash memory, I'm seeing corruption of UBIFS
when power is removed from the device during a write to flash.  We are
doing this as a torture test and it appears that we typically make it
around 50 power cycles during the Linux boot-up sequence before the
failure occurs.

Note that the system runs fine if we do continuous writes, but do an
orderly shutdown.  Pulling the power during a write or during recovery
seems to cause this issue.
 
Kernel:  2.6.27
Memory type:  NOR Flash
Usage pattern:  Robustness testing - removing power during normal
operation
Result:  Unable to mount UBIFS resulting in total loss of data
Write caching:  Enabled

I'm going to disabled write caching and see if that improves
reliability.

My main questions are:
 1) Is this a known issue
 2) Has this been fixed in 2.6.28
 3) Is there a way to do a recovery
 4) Any other robustness suggestions

Thanks,

Eric Holmberg

Kernel log: 
 
[42949373.970000] Using physmap partition information
[42949373.970000] Creating 3 MTD partitions on "physmap-flash.1":
[42949373.980000] 0x00000000-0x00200000 : "kernel"
[42949373.990000] 0x00200000-0x00400000 : "kernel-failsafe"
[42949373.990000] 0x00400000-0x02000000 : "root"
[42949374.010000] UBI: attaching mtd7 to ubi0
[42949374.010000] UBI: physical eraseblock size:   131072 bytes (128
KiB)
[42949374.020000] UBI: logical eraseblock size:    130944 bytes
[42949374.020000] UBI: smallest flash I/O unit:    1
[42949374.030000] UBI: VID header offset:          64 (aligned 64)
[42949374.030000] UBI: data offset:                128
[42949374.920000] UBI: attached mtd7 to ubi0
[42949374.930000] UBI: MTD device name:            "root"
[42949374.930000] UBI: MTD device size:            28 MiB
[42949374.940000] UBI: number of good PEBs:        224
[42949374.940000] UBI: number of bad PEBs:         0
[42949374.950000] UBI: max. allowed volumes:       128
[42949374.950000] UBI: wear-leveling threshold:    4096
[42949374.960000] UBI: number of internal volumes: 1
[42949374.960000] UBI: number of user volumes:     1
[42949374.970000] UBI: available PEBs:             0
[42949374.970000] UBI: total number of reserved PEBs: 224
[42949374.980000] UBI: number of PEBs reserved for bad PEB handling: 0
[42949374.980000] UBI: max/mean erase counter: 7/2
...
[42949375.450000] UBIFS: recovery needed
[42949375.510000] UBIFS error (pid 1): ubifs_scan: corrupt empty space
at LEB 4:44512
[42949375.510000] UBIFS error (pid 1): ubifs_scanned_corruption:
corrupted data at LEB 4:44512
[42949375.540000] UBIFS error (pid 1): ubifs_scan: LEB 4 scanning failed
[42949375.590000] UBIFS error (pid 1): ubifs_recover_leb: corrupt empty
space at LEB 4:480
[42949375.590000] UBIFS error (pid 1): ubifs_scanned_corruption:
corrupted data at LEB 4:480
[42949375.620000] UBIFS error (pid 1): ubifs_recover_leb: LEB 4 scanning
failed
[42949375.630000] VFS: Cannot open root device "ubi0:rootfs" or
unknown-block(0,0)
[42949375.640000] Please append a correct "root=" boot option; here are
the available partitions:
[42949375.640000] 1f00         16 mtdblock0 (driver?)
[42949375.650000] 1f01          8 mtdblock1 (driver?)
[42949375.650000] 1f02          8 mtdblock2 (driver?)
[42949375.660000] 1f03         32 mtdblock3 (driver?)
[42949375.660000] 1f04        960 mtdblock4 (driver?)
[42949375.670000] 1f05       2048 mtdblock5 (driver?)
[42949375.670000] 1f06       2048 mtdblock6 (driver?)
[42949375.680000] 1f07      28672 mtdblock7 (driver?)
[42949375.680000] Kernel panic - not syncing: VFS: Unable to mount root
fs on unknown-block(0,0)

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

end of thread, other threads:[~2009-08-09  4:59 UTC | newest]

Thread overview: 89+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-24 13:45 UBIFS Corrupt during power failure Eric Holmberg
2009-03-24 15:30 ` Adrian Hunter
2009-03-24 17:04   ` Eric Holmberg
2009-03-24 18:16     ` Eric Holmberg
2009-03-25  6:32     ` Artem Bityutskiy
2009-03-26  6:59     ` Artem Bityutskiy
2009-03-26 14:09       ` Eric Holmberg
2009-03-30 19:00         ` Eric Holmberg
2009-03-31 14:45           ` Artem Bityutskiy
2009-04-10 12:25           ` Artem Bityutskiy
2009-04-10 14:27             ` Eric Holmberg
2009-04-10 15:17               ` Artem Bityutskiy
2009-04-10 15:49                 ` Artem Bityutskiy
2009-04-10 17:00                   ` Eric Holmberg
2009-04-10 17:11                     ` Artem Bityutskiy
2009-04-10 18:33                       ` Eric Holmberg
2009-04-14  6:11                         ` Artem Bityutskiy
2009-04-14 15:09                           ` Eric Holmberg
2009-04-14 15:45                             ` Artem Bityutskiy
2009-04-14 15:53                               ` Artem Bityutskiy
2009-04-14 18:00                           ` Jamie Lokier
2009-04-15  6:00                             ` Artem Bityutskiy
2009-04-15 15:17                               ` Eric Holmberg
2009-04-15 16:09                                 ` Jamie Lokier
2009-04-15 16:12                                   ` Artem Bityutskiy
2009-04-15 16:32                                   ` Eric Holmberg
2009-04-15 16:44                                     ` Jamie Lokier
2009-04-15 18:26                                       ` Nicolas Pitre
2009-04-15 18:38                                         ` Jamie Lokier
2009-04-15 19:33                                           ` Eric Holmberg
2009-04-15 20:15                                             ` Nicolas Pitre
2009-04-15 20:46                                               ` Jamie Lokier
2009-04-16  5:51                                             ` Artem Bityutskiy
2009-04-16  5:46                                     ` Artem Bityutskiy
2009-04-16 21:34                                       ` Jamie Lokier
2009-04-17  8:56                                         ` Artem Bityutskiy
2009-04-17 13:51                                           ` Jamie Lokier
2009-04-17 14:36                                             ` Artem Bityutskiy
2009-04-17 23:49                                               ` Eric Holmberg
2009-05-15  7:16                                                 ` Stefan Roese
2009-05-18 17:30                                                   ` Eric Holmberg
2009-05-19  8:18                                                     ` Artem Bityutskiy
2009-05-19 22:16                                                       ` Eric Holmberg
2009-05-25  8:38                                                         ` Artem Bityutskiy
2009-05-25 12:54                                                           ` Artem Bityutskiy
2009-05-25 12:57                                                             ` Artem Bityutskiy
2009-07-03 13:26                                                         ` Artem Bityutskiy
2009-07-03 13:29                                                           ` Artem Bityutskiy
2009-07-03 13:33                                                             ` Urs Muff
2009-07-03 14:05                                                               ` Artem Bityutskiy
2009-07-03 14:47                                                                 ` Urs Muff
2009-07-03 14:58                                                                   ` Artem Bityutskiy
2009-07-06  4:30                                                                     ` Artem Bityutskiy
2009-07-06  4:51                                                                       ` Artem Bityutskiy
2009-07-06  6:43                                                                         ` Artem Bityutskiy
2009-07-07  6:46                                                                           ` Artem Bityutskiy
2009-07-07  7:05                                                                             ` Urs Muff
2009-07-13 18:22                                                                             ` Eric Holmberg
2009-07-14  5:34                                                                               ` Artem Bityutskiy
2009-07-15 20:52                                                                               ` Jamie Lokier
2009-07-15 21:35                                                                                 ` Eric Holmberg
2009-07-16  7:33                                                                                   ` Artem Bityutskiy
2009-07-24  6:49                                                                                   ` Artem Bityutskiy
2009-07-24 12:00                                                                                     ` Artem Bityutskiy
2009-07-24 13:39                                                                                       ` Eric Holmberg
2009-07-24 14:55                                                                                         ` Artem Bityutskiy
2009-07-24 14:05                                                                                     ` Jamie Lokier
2009-07-24 14:09                                                                                       ` Artem Bityutskiy
2009-07-16  7:09                                                                                 ` Artem Bityutskiy
2009-07-16 16:49                                                                                   ` Jamie Lokier
2009-07-17  7:07                                                                                     ` Artem Bityutskiy
2009-07-15 20:55                                                                       ` Jamie Lokier
2009-07-15 21:36                                                                         ` Eric Holmberg
2009-07-15 22:09                                                                           ` Jamie Lokier
2009-07-16  7:22                                                                             ` Artem Bityutskiy
2009-07-16  7:16                                                                           ` Artem Bityutskiy
2009-07-16 20:54                                                                             ` Gilles Casse
2009-07-17  0:29                                                                               ` Carl-Daniel Hailfinger
2009-07-24 14:08                                                                                 ` Jamie Lokier
2009-07-16  7:14                                                                         ` Artem Bityutskiy
2009-06-03  8:08                                                   ` Artem Bityutskiy
2009-06-03  8:25                                                     ` Stefan Roese
2009-06-03 13:50                                                     ` Eric Holmberg
2009-06-07 10:16                                                       ` Artem Bityutskiy
2009-07-28 12:01                                                         ` news
2009-07-28 12:24                                                           ` Adrian Hunter
2009-07-28 17:19                                                           ` Eric Holmberg
2009-08-09  4:59                                                           ` Artem Bityutskiy
2009-04-17  8:58                                         ` 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.