Jump to content

zram mount disappeared


Claes-Fredrik Mannby

Recommended Posts

I have an Ubuntu 20.04.06 system where my /var/log zram mount ran out of space. I took a few steps to address this (see below), and after rebooting, /var/log is no longer a zram mount. I've tried to find mentions of zram or ramlog in log files, but can't find anything that looks like an error message. /etc/default/armbian-zram-config  and /etc/default/armbian-ramlog both still show they're enabled. Any idea how I can fix ramlog to come back up?

 

- mv auth.log ../log.hdd/auth.log.240912

- mv mail.log ../log.hdd/mail.log.240912

cd ../log.hdd

gzip auth.log.240912

gzip mail.log.240912

df -h

# df showed /var/log as still full

# it seems the moved and deleted files were still open for writing by apps

cd ../log

touch auth.log

touch mail.log

shutdown -r now

 

Now /var/log is 17M, and log.hdd is 940K. log.hdd used to be much bigger.

 

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

I found some errors:

./log/syslog:Sep 12 08:56:15 o2 systemd[1]: dev-zram1.device: Job dev-zram1.device/start timed out.
./log/syslog:Sep 12 08:56:15 o2 systemd[1]: Timed out waiting for device /dev/zram1.
./log/syslog:Sep 12 08:56:15 o2 systemd[1]: dev-zram1.device: Job dev-zram1.device/start failed with result 'timeout'.

 

Searching this online, it seems it can be a kernel version mismatch issue (https://bbs.archlinux.org/viewtopic.php?id=278441). Everything in /boot is 6.6.44-current-sunxi, except uInitrd, which is 6.6.31-current-sunxi. Maybe this is the problem. If so, any idea how to fix it?

Link to comment
Share on other sites

12 hours ago, Claes-Fredrik Mannby said:

I found some errors

 

If you would provide all logs, not just what you think is the problem, armbianmonitor -u (its a part of board support package, armbian-bsp-BOARD-BRANCH), perhaps someone would see something. Approaching this blindly is very expensive for time. Which nobody has. Since it seems you have a very old build, it is recommended to start from scratch anyway. You can try to run this: update-initramfs

Link to comment
Share on other sites

armbianmonitor doesn't exist on the system

o2:~:% armbianmonitor -u
zsh: command not found: armbianmonitor
o2:~:% locate armbianmonitor
/etc/armbianmonitor
/etc/armbianmonitor/datasources
/etc/armbianmonitor/datasources/soctemp

 

Is it safe to run the following?

version=6.6.44-current-sunxi

mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-$version /boot/uInitrd-$version

 

and then link to the generated uInitrd?

 

I have no idea if

Load Address: 00000000
Entry Point:  00000000

are safe/correct

 

Which log files should I provide?

Link to comment
Share on other sites

If armbianmonitor script is not present on your OS it is either VERY old or not a genuine Armbian image. Since Focal is just a few years I guess latter or it has been removed.

 

Anyway grab the script from here, set chmod +x and ./armbianmonitor -u

 

https://raw.githubusercontent.com/armbian/build/dfe8fc39e84f77718a86ab587b6851d872942e91/packages/bsp/common/usr/bin/armbianmonitor

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines