What I did:
- followed your link and instructions
manually append a -x in zram-config like this:
-
#! /bin/bash -x
-
sudo sh install.sh
-
Installation performed without errors
-
Rebooting the system sudo reboot
-
Checked sudo systemctl status zram-config
(no errors)
â zram-config.service - zram-config
Loaded: loaded (/etc/systemd/system/zram-config.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2020-06-12 12:36:09 CEST; 2min 16s ago
Process: 352 ExecStart=/usr/local/bin/zram-config start (code=exited, status=0/SUCCESS)
Main PID: 352 (code=exited, status=0/SUCCESS)
Jun 12 12:36:09 openhab zram-config[352]: + echo âlog /zram1 /var/log /log.bindâ
Jun 12 12:36:09 openhab zram-config[352]: + invoke-rc.d rsyslog restart
Jun 12 12:36:09 openhab zram-config[352]: + journalctl --flush
Jun 12 12:36:09 openhab zram-config[352]: + â[â â!â -z /opt/zram/oldlog â]â
Jun 12 12:36:09 openhab zram-config[352]: + echo âolddir /opt/zram/oldlogâ
Jun 12 12:36:09 openhab zram-config[352]: + echo âcreateolddir 755 root rootâ
Jun 12 12:36:09 openhab zram-config[352]: + echo renamecopy
Jun 12 12:36:09 openhab zram-config[352]: + read -r line
Jun 12 12:36:09 openhab zram-config[352]: + â[â false = true â]â
Jun 12 12:36:09 openhab systemd[1]: Started zram-config.
- Checked
systemctl status nginx.service
(with errors)
â nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-06-12 12:36:25 CEST; 2min 57s ago
Docs: man:nginx(8)
Process: 627 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Jun 12 12:36:20 openhab systemd[1]: Starting A high performance web server and a reverse proxy serverâŠ
Jun 12 12:36:21 openhab nginx[627]: nginx: [alert] could not open error log file: open() â/var/log/nginx/error.logâ failed (28: No space left on device)
Jun 12 12:36:25 openhab nginx[627]: 2020/06/12 12:36:21 [emerg] 627#627: open() â/var/log/nginx/access.logâ failed (28: No space left on device)
Jun 12 12:36:25 openhab nginx[627]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jun 12 12:36:25 openhab systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jun 12 12:36:25 openhab systemd[1]: nginx.service: Failed with result âexit-codeâ.
Jun 12 12:36:25 openhab systemd[1]: Failed to start A high performance web server and a reverse proxy server
- checked zram-config.log (entries since start)
zram-config start 2020-06-12-12:36:08
ztab create swap lz4 250M 750M 75 0 80
insmod /lib/modules/4.19.118-v7l+/kernel/mm/zsmalloc.ko
insmod /lib/modules/4.19.118-v7l+/kernel/drivers/block/zram/zram.ko
zram0 created comp_algorithm=lz4 mem_limit=250M disksize=750M
Setting up swapspace version 1, size = 750 MiB (786427904 bytes)
LABEL=zram-config0, UUID=bde800a9-ae40-4472-8d7a-5fc3ac5de39c
swapon: /dev/zram0: found signature [pagesize=4096, signature=swap]
swapon: /dev/zram0: pagesize=4096, swapsize=786432000, devsize=786432000
swapon /dev/zram0
vm.page-cluster = 0
vm.swappiness = 80
ztab create log lz4 50M 150M /var/log /log.bind /opt/zram/oldlog
Warning: Stopping rsyslog.service, but it can still be activated by:
syslog.socket
dirPerm /var/log 755 0:0
mount: /var/log bound on /opt/zram/log.bind.
mount: /opt/zram/log.bind propagation flags changed.
dirMountOpt rw,noatime dirFsType ext4
zram1 created comp_algorithm=lz4 mem_limit=50M disksize=150M
mke2fs 1.44.5 (15-Dec-2018)
fs_types for mke2fs.conf resolution: âext4â, âsmallâ
Discarding device blocks: 4096/38400^H^H^H^H^H^H^H^H^H^H^H ^H^H^H^H^H^H^H^H^H^H^Hdone
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
38400 inodes, 38400 blocks
1920 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=39845888
2 block groups
32768 blocks per group, 32768 fragments per group
19200 inodes per group
Filesystem UUID: e24c059e-d7b7-4430-abd3-10a5954a021b
Superblock backups stored on blocks:
32768
Allocating group tables: 0/2^H^H^H ^H^H^Hdone
Writing inode tables: 0/2^H^H^H ^H^H^Hdone
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: 0/2^H^H^H ^H^H^Hdone
mount: /dev/zram1 mounted on /opt/zram/zram1.
mount: overlay1 mounted on /var/log.