You are not logged in.

#1 2022-06-20 17:10:07

koko271
Member
Registered: 2022-05-19
Posts: 53

[SOLVED]Fail to activate /dev/zram0 when booting

Hi,

I configured zram exactly following the wiki. When I boot the system, the console outputs

 Fail to activate /dev/zram0 
 Denpendencies failed for swaps

I use swapfile and zram at the same time.
What should I do resolve it?

Last edited by koko271 (2022-06-23 13:16:15)

Offline

#2 2022-06-20 20:42:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,569

Re: [SOLVED]Fail to activate /dev/zram0 when booting

Post more context. The actual system journal and also check "lsmod | grep zram"

Offline

#3 2022-06-21 04:32:05

koko271
Member
Registered: 2022-05-19
Posts: 53

Re: [SOLVED]Fail to activate /dev/zram0 when booting

seth wrote:

Post more context. The actual system journal and also check "lsmod | grep zram"

uploaded the log.

Jun 21 00:18:45 KoKo kernel: zram: Added device: zram0
Jun 21 00:18:45 KoKo systemd[1]: Starting Apply Kernel Variables...
Jun 21 00:18:45 KoKo systemd-journald[270]: Time spent on flushing to /var/log/journal/86dcbaa441b34bcc8a0d0e66a44d7eb0 is 8.340ms for 977 entries.
Jun 21 00:18:45 KoKo systemd-journald[270]: System Journal (/var/log/journal/86dcbaa441b34bcc8a0d0e66a44d7eb0) is 184.1M, max 4.0G, 3.8G free.
Jun 21 00:18:45 KoKo systemd-journald[270]: Received client request to flush runtime journal.
Jun 21 00:18:45 KoKo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 00:18:45 KoKo audit: BPF prog-id=9 op=LOAD
Jun 21 00:18:45 KoKo audit: BPF prog-id=10 op=LOAD
Jun 21 00:18:45 KoKo audit: BPF prog-id=11 op=LOAD
Jun 21 00:18:45 KoKo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 00:18:45 KoKo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udev-trigger comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 00:18:45 KoKo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=lvm2-monitor comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 00:18:45 KoKo systemd[1]: Finished Create Static Device Nodes in /dev.
Jun 21 00:18:45 KoKo systemd[1]: Starting Rule-based Manager for Device Events and Files...
Jun 21 00:18:45 KoKo systemd[1]: Finished Apply Kernel Variables.
Jun 21 00:18:45 KoKo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journal-flush comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 00:18:45 KoKo systemd[1]: Finished Coldplug All udev Devices.
Jun 21 00:18:45 KoKo systemd[1]: Finished Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
Jun 21 00:18:45 KoKo systemd[1]: Reached target Preparation for Local File Systems.
Jun 21 00:18:45 KoKo systemd[1]: Virtual Machine and Container Storage (Compatibility) was skipped because of a failed condition check (ConditionPathExists=/var/lib/machines.raw).
Jun 21 00:18:45 KoKo systemd[1]: Finished Flush Journal to Persistent Storage.
Jun 21 00:18:45 KoKo systemd[1]: Started Rule-based Manager for Device Events and Files.
Jun 21 00:18:45 KoKo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 00:18:45 KoKo mtp-probe[294]: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3"
Jun 21 00:18:45 KoKo mtp-probe[294]: bus: 2, device: 2 was not an MTP device
Jun 21 00:18:45 KoKo kernel: zram0: detected capacity change from 0 to 33554432
Jun 21 00:18:45 KoKo systemd[1]: Found device /dev/zram0.
Jun 21 00:18:45 KoKo systemd-udevd[287]: zram0: /etc/udev/rules.d/99-zram.rules:1 Failed to write ATTR{/sys/devices/virtual/block/zram0/disksize}, ignoring: Device or resource busy
Jun 21 00:18:45 KoKo systemd[1]: Created slice Slice /system/udisks2-zram-setup.
Jun 21 00:18:45 KoKo kernel: zram: Cannot change disksize for initialized device
Jun 21 00:18:45 KoKo systemd[1]: Activating swap /dev/zram0...
Jun 21 00:18:45 KoKo systemd[1]: First Boot Wizard was skipped because of a failed condition check (ConditionFirstBoot=yes).
Jun 21 00:18:45 KoKo systemd[1]: First Boot Complete was skipped because of a failed condition check (ConditionFirstBoot=yes).
Jun 21 00:18:45 KoKo systemd[1]: Rebuild Hardware Database was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
Jun 21 00:18:45 KoKo systemd[1]: Repartition Root Disk was skipped because all trigger condition checks failed.
Jun 21 00:18:45 KoKo systemd[1]: Create System Users was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
Jun 21 00:18:45 KoKo swapon[333]: swapon: /dev/zram0: swapon failed: Device or resource busy
Jun 21 00:18:45 KoKo systemd[1]: dev-zram0.swap: Swap process exited, code=exited, status=255/EXCEPTION
Jun 21 00:18:45 KoKo systemd[1]: dev-zram0.swap: Failed with result 'exit-code'.
Jun 21 00:18:45 KoKo systemd[1]: Failed to activate swap /dev/zram0.
Jun 21 00:18:45 KoKo systemd[1]: Dependency failed for Swaps.
Jun 21 00:18:45 KoKo systemd[1]: swap.target: Job swap.target/start failed with result 'dependency'.
Jun 21 00:18:45 KoKo systemd[1]: Mounting Temporary Directory /tmp...
Jun 21 00:18:45 KoKo systemd[1]: Mounted Temporary Directory /tmp.

and

$ lsmod | grep zram

zram                   45056  2

Last edited by koko271 (2022-06-23 10:27:58)

Offline

#4 2022-06-21 04:35:58

koko271
Member
Registered: 2022-05-19
Posts: 53

Re: [SOLVED]Fail to activate /dev/zram0 when booting

This error doesn't occur every boot

Last edited by koko271 (2022-06-21 04:38:53)

Offline

#5 2022-06-21 07:13:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,569

Offline

#6 2022-06-21 12:50:15

koko271
Member
Registered: 2022-05-19
Posts: 53

Re: [SOLVED]Fail to activate /dev/zram0 when booting

Offline

Board footer

Powered by FluxBB