收起左侧

硬盘频繁睡眠后被唤醒

1
回复
168
查看
[ 复制链接 ]

8

主题

15

回帖

0

牛值

江湖小虾

2025-12-5 15:01:13 显示全部楼层 阅读模式

root@MyFnOs:/tmp# lsof +D /vol3
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
trim_file 2713 root 17r DIR 0,53 18 256 /vol3
root@MyFnOs:/tmp# ps -fp 2713
UID PID PPID C STIME TTY TIME CMD
root 2713 1 0 Dec03 ? 00:01:22 /usr/trim/bin/trim_file_monitor
root@MyFnOs:/tmp# readlink -f /proc/2713/exe
/usr/trim/bin/trim_file_monitor
root@MyFnOs:/tmp# systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVA>
Fri 2025-12-05 14:53:27 CST 22s left Fri 2025-12-05 14:51:26 CST 1min 38s ago raid_fan_control.timer raid_f>
Fri 2025-12-05 15:34:50 CST 41min left Fri 2025-12-05 02:50:59 CST 12h ago certbot.timer certbo>
Fri 2025-12-05 15:57:28 CST 1h 4min left Thu 2025-12-04 15:57:28 CST 22h ago systemd-tmpfiles-clean.timer system>
Sat 2025-12-06 00:00:00 CST 9h left Fri 2025-12-05 00:00:01 CST 14h ago dpkg-db-backup.timer dpkg-d>
Sat 2025-12-06 00:00:00 CST 9h left Fri 2025-12-05 00:00:01 CST 14h ago exim4-base.timer exim4->
Sat 2025-12-06 00:00:00 CST 9h left Fri 2025-12-05 00:00:01 CST 14h ago logrotate.timer logrot>
Sat 2025-12-06 01:13:16 CST 10h left Fri 2025-12-05 09:40:50 CST 5h 12min ago man-db.timer man-db>
Sat 2025-12-06 01:48:04 CST 10h left Fri 2025-12-05 14:26:11 CST 26min ago apt-daily.timer apt-da>
Sat 2025-12-06 06:56:39 CST 16h left Fri 2025-12-05 06:36:22 CST 8h ago apt-daily-upgrade.timer apt-da>
Sun 2025-12-07 03:10:08 CST 1 day 12h left Sun 2025-11-30 21:50:34 CST 4 days ago e2scrub_all.timer e2scru>
Mon 2025-12-08 00:21:51 CST 2 days left Mon 2025-12-01 13:44:42 CST 4 days ago fstrim.timer fstrim>

11 timers listed.
Pass --all to see loaded but inactive timers, too.
...skipping...
NEXT LEFT LAST PASSED UNIT ACTIVA>
Fri 2025-12-05 14:53:27 CST 22s left Fri 2025-12-05 14:51:26 CST 1min 38s ago raid_fan_control.timer raid_f>
Fri 2025-12-05 15:34:50 CST 41min left Fri 2025-12-05 02:50:59 CST 12h ago certbot.timer certbo>
Fri 2025-12-05 15:57:28 CST 1h 4min left Thu 2025-12-04 15:57:28 CST 22h ago systemd-tmpfiles-clean.timer system>
Sat 2025-12-06 00:00:00 CST 9h left Fri 2025-12-05 00:00:01 CST 14h ago dpkg-db-backup.timer dpkg-d>
Sat 2025-12-06 00:00:00 CST 9h left Fri 2025-12-05 00:00:01 CST 14h ago exim4-base.timer exim4->
Sat 2025-12-06 00:00:00 CST 9h left Fri 2025-12-05 00:00:01 CST 14h ago logrotate.timer logrot>
Sat 2025-12-06 01:13:16 CST 10h left Fri 2025-12-05 09:40:50 CST 5h 12min ago man-db.timer man-db>
Sat 2025-12-06 01:48:04 CST 10h left Fri 2025-12-05 14:26:11 CST 26min ago apt-daily.timer apt-da>
Sat 2025-12-06 06:56:39 CST 16h left Fri 2025-12-05 06:36:22 CST 8h ago apt-daily-upgrade.timer apt-da>
Sun 2025-12-07 03:10:08 CST 1 day 12h left Sun 2025-11-30 21:50:34 CST 4 days ago e2scrub_all.timer e2scru>
Mon 2025-12-08 00:21:51 CST 2 days left Mon 2025-12-01 13:44:42 CST 4 days ago fstrim.timer fstrim>

11 timers listed.
Pass --all to see loaded but inactive timers, too.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-15/15 (END)

root@MyFnOs:/tmp# kill 2713
root@MyFnOs:/tmp# grep -r trim_file_monitor /etc /usr/lib/systemd /etc/systemd 2>/dev/null
/etc/systemd/system/auto_thumbnailer.service:After=trim_file_monitor.service
/etc/systemd/system/trim_file_monitor.service:ExecStart=/usr/trim/bin/trim_file_monitor
/etc/systemd/system/auto_thumbnailer.service:After=trim_file_monitor.service
/etc/systemd/system/trim_file_monitor.service:ExecStart=/usr/trim/bin/trim_file_monitor
root@MyFnOs:/tmp# systemctl status trim_file_monitor.service
● trim_file_monitor.service - trim file monitor service
Loaded: loaded (/etc/systemd/system/trim_file_monitor.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-12-05 14:54:10 CST; 1min 10s ago
Main PID: 3560118 (trim_file_monit)
Tasks: 6 (limit: 18467)
Memory: 5.8M
CPU: 30ms
CGroup: /system.slice/trim_file_monitor.service
**─3560118 /usr/trim/bin/trim_file_monitor

Dec 05 14:54:10 MyFnOs monitor[3560118]: WatchFileSystem, /vol3, mask:0x400007cc
Dec 05 14:54:10 MyFnOs monitor[3560118]: Had been registered, /vol3
Dec 05 14:54:10 MyFnOs monitor[3560118]: Watching: /vol1/@snapshot, command:0, level:0
Dec 05 14:54:10 MyFnOs monitor[3560118]: WatchFileSystem, /vol1/@snapshot, mask:0x400007c8
Dec 05 14:54:10 MyFnOs monitor[3560118]: Had been registered the volume, /vol1/@snapshot, ignore
Dec 05 14:54:10 MyFnOs monitor[3560118]: Watching: /vol2/@snapshot, command:0, level:0
Dec 05 14:54:10 MyFnOs monitor[3560118]: WatchFileSystem, /vol2/@snapshot, mask:0x400007c8
Dec 05 14:54:10 MyFnOs monitor[3560118]: Ignored! not existing target: /vol2/@snapshot
Dec 05 14:54:11 MyFnOs trim_file_monitor[3560118]: [StorageListener]Received unknow message
Dec 05 14:54:12 MyFnOs monitor[3560118]: Start the command loop!
image.png

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

8

主题

15

回帖

0

牛值

江湖小虾

2025-12-5 15:02:36 楼主 显示全部楼层

这是一块冷备盘,没有设置快照,一直被唤醒,很奇怪,之前我的储存空间2也能自动休眠,后来更新一直没自动休眠过。。。。我也一直没管它,不知道咋回事,

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则