you mean openhab-cli restore ?
OH has to be stopped to import.
Eventually (if it still does not work) stop ZRAM, too, and start again after
1 Like
this worked, thanks again!
iâve ordered a card reader and a âdouble-sizedâ sd card. i presume the setup in openhabian-config is self-explanatory? (except defining backupdrive
)
well that I donât know so just try and tell me what you think we would need to change about docs
1 Like
argh. just wanted to move influxdb to zram:
[15:05:36] root@ohab2:/home/openhabian# service zram-config stop
[15:07:38] root@ohab2:/home/openhabian# nano /etc/ztab
[15:12:16] root@ohab2:/home/openhabian# zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram2 lzo-rle 500M 17.5M 402.2K 844K 4
/dev/zram1 lzo-rle 500M 30.1M 1.6M 2M 4
shouldnât zramctl give an âemptyâ output?
[15:12:20] root@ohab2:/home/openhabian# systemctl status zram-config.service
â zram-config.service - zram-config
Loaded: loaded (/etc/systemd/system/zram-config.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2020-09-10 15:07:38 CEST; 5min ago
Process: 331 ExecStartPre=/usr/local/sbin/zramsync recover /storage/zram (code=exited, status=0/SUCCESS)
Process: 483 ExecStart=/usr/local/sbin/zram-config start (code=exited, status=0/SUCCESS)
Main PID: 483 (code=exited, status=0/SUCCESS)
Sep 10 14:22:42 ohab2 zram-config[483]: + mkdir -p /opt/zram/zram2/upper /opt/zram/zram2/workdir /var/lib/openhab2/persi
Sep 10 14:22:42 ohab2 zram-config[483]: + mount --verbose --types overlay -o redirect_dir=on,lowerdir=/opt/zram/persiste
Sep 10 14:22:42 ohab2 zram-config[483]: + chown 110:115 /opt/zram/zram2/upper /opt/zram/zram2/workdir /var/lib/openhab2/
Sep 10 14:22:42 ohab2 zram-config[483]: + chmod 755 /opt/zram/zram2/upper /opt/zram/zram2/workdir /var/lib/openhab2/pers
Sep 10 14:22:42 ohab2 zram-config[483]: + echo 'dir /zram2 /var/lib/openhab2/persistence
Sep 10 14:22:42 ohab2 zram-config[483]: + read -r line
Sep 10 14:22:42 ohab2 zram-config[483]: + [[ false == \t\r\u\e ]]
Sep 10 14:22:42 ohab2 systemd[1]: Started zram-config.
Sep 10 15:07:38 ohab2 systemd[1]: zram-config.service: Succeeded.
Sep 10 15:07:38 ohab2 systemd[1]: Stopped zram-config.
Only if it manages to unmount everything to access the zramâed dirs which it usually doesnât (just to many dependencies).
Adding dirs to ztab should work nonetheless.
1 Like
seems to work, yes. after reboot i had the 4 entries (as configured):
[15:27:43] openhabian@ohab2:~$ zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram3 lzo-rle 500M 48.6M 51.6K 320K 4 /opt/zram/zram3
/dev/zram2 lzo-rle 500M 17.5M 285.4K 728K 4 /opt/zram/zram2
/dev/zram1 lzo-rle 500M 30.3M 1.5M 2M 4 /opt/zram/zram1
/dev/zram0 lzo-rle 600M 4K 87B 12K 4 [SWAP]
before reboot (but with started zram-config) i had these 4 entries PLUS the 2 entries from above.