|
1.首先明确猫盘群晖系统中经常控制风扇相关IO失败导致写日志,已按教程把日志输出内存中,即tmpfs.2 I) o; G Q& c
- #scemd bind
- touch /tmp/scemd.log.new || true
- chmod 660 /tmp/scemd.log.new || true
- chown system:log /tmp/scemd.log.new || true
- mount -o bind /tmp/scemd.log.new /var/log/scemd.log || true
- #2 }. }3 t9 L0 ]$ s+ b7 D7 @6 Q9 ~& e' C
$ N+ S, i, y/ o8 j7 J
+ N s% Z4 v& x7 T5 phibernationFull.log日志文件中可以看到相关信息已写入tmpfs3 B8 p1 T* X% [
[ 8171.663318] scemd(7558): dirtied inode 183010 (volume1.lock.E2tWgd) on tmpfs" z4 n) r4 q6 u2 W( I
[ 8173.676415] scemd(32464): dirtied inode 179481 (enumlist_det.tmp) on tmpfs; u* q. q" Q; `" y$ g+ |
[ 8177.676482] scemd(7558): dirtied inode 183116 (volume1.lock.U2M7Fk) on tmpfs
; [9 {( Y6 y( P$ a) A2 E* l[ 8183.694872] scemd(7558): dirtied inode 183229 (volume1.lock.Y5kNsv) on tmpfs
* ^! j. P0 r+ i5 Q& Z6 V3 \0 l) _5 T8 ^8 Q
( H3 G. C8 x# S1 \
但是连着发现有写磁盘操作如下:
z c0 r" I( d: f$ r! H" Z[ 8189.076863] bash(8134): dirtied inode 9175053 (esynoscheduler.output.8094) on sda3
3 z: X3 O0 p. Q. {' T[ 8189.076902] bash(8134): dirtied inode 9175053 (esynoscheduler.output.8094) on sda3+ Q: t! F/ B6 a8 d, {
[ 8189.076912] bash(8134): dirtied inode 9175053 (esynoscheduler.output.8094) on sda3+ O) u i! ^& p
3 g2 |/ C: C8 j5 P7 D, b
* e/ p1 r1 p! `: s# }; j0 j9 [3 Q! I
接着使用ps -ef命令打印所有进程,找到esynoscheduler相关的进程信息
1 i; e0 P6 s x( ]UID PID PPID C STIME TTY TIME CMD0 W: _" B: u! i p4 F& ^' L/ z! \
root 7515 7433 0 08:48 ? 00:00:03 /usr/syno/sbin/esynoscheduler --fireEvent event=bootup
! S" K$ X' u4 E! C$ S, rroot 8036 7515 0 08:48 ? 00:00:00 /usr/syno/sbin/esynoscheduler --fireEvent event=bootup. _4 [, {3 \/ O! l% v1 C
root 8043 8036 0 08:48 ? 00:00:00 sh -c '/tmp/esynoscheduler.script.7515' > '/volume1/@tmp/esynoscheduler.ou
! A+ W' C" i- w+ b9 C4 s X4 H7 _root 8058 8043 0 08:48 ? 00:00:00 sh -c '/tmp/esynoscheduler.script.7515' > '/volume1/@tmp/esynoscheduler.ou8 V, C8 v4 i! x7 Z* p6 F7 r
root 8071 8058 0 08:48 ? 00:00:03 bash /volume1/homes/ping_led.sh! o- e& v) L% L8 P' a! ?
+ Y4 S! m( i$ T- V3 M* g" q& W9 G# O* ?$ g. e
到这里看不懂了,请问3条bash写操作是怎么产生的,应该怎么关闭?
5 C, F5 H- U3 Q' c
+ K( p3 |5 q" `" _7 {: d( x2 |
& h/ c5 f" b0 r
* g& G% S0 l. t- c# ? |
|