You are not logged in.

#1 2012-06-01 18:10:36

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

[SOLVED] Can't run zram.service systemd!

Hi!
As title said, i'm finally trying systemd out.
Well everything is good, but zram.service: i enabled it, but it seems to not work, for some reason.

systemctl status zram.service 
zram.service - Compressed RAM block devices
	  Loaded: loaded (/usr/lib/systemd/system/zram.service; enabled)
	  Active: failed (Result: exit-code) since Fri, 01 Jun 2012 19:36:57 +0200; 5min ago
	 Process: 248 ExecStart=/usr/lib/systemd/scripts/zramctrl start (code=exited, status=2)
	  CGroup: name=systemd:/system/zram.service
journalctl | grep zram
Jun 01 19:36:56 arch kernel: zram: module is from the staging directory, t...ed.
Jun 01 19:36:56 arch kernel: zram: Unknown parameter `num_devices'
Jun 01 19:36:56 arch zramctrl[248]: ERROR: could not insert 'zram': Unknown...g)
Jun 01 19:36:57 arch zramctrl[248]: awk: linea com.:18: (FILENAME=/proc/mem...e)
Jun 01 19:36:57 arch systemd[1]: zram.service: main process exited, code=ex...=2
Jun 01 19:36:57 arch systemd[1]: Unit zram.service entered failed state.
Jun 01 19:42:56 arch kernel: zram: module is from the staging directory, t...ed.
Jun 01 19:42:56 arch kernel: zram: Unknown parameter `num_devices'
Jun 01 19:42:56 arch zramctrl[1368]: ERROR: could not insert 'zram': Unknow...g)
Jun 01 19:42:56 arch zramctrl[1368]: awk: linea com.:18: (FILENAME=/proc/me...e)
Jun 01 19:42:56 arch systemd[1]: zram.service: main process exited, code=ex...=2
Jun 01 19:42:56 arch systemd[1]: Unit zram.service entered failed state.

Is this my problem? or is the zram.service failing?
Thanks!

EDIT: the error is this:

/usr/lib/systemd/scripts/zramctrl start
ERROR: could not insert 'zram': Unknown symbol in module, or unknown parameter (see dmesg)
awk: linea com.:18: (FILENAME=/proc/meminfo FNR=45) fatale: non posso re-dirigere a `/sys/block/zram0/disksize' (File o directory non esistente)

Translated in english, it means: "fatal: can't redirect to /sys/block/zram0/disksize (file or directory not found).
and from dmesg:

[  787.856652] zram: module is from the staging directory, the quality is unknown, you have been warned.
[  787.856898] zram: Unknown parameter `num_devices'

I used zramswap, and everything went well, so, what is the problem?
Thanks!

It seems this service was updated for kernel 3.4, and the diff told me where is the error (at least, for kernel 3.3!) : https://github.com/falconindy/systemd-a … /126/files . Changed line 18 and everything is good!

Last edited by nierro (2012-06-01 20:55:22)

Offline

Board footer

Powered by FluxBB