1. 服务器/VPS/主机用户Telegram电报群: https://t.me/openos
    黑群晖 Synology Telegram电报群: https://t.me/nasfan
    排除公告

休眠的一些设置

本帖由 nas4alex2020-04-13 发布。版面名称:群晖 Synology DSM

  1. nas4alex

    nas4alex New Member

    注册:
    2020-04-05
    帖子:
    5
    前段时间入手了蜗牛星际, 更换主板和cpu后, 开始折腾休眠. 经过大量查阅发现服务组件写log非常容易唤醒休眠. 所以我尝试把/var/log放到了内存文件系统中,目前效果还不错.


    把这段代码加入到/etc/rc 末尾 exit 0之前
    mount -t tmpfs -o size=500m tmpfs /var/log

    ======Idle 7257 seconds======
    Mon Apr 13 19:42:13 CST 2020
     
  2. nas4alex

    nas4alex New Member

    注册:
    2020-04-05
    帖子:
    5
    在删除几个定时任务之后,从12点一直睡眠到早上8点主动访问才停止

    /usr/syno/bin/synoschedtask --get

    /usr/syno/bin/synoschedtask --del id=1
    /usr/syno/bin/synoschedtask --del id=2
    /usr/syno/bin/synoschedtask --del id=3

    ***********Clear*********
    [53647.115564] syslog-ng(17612): dirtied inode 4432300 (exe) on proc
    [53657.538075] syslog-ng(17612): dirtied inode 4431686 (exe) on proc
    [53667.959746] syslog-ng(17612): dirtied inode 4432531 (exe) on proc
    [53678.380603] syslog-ng(17612): dirtied inode 4435504 (exe) on proc
    [53688.802295] syslog-ng(17612): dirtied inode 4435597 (exe) on proc
    [53699.223837] syslog-ng(17612): dirtied inode 4436902 (exe) on proc
    [53709.602145] syslog-ng(17612): dirtied inode 4438606 (exe) on proc
    [53709.645661] syslog-ng(17612): dirtied inode 4438622 (exe) on proc
    [53709.696010] index.cgi(19209): dirtied inode 7144 (?) on md0
    [53709.696023] index.cgi(19209): dirtied inode 7144 (?) on md0
    [53709.718751] index.cgi(19209): dirtied inode 2900 (ux-all.css) on md0
    [53709.718760] index.cgi(19209): dirtied inode 4088 (sds.css) on md0
    [53709.718767] index.cgi(19209): dirtied inode 3227 (desktop.css) on md0
    [53709.890514] SYNO.Core.Deskt(18694): dirtied inode 30594 (SYNO.Core.Desktop.UIString.json) on md0
    [53709.890572] SYNO.Core.Deskt(18694): dirtied inode 30728 (SYNO.Core.Desktop.UIString.json.D6JcMu) on md0
    [53709.890630] SYNO.Core.Deskt(18694): WRITE block 2477856 on md0 (8 sectors)
    [53709.892611] SYNO.Core.Deskt(19038): dirtied inode 4437365 (current) on proc
    [53709.902194] syslog-ng(17612): dirtied inode 4437363 (exe) on proc
    uptime : 1
    ======Idle 30241 seconds======
    Tue Apr 14 08:25:26 CST 2020
     
  3. evilshark

    evilshark New Member

    注册:
    2019-09-19
    帖子:
    14
    这个是要SSH用ROOT账号登陆进行修改的嘛?
     
  4. nas4alex

    nas4alex New Member

    注册:
    2020-04-05
    帖子:
    5
    是的 sudo su - root
     
  5. make126

    make126 New Member

    注册:
    2020-03-27
    帖子:
    6
    休眠慎重,经常唤醒会搞坏硬盘的,我直接费了两个红盘。
    24小时开机或者定时开关机,NAS就是被设计成这样运行的。