You are not logged in.
Pages: 1
I've been trying to install zram by following the zram-generator guide on https://wiki.archlinux.org/title/Zram#Usage_as_swap
I installed zram-generator by pacman, set the conf file on /etc/systemd somewhat the same to the one in the wiki, ran daemon-reload, then started the zram setup service and started systemd-zram-setup@zram0.service. Nothing happened, but when I did systemctl reboot a dependency error appeared on top of the screen:
[Failed] Failed to start create swap on /dev/zram0
[Depend] Dependency failed for Compressed Swap on /dev/zram0
Any way I can find the missing dependency?
Offline
Check the journal for the full error context. Share the contents here if you can't make sense of them but please include the full contents from a brief boot so we don't miss anything.
Para todos todo, para nosotros nada
Offline
Check the journal for the full error context. Share the contents here if you can't make sense of them but please include the full contents from a brief boot so we don't miss anything.
Here it is:
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 systemd-fstab-generator[3755]: Failed to create unit file '/run/systemd/generator/-.mount'>
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 systemd-fstab-generator[3755]: Failed to create unit file '/run/systemd/generator/boot.mou>
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 systemd-fstab-generator[3755]: Failed to create unit file '/run/systemd/generator/-.mount'>
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 systemd-fstab-generator[3755]: Failed to create unit file '/run/systemd/generator/boot.mou>
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 (sd-exec-[3751]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with ex>
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 systemd-ssh-generator[3761]: Binding SSH to AF_UNIX socket /run/ssh-unix-local/socket.
Nov 27 07:47:37 Linux-Enterprise-Premium-O69 systemd-ssh-generator[3761]: → connect via 'ssh .host' locally
Nov 27 07:47:39 Linux-Enterprise-Premium-O69 systemd[1]: Reloading finished in 1738 ms.
Nov 27 07:47:39 Linux-Enterprise-Premium-O69 sudo[3728]: pam_unix(sudo:session): session closed for user root
Nov 27 07:48:15 Linux-Enterprise-Premium-O69 sudo[3849]: steve : TTY=tty3 ; PWD=/home/steve ; USER=root ; COMMAND=/usr/bin/systemctl>
Nov 27 07:48:15 Linux-Enterprise-Premium-O69 sudo[3849]: pam_unix(sudo:session): session opened for user root(uid=0) by steve(uid=1000)
Nov 27 07:48:16 Linux-Enterprise-Premium-O69 systemd[1]: Expecting device /dev/zvol/tarta-zoot/swap-writeback...
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: dev-zvol-tarta\x2dzoot-swap\x2dwriteback.device: Job dev-zvol-tarta\x2dzoot-sw>
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: Timed out waiting for device /dev/zvol/tarta-zoot/swap-writeback.
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: Dependency failed for Create swap on /dev/zram0.
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: Dependency failed for Compressed Storage on /dev/zram0.
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: run-compressed\x2dmount-point.mount: Job run-compressed\x2dmount-point.mount/s>
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: systemd-zram-setup@zram0.service: Job systemd-zram-setup@zram0.service/start f>
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 systemd[1]: dev-zvol-tarta\x2dzoot-swap\x2dwriteback.device: Job dev-zvol-tarta\x2dzoot-sw>
Nov 27 07:49:46 Linux-Enterprise-Premium-O69 sudo[3849]: pam_unix(sudo:session): session closed for user root
Nov 27 07:54:22 Linux-Enterprise-Premium-O69 login[2986]: pam_unix(login:session): session closed for user steve
Offline
Sorry I didn't know how to copy the whole journal, I copied the part where it happened after I ran systemctl daemon-reload so hopefully it's bit any different.
Offline
That excerpt has been taken from a pager and has been truncated. Use the --no-p flag to avoid that in future.
You can use this to share a full journal:
journalctl -b | curl -F 'file=@-' 0x0.st
Post the URL here, thanks.
Para todos todo, para nosotros nada
Offline
here's one I did without sudo:
http://0x0.st/XRS2.txt
Last edited by kramkrimson (Today 07:23:37)
Offline
Nov 28 14:14:17 Linux-Enterprise-Premium-O69 kernel: zram: Added device: zram0
Nov 28 14:14:17 Linux-Enterprise-Premium-O69 systemd[1]: Created slice Slice /system/systemd-zram-setup.
Nov 28 14:14:17 Linux-Enterprise-Premium-O69 systemd[1]: Expecting device /dev/zram0...
Nov 28 14:14:22 Linux-Enterprise-Premium-O69 systemd[1]: Found device /dev/zram0.
Nov 28 14:14:22 Linux-Enterprise-Premium-O69 systemd[1]: Starting Create swap on /dev/zram0...
Nov 28 14:14:22 Linux-Enterprise-Premium-O69 kernel: zram0: detected capacity change from 0 to 1734656
Nov 28 14:14:24 Linux-Enterprise-Premium-O69 systemd-makefs[297]: /dev/zram0 successfully formatted as ext2 (label "zram0", uuid dbd05180-061d-4a88-9113-ca8f75176aee)
Nov 28 14:14:24 Linux-Enterprise-Premium-O69 systemd[1]: Finished Create swap on /dev/zram0.
Nov 28 14:14:24 Linux-Enterprise-Premium-O69 systemd[1]: Mounting Compressed Storage on /dev/zram0...
Nov 28 14:14:24 Linux-Enterprise-Premium-O69 kernel: EXT4-fs (zram0): mounting ext2 file system using the ext4 subsystem
Nov 28 14:14:24 Linux-Enterprise-Premium-O69 kernel: EXT4-fs (zram0): mounted filesystem dbd05180-061d-4a88-9113-ca8f75176aee r/w without journal. Quota mode: none.
Nov 28 14:14:24 Linux-Enterprise-Premium-O69 systemd[1]: Mounted Compressed Storage on /dev/zram0.
Nov 28 14:20:32 Linux-Enterprise-Premium-O69 sudo[1065]: steve : TTY=pts/0 ; PWD=/home/steve ; USER=root ; COMMAND=/usr/bin/systemctl start systemd-zram-setup@zram0.service
So where's the problem?
What's the output of
swapon
Sidebar
Nov 28 14:20:10 Linux-Enterprise-Premium-O69 systemd-fstab-generator[1010]: Failed to create unit file '/run/systemd/generator/-.mount', as it already exists. Duplicate entry in '/etc/fstab'?
Nov 28 14:20:10 Linux-Enterprise-Premium-O69 systemd-fstab-generator[1010]: Failed to create unit file '/run/systemd/generator/boot.mount', as it already exists. Duplicate entry in '/etc/fstab'?
Nov 28 14:20:10 Linux-Enterprise-Premium-O69 systemd-fstab-generator[1010]: Failed to create unit file '/run/systemd/generator/-.mount', as it already exists. Duplicate entry in '/etc/fstab'?
Nov 28 14:20:10 Linux-Enterprise-Premium-O69 systemd-fstab-generator[1010]: Failed to create unit file '/run/systemd/generator/boot.mount', as it already exists. Duplicate entry in '/etc/fstab'?
Clean up your fstab, nb. that the order there matters. In doubt post it.
Offline
Problem is there is no output on swapon, and zram is not being used. I tried to recreate the dependency issue after reboot and got this eventually: http://0x0.st/XRQs.txt
I checked fstab and there's nothing related to /run or generator besides some /dev/sda. Will removing those files help?
Last edited by kramkrimson (Today 08:34:29)
Offline
Do you have a zram entry in your fstab?
Is systemd-zram-setup@zram0.service enabled?
systemctl status systemd-zram-setup@zram0.service
Offline
No I don't have zram in my fstab. systemd-zram-setup@zram0.service failed to start with the error I gave you.
Offline
I found out zramswap doesn't have the same issue. Sorry for the trouble everyone.
Last edited by kramkrimson (Today 12:45:01)
Offline
Pages: 1