Commit dfad263
committed
pool: stop automatic scrubber on repository read-only event
Motivation:
The external pool check can indicate that the pool repository should be
operated in a read-only mode. Such even can be triggered when under
laying filesystem run internal rebuild due to disk failure in a RAID
set. To reduce the load on the disk subsystem, it makes sense to disable
automatic scrub process. The admin still able do force checksum
validation.
Modification:
Update ChecksumScanner to listen repository fault events and disable
scrubber if running.
Result:
less load on pool's I/O subsystem during disk rebuilds.
```
18 Mar 2026 14:16:20 (pool_write) [] Read-only file system
18 Mar 2026 14:16:20 (pool_write) [] Pool mode changed to disabled(store,stage,p2p-client): Pool read-only: I/O test failed, READ_ONLY Error
18 Mar 2026 14:16:20 (PoolManager) [pool_write PoolManagerPoolUp] Pool pool_write changed from mode enabled to disabled(store,stage,p2p-client).
18 Mar 2026 14:16:20 (pool_write) [] Scrubber is stopping due to repository fault event: I/O test failed, READ_ONLY Error
```
Acked-by: Dmitry Litvintsev
Target: master
Require-book: no
Require-notes: yes1 parent c670b57 commit dfad263
1 file changed
Lines changed: 16 additions & 1 deletion
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
110 | 125 | | |
111 | 126 | | |
112 | 127 | | |
| |||
0 commit comments