Looing for help zramctl

GatekeeperZA

New Member
Nov 27, 2024
1
0
1
Ok some how I was busy setting up zram everything was working great until...
logs started filling up on /var/log, noticed it was mapped to /dev/zram1 with allocation of 50M <-- which hell knows how this was assigned
this unfortunely is tiny and am in a pickle as it fills up upon boot with logs indicating : No space left on device
I have tried to resize /dev/zram1 both manually and with editing : /etc/systemd/zram-generator.conf adding the [zram0] nad [zram1] fields with max-zram-size=4096 but no success.

Feb 21 21:01:03 pveproxy[6963]: Warning: unable to close filehandle GEN5 properly: No space left on device at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1929.
Feb 21 21:01:03 pveproxy[6963]: error writing access log
Feb 21 21:01:03 pveproxy[6963]: worker exit

:/# zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle 7.8G 4K 74B 12K 8 [SWAP]
/dev/zram1 zstd 50M 396K 38.9K 792K 8 /var/log

sooo to at least have a temp fix is to remove /var/log/* and recreate the files it complains about.
/dev/zram1 47M 316K 44M 1% /var/log

If anyone has any ideas of has come accross an issue like this please help,
Please and thanks in advance as I have not come accross a solution the whole day :(
 
Take a look into /etc/default/zramswap .

How did I know that? You can list all files of a package you just installed: dpkg -L zram-tools and look for "/etc"... ;-)
 
  • Like
Reactions: Kingneutron