|
1.首先明确猫盘群晖系统中经常控制风扇相关IO失败导致写日志,已按教程把日志输出内存中,即tmpfs.
: j$ V9 X8 C* O/ o* R" t- #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
- #
5 ^% _0 W/ Y0 r m
4 u# }0 q' G. s; w
, t+ w* E( I5 EhibernationFull.log日志文件中可以看到相关信息已写入tmpfs
+ J& K* b( I5 n5 W3 k0 d1 V1 p[ 8171.663318] scemd(7558): dirtied inode 183010 (volume1.lock.E2tWgd) on tmpfs7 z8 K+ u, D5 {' i2 [) w: P, Q! M
[ 8173.676415] scemd(32464): dirtied inode 179481 (enumlist_det.tmp) on tmpfs
7 W1 s$ A) z* ^[ 8177.676482] scemd(7558): dirtied inode 183116 (volume1.lock.U2M7Fk) on tmpfs
: h+ d4 v( V# t# x! | @5 \0 B[ 8183.694872] scemd(7558): dirtied inode 183229 (volume1.lock.Y5kNsv) on tmpfs% P, {4 ^ c1 O* @& N
% N6 s* E) m: I- e# m6 D' _
6 A) C7 Z) G5 ]但是连着发现有写磁盘操作如下:% V, K' A! Q( R9 i7 q
[ 8189.076863] bash(8134): dirtied inode 9175053 (esynoscheduler.output.8094) on sda3
0 r9 {6 e! l+ R( D[ 8189.076902] bash(8134): dirtied inode 9175053 (esynoscheduler.output.8094) on sda3+ Z9 R+ ^9 D1 `
[ 8189.076912] bash(8134): dirtied inode 9175053 (esynoscheduler.output.8094) on sda3$ s% O2 k+ a: h) W: ^ M# _! ?
5 e8 i9 n/ U% G8 [5 ?
4 a& T, T. s3 F0 W% Y D# \( p3 I, p' n0 o) ?
接着使用ps -ef命令打印所有进程,找到esynoscheduler相关的进程信息
3 C6 R0 K- Y v- h2 }UID PID PPID C STIME TTY TIME CMD) C* `6 R; z" ~6 W% O
root 7515 7433 0 08:48 ? 00:00:03 /usr/syno/sbin/esynoscheduler --fireEvent event=bootup* |, O/ ?0 U7 e" s9 C
root 8036 7515 0 08:48 ? 00:00:00 /usr/syno/sbin/esynoscheduler --fireEvent event=bootup
( I3 g1 B' Q6 \2 `, N0 G5 `4 w. x, }root 8043 8036 0 08:48 ? 00:00:00 sh -c '/tmp/esynoscheduler.script.7515' > '/volume1/@tmp/esynoscheduler.ou8 ? y6 d0 b9 b1 j3 ~
root 8058 8043 0 08:48 ? 00:00:00 sh -c '/tmp/esynoscheduler.script.7515' > '/volume1/@tmp/esynoscheduler.ou
- t* b! {6 t4 D' M( {( froot 8071 8058 0 08:48 ? 00:00:03 bash /volume1/homes/ping_led.sh7 U* [3 y- t) p; b* l
! Q- A0 L+ q! y; x& ~, o
3 l5 v8 ?# h X( T, s4 V
到这里看不懂了,请问3条bash写操作是怎么产生的,应该怎么关闭?0 j* S' a' A! v. f# {- w! J2 o
/ N9 \6 t, @: i+ R3 d' m3 f/ i
1 G! b7 _: I: h9 V- B, P! B9 B) s) d, W
|
|