zram-config throwing some errors on boot

Asked by flrnd

I noticed that zram-config throw some errors on boot (after checking logs). Here are some examples:

kernel: zram: Cannot change disksize for initialized device
init-zram-swapping[1039]: /usr/bin/init-zram-swapping: 21: echo: echo: I/O error
init-zram-swapping[1109]: mkswap: error: /dev/zram0 is mounted; will not make swapspace
init-zram-swapping[1124]: swapon: /dev/zram0: swapon failed: Device or resource busy

systemd[1]: zram-config.service: Main process exited, code=exited, status=255/EXCEPTION
systemd[1]: zram-config.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Initializes zram swaping.

> cat /proc/swaps

       │ File: /proc/swaps

   1 │ Filename Type Size Used Priority
   2 │ /dev/zram0 partition 65532 0 100
   3 │ /dev/zram1 partition 65532 0 5
   4 │ /dev/zram2 partition 65532 0 100
   5 │ /dev/zram3 partition 65532 0 100

I saw some old bugs similar to this, but none opened at this moment. I'm not sure how to proceed before starting any bug report. Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu zram-config Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you test your RAM health as a good first step
I assume you MD5 tested the ISO you downloaded

Revision history for this message
flrnd (flrnd) said :
#2

Thank you, but I'm afraid my RAM health is just fine. I have 3 machines giving the exact same error 2 Ubuntus and one Xubuntu. On Fedora on the other hand the same machines run with ZRAM just fine.

Revision history for this message
flrnd (flrnd) said :
#3

The problem is easy reproducible, it seems that the kernel initializes the zram partitions before systemd, resulting in those errors.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#4

I suggest you report a bug

Revision history for this message
flrnd (flrnd) said :
#5

Thanks, I'll do.

Revision history for this message
flrnd (flrnd) said :
#6

Thanks actionparsnip, that solved my question.