* How to organize UBI volumes and power crash
@ 2018-10-02 7:42 "Мясоедов А.Ю."
2018-10-02 8:41 ` Richard Weinberger
0 siblings, 1 reply; 6+ messages in thread
From: "Мясоедов А.Ю." @ 2018-10-02 7:42 UTC (permalink / raw)
To: linux-mtd
I use UBIFS at my device. I'd like 2 UBIFS volumes, first volume for
work purposes, and second volume for logs omly. RootFS is in RAM.
Both volumes are R/W, but the first volume is not intended for permanent
writing. The second volume is intended for permanent writing (logs and
some data tables).
The second volume may be failured in casual power crash. But the first
volume would work.
Will it be safe to have only 1 mfd device, and 2 UBI volume on the mtd
device? Or I must to have 2 separate mtd devices with one UBI volume on
each? The second approach is not suitable because of device tree
modifications when I want to change volume sizes/
--
Andrey
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to organize UBI volumes and power crash
2018-10-02 7:42 How to organize UBI volumes and power crash "Мясоедов А.Ю."
@ 2018-10-02 8:41 ` Richard Weinberger
2018-10-02 8:53 ` "Мясоедов А.Ю."
0 siblings, 1 reply; 6+ messages in thread
From: Richard Weinberger @ 2018-10-02 8:41 UTC (permalink / raw)
To: myasoedovau; +Cc: linux-mtd @ lists . infradead . org
On Tue, Oct 2, 2018 at 9:43 AM "Мясоедов А.Ю." <myasoedovau@ircoc.vrn.ru> wrote:
>
> I use UBIFS at my device. I'd like 2 UBIFS volumes, first volume for
There is no such thing. You guess mean UBI volumes.
A UBIFS filesystem always sits ontop of a UBI volume.
> work purposes, and second volume for logs omly. RootFS is in RAM.
>
> Both volumes are R/W, but the first volume is not intended for permanent
> writing. The second volume is intended for permanent writing (logs and
> some data tables).
>
> The second volume may be failured in casual power crash. But the first
> volume would work.
Both UBI and UBIFS must not corrupt upon a powercut, if you face such an
issue, please report. This could be a bug or a hardware problem.
> Will it be safe to have only 1 mfd device, and 2 UBI volume on the mtd
> device? Or I must to have 2 separate mtd devices with one UBI volume on
> each? The second approach is not suitable because of device tree
> modifications when I want to change volume sizes/
The general recommendation is having the MTD partition and therefore the UBI
device as large as possible such that the wear leveling large.
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to organize UBI volumes and power crash
2018-10-02 8:41 ` Richard Weinberger
@ 2018-10-02 8:53 ` "Мясоедов А.Ю."
2018-10-02 8:56 ` Richard Weinberger
0 siblings, 1 reply; 6+ messages in thread
From: "Мясоедов А.Ю." @ 2018-10-02 8:53 UTC (permalink / raw)
To: Richard Weinberger; +Cc: linux-mtd
Thank ypu, Richard.
> Both UBI and UBIFS must not corrupt upon a powercut, if you face such an
issue, please report. This could be a bug or a hardware problem.
But http://www.linux-mtd.infradead.org/doc/ubifs.html#L_unstable_bits
says about such possible problems (unstable bits).
> The general recommendation is having the MTD partition and therefore
the UBI device as large as possible such that the wear leveling large.
02.10.2018 11:41, Richard Weinberger написал:
Do you mean one MTD partition for first UBI volume, and second MTD
partition for another one?
Andrey
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to organize UBI volumes and power crash
2018-10-02 8:53 ` "Мясоедов А.Ю."
@ 2018-10-02 8:56 ` Richard Weinberger
2018-10-02 9:13 ` "Мясоедов А.Ю."
0 siblings, 1 reply; 6+ messages in thread
From: Richard Weinberger @ 2018-10-02 8:56 UTC (permalink / raw)
To: Мясоедов А.Ю.,
linux-mtd
Cc: David Oberhollenzer (david.oberhollenzer@sigma-star.at)
Am Dienstag, 2. Oktober 2018, 10:53:00 CEST schrieb Мясоедов А.Ю.:
> Thank ypu, Richard.
>
> > Both UBI and UBIFS must not corrupt upon a powercut, if you face such an
> issue, please report. This could be a bug or a hardware problem.
>
> But http://www.linux-mtd.infradead.org/doc/ubifs.html#L_unstable_bits
> says about such possible problems (unstable bits).
This problem is highly theoretical and so far I have never seen it.
So far anyone that claimed to suffer from that was wrong and it turned out that
it was some other issue.
It is time to remove that paragraph from the website since it confuses user
over and over.
David, can you please file and merge a patch?
> > The general recommendation is having the MTD partition and therefore
> the UBI device as large as possible such that the wear leveling large.
> 02.10.2018 11:41, Richard Weinberger написал:
>
> Do you mean one MTD partition for first UBI volume, and second MTD
> partition for another one?
No, just one UBI device on one MTD partition with multiple UBI volumes.
Thanks,
//richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to organize UBI volumes and power crash
2018-10-02 8:56 ` Richard Weinberger
@ 2018-10-02 9:13 ` "Мясоедов А.Ю."
2018-10-02 9:17 ` Richard Weinberger
0 siblings, 1 reply; 6+ messages in thread
From: "Мясоедов А.Ю." @ 2018-10-02 9:13 UTC (permalink / raw)
To: Richard Weinberger; +Cc: linux-mtd
If so, the UBI/UBIFS is very good and reliable system.
It would be beautiful if linux-mtd.infradead.org will correct they
documentation. So I can tell my chief about FLASH partitions
organisation in my device.
Thank you, Richard
Andrey
> Am Dienstag, 2. Oktober 2018, 10:53:00 CEST schrieb Мясоедов А.Ю.:
>> Thank ypu, Richard.
>>
>>> Both UBI and UBIFS must not corrupt upon a powercut, if you face such an
>> issue, please report. This could be a bug or a hardware problem.
>>
>> But http://www.linux-mtd.infradead.org/doc/ubifs.html#L_unstable_bits
>> says about such possible problems (unstable bits).
> This problem is highly theoretical and so far I have never seen it.
> So far anyone that claimed to suffer from that was wrong and it turned out that
> it was some other issue.
>
> It is time to remove that paragraph from the website since it confuses user
> over and over.
> David, can you please file and merge a patch?
>
>> > The general recommendation is having the MTD partition and therefore
>> the UBI device as large as possible such that the wear leveling large.
>> 02.10.2018 11:41, Richard Weinberger написал:
>>
>> Do you mean one MTD partition for first UBI volume, and second MTD
>> partition for another one?
> No, just one UBI device on one MTD partition with multiple UBI volumes.
>
> Thanks,
> //richard
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to organize UBI volumes and power crash
2018-10-02 9:13 ` "Мясоедов А.Ю."
@ 2018-10-02 9:17 ` Richard Weinberger
0 siblings, 0 replies; 6+ messages in thread
From: Richard Weinberger @ 2018-10-02 9:17 UTC (permalink / raw)
To: Мясоедов А.Ю.
Cc: linux-mtd
Am Dienstag, 2. Oktober 2018, 11:13:35 CEST schrieb Мясоедов А.Ю.:
> If so, the UBI/UBIFS is very good and reliable system.
> It would be beautiful if linux-mtd.infradead.org will correct they
> documentation. So I can tell my chief about FLASH partitions
> organisation in my device.
Since we are hackers and not marketing experts our website sucks a little. ;-)
Thanks,
//richard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-10-02 9:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-02 7:42 How to organize UBI volumes and power crash "Мясоедов А.Ю."
2018-10-02 8:41 ` Richard Weinberger
2018-10-02 8:53 ` "Мясоедов А.Ю."
2018-10-02 8:56 ` Richard Weinberger
2018-10-02 9:13 ` "Мясоедов А.Ю."
2018-10-02 9:17 ` Richard Weinberger
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).