hmm. i never disabled that service since re-enabling it this afternoon, disabled only openhab.
tried nonetheless, and ta-da (but… why?!):
[01:19:49] root@oha2:/home/openhabian# zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo-rle 500M 18.3M 402.4K 832K 4 /opt/zram/zram2
/dev/zram1 lzo-rle 500M 16.4M 7.1K 84K 4 /opt/zram/zram1
/dev/zram0 lzo-rle 600M 4K 87B 12K 4 [SWAP]
root@oha2:/var/lib/openhab2/persistence/mapdb# ls -l
total 308
-rwxr-xr-x 1 openhab openhab 32 Jul 27 18:13 Readme.txt
-rw-r--r-- 1 openhab openhab 33064 Jul 29 01:24 storage.mapdb
-rw-r--r-- 1 openhab openhab 254592 Jul 29 01:24 storage.mapdb.p
-rw-r--r-- 1 openhab openhab 16 Jul 29 01:24 storage.mapdb.t
2020-07-29 01:24:38.418 [ome.event.ItemCommandEvent] - Item 'WT_7' received command ON
2020-07-29 01:24:38.427 [vent.ItemStateChangedEvent] - WT_7 changed from OFF to ON
2020-07-29 01:24:38.424 [DEBUG] [pdb.internal.MapDBPersistenceService] - store called for WT_7
2020-07-29 01:24:38.427 [DEBUG] [pdb.internal.MapDBPersistenceService] - Stored 'WT_7' with state 'ON' in mapdb database
persisted items still not restored properly
2020-07-29 01:26:28.835 [vent.ItemStateChangedEvent] - WT_7 changed from NULL to OFF
[01:31:05] root@oha2:/home/openhabian# zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo-rle 500M 18.6M 464.7K 880K 4 /opt/zram/zram2
/dev/zram1 lzo-rle 500M 17.3M 204.5K 624K 4 /opt/zram/zram1
/dev/zram0 lzo-rle 600M 4K 87B 12K 4 [SWAP]
log
[01:27:12] root@oha2:/home/openhabian# cat /usr/local/share/zram-config/log/zram-config.log
ztab remove log /zram2 /var/log /log.bind
/zram2
Warning: Stopping rsyslog.service, but it can still be activated by:
syslog.socket
Failed to stop nginx.service: Unit nginx.service not loaded.
invoke-rc.d: initscript nginx, action "stop" failed.
umount: /var/log (overlay2) unmounted
+ echo 'overlay --lowerdir=/opt/zram/log.bind --upperdir=/opt/zram/zram2/upper'
overlay --lowerdir=/opt/zram/log.bind --upperdir=/opt/zram/zram2/upper
+ ls -la /opt/zram /opt/zram/log.bind /opt/zram/zram2/upper
ls: cannot access '/opt/zram/zram2/upper': No such file or directory
/opt/zram:
total 32
drwxr-xr-x 8 root root 4096 Jul 29 01:19 .
drwxrwxr-x 6 openhab openhab 4096 Jul 26 23:23 ..
drwxr-xr-x 2 root root 4096 Jul 29 01:19 log.bind
drwxr-xr-x 5 root root 4096 Jul 26 23:20 openhabian-zram
drwxr-xr-x 4 root root 4096 Jul 26 23:20 overlayfs-tools
drwxr-xr-x 2 root root 4096 Jul 29 01:19 persistence.bind
drwxr-xr-x 2 root root 4096 Jul 29 01:19 zram1
drwxr-xr-x 2 root root 4096 Jul 29 01:19 zram2
/opt/zram/log.bind:
total 8
drwxr-xr-x 2 root root 4096 Jul 29 01:19 .
drwxr-xr-x 8 root root 4096 Jul 29 01:19 ..
+ cd /usr/local/lib/zram-config/
+ echo y
+ ./overlay merge -l /opt/zram/log.bind -u /opt/zram/zram2/upper
Upper directory not specified.
Try './overlay --help' for more information.
+ sh -x '*.sh'
sh: 0: Can't open *.sh
+ rm -v '*.sh'
rm: cannot remove '*.sh': No such file or directory
ztab remove dir /zram1 /var/lib/openhab2/persistence /persistence.bind
/zram1
umount /var/lib/openhab2/persistence/
+ echo 'overlay --lowerdir=/opt/zram/persistence.bind --upperdir=/opt/zram/zram1/upper'
overlay --lowerdir=/opt/zram/persistence.bind --upperdir=/opt/zram/zram1/upper
+ ls -la /opt/zram /opt/zram/persistence.bind /opt/zram/zram1/upper
ls: cannot access '/opt/zram/zram1/upper': No such file or directory
/opt/zram:
total 32
drwxr-xr-x 8 root root 4096 Jul 29 01:19 .
drwxrwxr-x 6 openhab openhab 4096 Jul 26 23:23 ..
drwxr-xr-x 2 root root 4096 Jul 29 01:19 log.bind
drwxr-xr-x 5 root root 4096 Jul 26 23:20 openhabian-zram
drwxr-xr-x 4 root root 4096 Jul 26 23:20 overlayfs-tools
drwxr-xr-x 2 root root 4096 Jul 29 01:19 persistence.bind
drwxr-xr-x 2 root root 4096 Jul 29 01:19 zram1
drwxr-xr-x 2 root root 4096 Jul 29 01:19 zram2
/opt/zram/persistence.bind:
total 8
drwxr-xr-x 2 root root 4096 Jul 29 01:19 .
drwxr-xr-x 8 root root 4096 Jul 29 01:19 ..
+ cd /usr/local/lib/zram-config/
+ echo y
+ ./overlay merge -l /opt/zram/persistence.bind -u /opt/zram/zram1/upper
Upper directory not specified.
Try './overlay --help' for more information.
+ sh -x '*.sh'
sh: 0: Can't open *.sh
+ rm -v '*.sh'
rm: cannot remove '*.sh': No such file or directory
ztab remove swap /zram0 zram-config0
zramctl: /dev/zram0: failed to reset: No such device
/dev/zram0 removed
removed '/usr/local/share/zram-config/zram-device-list.rev'
removed '/usr/local/share/zram-config/zram-device-list'
zram-config start 2020-07-29-01:25:06
ztab create swap lz4 200M 600M 75 0 90
insmod /lib/modules/5.4.51-v7l+/kernel/mm/zsmalloc.ko
insmod /lib/modules/5.4.51-v7l+/kernel/drivers/block/zram/zram.ko
zram0 created comp_algorithm=lz4 mem_limit=200M disksize=600M
Setting up swapspace version 1, size = 600 MiB (629141504 bytes)
LABEL=zram-config0, UUID=085b7536-a686-4a1b-b13f-df9c9e791fca
swapon: /dev/zram0: found signature [pagesize=4096, signature=swap]
swapon: /dev/zram0: pagesize=4096, swapsize=629145600, devsize=629145600
swapon /dev/zram0
vm.page-cluster = 0
vm.swappiness = 90
ztab create dir lz4 150M 500M /var/lib/openhab2/persistence /persistence.bind
dirPerm /var/lib/openhab2/persistence 755 110:115
mount: /var/lib/openhab2/persistence bound on /opt/zram/persistence.bind.
mount: /opt/zram/persistence.bind propagation flags changed.
dirMountOpt rw,noatime dirFsType ext4
zram1 created comp_algorithm=lz4 mem_limit=150M disksize=500M
mke2fs 1.44.5 (15-Dec-2018)
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
128000 inodes, 128000 blocks
6400 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=132120576
4 block groups
32768 blocks per group, 32768 fragments per group
32000 inodes per group
Filesystem UUID: 7fcac8a4-5e13-4def-a8ef-f95c3ea41082
Superblock backups stored on blocks:
32768, 98304
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
mount: /dev/zram1 mounted on /opt/zram/zram1.
mount: overlay1 mounted on /var/lib/openhab2/persistence.
ztab create log lzo 150M 500M /var/log /log.bind
Warning: Stopping rsyslog.service, but it can still be activated by:
syslog.socket
Failed to stop nginx.service: Unit nginx.service not loaded.
invoke-rc.d: initscript nginx, action "stop" failed.
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
zram2 created comp_algorithm=lzo mem_limit=150M disksize=500M
mke2fs 1.44.5 (15-Dec-2018)
fs_types for mke2fs.conf resolution: 'ext4', 'small'
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
128000 inodes, 128000 blocks
6400 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=132120576
4 block groups
32768 blocks per group, 32768 fragments per group
32000 inodes per group
Filesystem UUID: 504f3918-bb8b-4eb5-9190-960b9c3bf91a
Superblock backups stored on blocks:
32768, 98304
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
mount: /dev/zram2 mounted on /opt/zram/zram2.
mount: overlay2 mounted on /var/log.
createZlog no oldlog dir in ztab