mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* (no subject)
@ 2023-02-15 17:36 Pintu Agarwal
  2023-03-17 11:19 ` ubi0 error: ubi_open_volume: cannot open device 0, volume 6, error -16 Pintu Agarwal
  0 siblings, 1 reply; 3+ messages in thread
From: Pintu Agarwal @ 2023-02-15 17:36 UTC (permalink / raw)
  To: open list, linux-fsdevel, linux-mtd

Hi,

We are seeing below "ubi errors" during booting.
Although this does not cause any functionality break, I am wondering
if there is any way to fix it ?
We are using Kernel 4.14 with UBI and squashfs (ubiblock) as volumes,
and with systemd.

Anybody have experienced the similar logs with ubi/squashfs and
figured out a way to avoid it ?
It seems like these open volumes are called twice, thus error -16
indicates (device or resource busy).
Or, are these logs expected because of squashfs or ubiblock ?
Or, do we need to add anything related to udev-rules ?

{
....
[  129.394789] ubi0 error: ubi_open_volume: cannot open device 0,
volume 6, error -16
[  129.486498] ubi0 error: ubi_open_volume: cannot open device 0,
volume 7, error -16
[  129.546582] ubi0 error: ubi_open_volume: cannot open device 0,
volume 8, error -16
[  129.645014] ubi0 error: ubi_open_volume: cannot open device 0,
volume 9, error -16
[  129.676456] ubi0 error: ubi_open_volume: cannot open device 0,
volume 6, error -16
[  129.706655] ubi0 error: ubi_open_volume: cannot open device 0,
volume 10, error -16
[  129.732740] ubi0 error: ubi_open_volume: cannot open device 0,
volume 7, error -16
[  129.811111] ubi0 error: ubi_open_volume: cannot open device 0,
volume 8, error -16
[  129.852308] ubi0 error: ubi_open_volume: cannot open device 0,
volume 9, error -16
[  129.923429] ubi0 error: ubi_open_volume: cannot open device 0,
volume 10, error -16

}

Thanks,
Pintu

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

* Re: ubi0 error: ubi_open_volume: cannot open device 0, volume 6, error -16
  2023-02-15 17:36 Pintu Agarwal
@ 2023-03-17 11:19 ` Pintu Agarwal
  2023-03-20  3:18   ` Zhihao Cheng
  0 siblings, 1 reply; 3+ messages in thread
From: Pintu Agarwal @ 2023-03-17 11:19 UTC (permalink / raw)
  To: open list, linux-fsdevel, linux-mtd

Hi,

Sorry, for missing the subject last time.

On Wed, 15 Feb 2023 at 23:06, Pintu Agarwal <pintu.ping@gmail.com> wrote:
>
> Hi,
>
> We are seeing below "ubi errors" during booting.
> Although this does not cause any functionality break, I am wondering
> if there is any way to fix it ?
> We are using Kernel 4.14 with UBI and squashfs (ubiblock) as volumes,
> and with systemd.
>
> Anybody have experienced the similar logs with ubi/squashfs and
> figured out a way to avoid it ?
> It seems like these open volumes are called twice, thus error -16
> indicates (device or resource busy).
> Or, are these logs expected because of squashfs or ubiblock ?
> Or, do we need to add anything related to udev-rules ?
>
> {
> ....
> [  129.394789] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 6, error -16
> [  129.486498] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 7, error -16
> [  129.546582] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 8, error -16
> [  129.645014] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 9, error -16
> [  129.676456] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 6, error -16
> [  129.706655] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 10, error -16
> [  129.732740] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 7, error -16
> [  129.811111] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 8, error -16
> [  129.852308] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 9, error -16
> [  129.923429] ubi0 error: ubi_open_volume: cannot open device 0,
> volume 10, error -16
>
> }
>

I see that the errors are reported by systemd-udevd and other processes.
Is there a way to fix it by some means ?
These logs actually consume lots of boot up time...

[   54.300726] ubi0 error: ubi_open_volume: comm: systemd-udevd, pid:
1460, cannot open device 0, volume 4, error -16
[   54.507095] ubi0 error: ubi_open_volume: comm: systemd-udevd, pid:
1469, cannot open device 0, volume 5, error -16
[   54.509816] ubi0 error: ubi_open_volume: comm: systemd-udevd, pid:
1465, cannot open device 0, volume 6, error -16
[   54.650627] ubi0 error: ubi_open_volume: comm: systemd-udevd, pid:
1469, cannot open device 0, volume 7, error -16
[   54.680203] ubi0 error: ubi_open_volume: comm: systemd-udevd, pid:
1445, cannot open device 0, volume 8, error -16
[   56.311902] ubi0 error: ubi_open_volume: comm: mtd_probe, pid:
2042, cannot open device 0, volume 4, error -16
[   56.795532] ubi0 error: ubi_open_volume: comm: mtd_probe, pid:
2043, cannot open device 0, volume 5, error -16
[   57.087962] ubi0 error: ubi_open_volume: comm: mtd_probe, pid:
2044, cannot open device 0, volume 6, error -16
[   57.130853] ubi0 error: ubi_open_volume: comm: mtd_probe, pid:
2047, cannot open device 0, volume 8, error -16
[   57.345761] ubi0 error: ubi_open_volume: comm: mtd_probe, pid:
2046, cannot open device 0, volume 7, error -16


Thanks,
Pintu

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

* Re: ubi0 error: ubi_open_volume: cannot open device 0, volume 6, error -16
  2023-03-17 11:19 ` ubi0 error: ubi_open_volume: cannot open device 0, volume 6, error -16 Pintu Agarwal
@ 2023-03-20  3:18   ` Zhihao Cheng
  0 siblings, 0 replies; 3+ messages in thread
From: Zhihao Cheng @ 2023-03-20  3:18 UTC (permalink / raw)
  To: Pintu Agarwal, open list, linux-fsdevel, linux-mtd

Hi,
> Hi,
> 
> Sorry, for missing the subject last time.
> 
> On Wed, 15 Feb 2023 at 23:06, Pintu Agarwal <pintu.ping@gmail.com> wrote:
>>
>> Hi,
>>
>> We are seeing below "ubi errors" during booting.
>> Although this does not cause any functionality break, I am wondering
>> if there is any way to fix it ?
>> We are using Kernel 4.14 with UBI and squashfs (ubiblock) as volumes,
>> and with systemd.
>>
>> Anybody have experienced the similar logs with ubi/squashfs and
>> figured out a way to avoid it ?
>> It seems like these open volumes are called twice, thus error -16
>> indicates (device or resource busy).
>> Or, are these logs expected because of squashfs or ubiblock ?
>> Or, do we need to add anything related to udev-rules ?
>>
>> {
>> ....
>> [  129.394789] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 6, error -16
>> [  129.486498] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 7, error -16
>> [  129.546582] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 8, error -16
>> [  129.645014] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 9, error -16
>> [  129.676456] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 6, error -16
>> [  129.706655] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 10, error -16
>> [  129.732740] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 7, error -16
>> [  129.811111] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 8, error -16
>> [  129.852308] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 9, error -16
>> [  129.923429] ubi0 error: ubi_open_volume: cannot open device 0,
>> volume 10, error -16
>>
>> }
>>
> 
> I see that the errors are reported by systemd-udevd and other processes.
> Is there a way to fix it by some means ?
> These logs actually consume lots of boot up time...

I guess that systemd-udevd and mtd_probe are racing to open the same 
volume with mode UBI_EXCLUSIVE or UBI_READWRITE, and these error 
messages are in expected. How about temporarily shutting down 
systemd-udevd during booting?


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

end of thread, other threads:[~2023-03-20  3:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 17:36 Pintu Agarwal
2023-03-17 11:19 ` ubi0 error: ubi_open_volume: cannot open device 0, volume 6, error -16 Pintu Agarwal
2023-03-20  3:18   ` Zhihao Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®