Skip to content

zram: modprobe: ERROR: could not insert 'zram': Invalid argument #146383

@ElXreno

Description

@ElXreno

Describe the bug

After update zram-reloader.service can't properly reload zram module. Reproducible only with nixos-rebuild switch.

Job for zram-reloader.service failed because the control process exited with error code.
See "systemctl status zram-reloader.service" and "journalctl -xeu zram-reloader.service" for details.

journalctl -eu zram-reloader.service

Nov 17 14:42:19 Fujitsu-AH531-Laptop systemd[1]: Stopping Reload zram kernel module when number of devices changes...
Nov 17 14:42:19 Fujitsu-AH531-Laptop systemd[1]: zram-reloader.service: Deactivated successfully.
Nov 17 14:42:19 Fujitsu-AH531-Laptop systemd[1]: Stopped Reload zram kernel module when number of devices changes.
Nov 17 14:42:23 Fujitsu-AH531-Laptop modprobe[309454]: modprobe: ERROR: could not insert 'zram': Invalid argument
Nov 17 14:42:22 Fujitsu-AH531-Laptop systemd[1]: Starting Reload zram kernel module when number of devices changes...
Nov 17 14:42:23 Fujitsu-AH531-Laptop modprobe[309486]: modprobe: ERROR: could not insert 'zram': Invalid argument
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: zram-reloader.service: Main process exited, code=exited, status=1/FAILURE
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: zram-reloader.service: Failed with result 'exit-code'.
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: Failed to start Reload zram kernel module when number of devices changes.
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: Starting Reload zram kernel module when number of devices changes...
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: zram-reloader.service: Main process exited, code=exited, status=1/FAILURE
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: zram-reloader.service: Failed with result 'exit-code'.
Nov 17 14:42:23 Fujitsu-AH531-Laptop systemd[1]: Failed to start Reload zram kernel module when number of devices changes.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Enable zram and switch to 2fa8626;
  2. Reboot;
  3. Then switch to 931ab05;
  4. See the logs.

Expected behavior

Successful module reload.

Screenshots

None.

Additional context

None.

Notify maintainers

@danbst
@lukegb

Metadata

nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.14.16-lqx1, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5pre20211007_844dd90`
 - channels(root): `"nixos-21.11pre323790.5f0194220f2"`
 - nixpkgs: `/nix/store/66zlifjkdndc92mg0wbbcickzwwrvkjp-source`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  - zramSwap.*
# a list of nixos modules affected by the problem
module:
  - config/zram.nix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions