* UBIFS mount error: No space left on device
@ 2012-04-23 12:34 Matteo Mattei
2012-04-28 11:48 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Matteo Mattei @ 2012-04-23 12:34 UTC (permalink / raw)
To: linux-mtd
Hi guys,
After about 2 weeks with continuous read/write stress operation (w/o
powercycles) I moved a board to the power-cycles reliability lab to
perform also some other tests.
After a while I had an error during mounting the filesystem.
After a further analysis seems that there is not enough space to mount
the device (I don't know who is the responsible for this because there
is a quite big empty space in the device).
What is strange is that in read-only mode I am able to mount it.
Software and environment:
- linux kernel 2.6.32 (from TI)
- ubifs backport (from git://git.infradead.org/~dedekind/ubifs-v2.6.32.git).
- 8-bit BCH.
- UBIFS mounted with no compression.
- usage of ubiformat instead of flash_eraseall for the first
filesystem initialization.
Hardware:
- CPU: OMAP3530.
- NAND chips: Micron MT29F4G08ABBDAH4-IT.
I have the board that failed in this condition:
[root@myhost /]# mount -t ubifs ubi0:Filesystem /rootfs -o
sync,noatime,compr=none
UBIFS: recovery needed
...bch correct (1 512 byte) count=1
mount: mounting ubi0:Filesystem on /rootfs failed: No space left on device
[root@myhost /]#
[root@myhost /]#
[root@myhost /]# mount
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /dev type devtmpfs (rw,relatime,size=107880k,nr_inodes=26970,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
[root@myhost /]#
[root@myhost /]#
[root@myhost /]# mount -t ubifs ubi0:Filesystem /rootfs -o
ro,sync,noatime,compr=none
UBIFS: recovery needed
UBIFS: recovery deferred
UBIFS: mounted UBI device 0, volume 0, name "Filesystem"
UBIFS: mounted read-only
UBIFS: file system size: 840708096 bytes (821004 KiB, 801 MiB, 6621 LEBs)
UBIFS: journal size: 33521664 bytes (32736 KiB, 31 MiB, 264 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: none
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[root@myhost /]#
[root@myhost /]#
[root@myhost /]# mount
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /dev type devtmpfs (rw,relatime,size=107880k,nr_inodes=26970,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
ubi0:Filesystem on /rootfs type ubifs (ro,sync,noatime,compr=none)
[root@myhost /]#
[root@myhost /]#
[root@myhost /]# df -h
Filesystem Size Used Available Use% Mounted on
none 105.4M 0 105.4M 0% /dev
ubi0:Filesystem 740.9M 523.7M 212.5M 71% /rootfs
[root@myhost /]#
[root@myhost /]#
[root@myhost /]# mount -o remount,rw /rootfs
UBIFS: completing deferred recovery
mount: mounting ubi0:Filesystem on /rootfs failed: No space left on device
[root@myhost /]#
Can you clarify why this strange behavior happened?
Maybe there is not enough space in the journal?!
Is there a way to avoid this or a workaround to let me to recover the board?
I have also one other question but not strictly related to this issue
(maybe there are already some other threads on this, but I didn't find
the answer): Do the UBI and UBIFS handle the erased space?
If so, how do they handle it?
Thanks a lot for your time,
Matteo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: UBIFS mount error: No space left on device
2012-04-23 12:34 UBIFS mount error: No space left on device Matteo Mattei
@ 2012-04-28 11:48 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-04-28 11:48 UTC (permalink / raw)
To: Matteo Mattei; +Cc: linux-mtd
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
On Mon, 2012-04-23 at 14:34 +0200, Matteo Mattei wrote:
> Hi guys,
>
> After about 2 weeks with continuous read/write stress operation (w/o
> powercycles) I moved a board to the power-cycles reliability lab to
> perform also some other tests.
> After a while I had an error during mounting the filesystem.
>
> After a further analysis seems that there is not enough space to mount
> the device (I don't know who is the responsible for this because there
> is a quite big empty space in the device).
Yeah, I fixed several issues with this symptom in the past, probably not
all of them.
> Can you clarify why this strange behavior happened?
Probably a bug.
> Maybe there is not enough space in the journal?!
May be. I'd need your image to take a look - did you save it?
> Is there a way to avoid this or a workaround to let me to recover the board?
Well, you can re-size the UBI volume a bit and add a couple more LEBs to
work this around.
> I have also one other question but not strictly related to this issue
> (maybe there are already some other threads on this, but I didn't find
> the answer): Do the UBI and UBIFS handle the erased space?
> If so, how do they handle it?
I do not understand the question.
--
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] 2+ messages in thread
end of thread, other threads:[~2012-04-28 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 12:34 UBIFS mount error: No space left on device Matteo Mattei
2012-04-28 11:48 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).