技术解析

zram 设备为什么重启数据不会丢?
0
2021-06-18 21:29:23
idczone

N1 盒子刷的 armbian,/var/log 是块 zram 内存盘,可是重启后日志都在,请问这是什么配置导致的,如何查看。


真相在 /var/log.hdd

保存在硬盘

果然,知道配置在哪里么。

知道了
[email&cat /lib/systemd/system/armbian-ramlog.service
Armbian ramlog service
Stores logs in (compressed) memory
This service may block the boot process for up to 30 sec
[Unit]
Description=Armbian memory supported logging
DefaultDependencies=no
Before=rsyslog.service sysinit.target syslog.target
After=armbian-zram-config.service
Conflicts=shutdown.target
RequiresMountsFor=/var/log /var/log.hdd
IgnoreOnIsolate=yes
[Service]
Type=oneshot
ExecStart=/usr/lib/armbian/armbian-ramlog start
ExecStop=/usr/lib/armbian/armbian-ramlog stop
ExecReload=/usr/lib/armbian/armbian-ramlog write
RemainAfterExit=yes
TimeoutStartSec=30sec
[Install]
WantedBy=sysinit.target

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服