文件系统只读

您好!
我们将系统迁移到M.2上之后,客户将算法运行一段时间之后,系统就成了只读模式。从/var/log/syslog中能查到一些错误如下:
Jun 26 01:50:02 n-desktop kernel: [388335.418403] EXT4-fs: 2 callbacks suppressed
Jun 26 01:50:02 n-desktop kernel: [388335.418423] EXT4-fs (nvme0n1): discard request in group:290 block:30288 count:1 failed with -5
Jun 26 01:50:17 n-desktop kernel: [388350.421302] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 01:50:37 n-desktop kernel: [388370.805702] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 01:51:03 n-desktop kernel: [388396.785632] blk_update_request: I/O error, dev nvme0n1, sector 76276376
Jun 26 01:51:03 n-desktop kernel: [388396.785858] EXT4-fs (nvme0n1): discard request in group:290 block:31827 count:1 failed with -5
Jun 26 01:52:00 n-desktop kernel: [388453.864879] blk_update_request: I/O error, dev nvme0n1, sector 76264072
Jun 26 01:52:00 n-desktop kernel: [388453.865118] EXT4-fs (nvme0n1): discard request in group:290 block:30289 count:1 failed with -5
Jun 26 01:53:01 n-desktop kernel: [388515.252295] blk_update_request: I/O error, dev nvme0n1, sector 76276384
Jun 26 01:53:01 n-desktop kernel: [388515.252511] EXT4-fs (nvme0n1): discard request in group:290 block:31828 count:1 failed with -5
Jun 26 01:53:52 n-desktop kernel: [388566.183031] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 01:54:03 n-desktop kernel: [388576.567894] blk_update_request: I/O error, dev nvme0n1, sector 76276392
Jun 26 01:54:03 n-desktop kernel: [388576.568127] EXT4-fs (nvme0n1): discard request in group:290 block:31829 count:1 failed with -5
Jun 26 01:54:38 n-desktop kernel: [388612.281185] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 01:55:04 n-desktop kernel: [388637.886448] blk_update_request: I/O error, dev nvme0n1, sector 76276400
Jun 26 01:55:04 n-desktop kernel: [388637.886681] EXT4-fs (nvme0n1): discard request in group:290 block:31830 count:1 failed with -5
Jun 26 01:56:00 n-desktop kernel: [388694.021932] blk_update_request: I/O error, dev nvme0n1, sector 76264096
Jun 26 01:56:00 n-desktop kernel: [388694.022148] EXT4-fs (nvme0n1): discard request in group:290 block:30292 count:1 failed with -5
Jun 26 01:57:02 n-desktop kernel: [388755.532074] blk_update_request: I/O error, dev nvme0n1, sector 76276408
Jun 26 01:57:02 n-desktop kernel: [388755.532303] EXT4-fs (nvme0n1): discard request in group:290 block:31831 count:1 failed with -5
Jun 26 01:57:22 n-desktop kernel: [388776.094963] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 01:58:03 n-desktop kernel: [388817.164888] blk_update_request: I/O error, dev nvme0n1, sector 76264104
Jun 26 01:58:03 n-desktop kernel: [388817.165093] EXT4-fs (nvme0n1): discard request in group:290 block:30293 count:1 failed with -5
Jun 26 01:58:39 n-desktop kernel: [388852.996549] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 01:59:05 n-desktop kernel: [388878.643598] blk_update_request: I/O error, dev nvme0n1, sector 76276416
Jun 26 01:59:05 n-desktop kernel: [388878.643818] EXT4-fs (nvme0n1): discard request in group:290 block:31832 count:1 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.874387] blk_update_request: I/O error, dev nvme0n1, sector 227151872
Jun 26 01:59:15 n-desktop kernel: [388888.874661] EXT4-fs (nvme0n1): discard request in group:866 block:16896 count:6157 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.875321] blk_update_request: I/O error, dev nvme0n1, sector 227144960
Jun 26 01:59:15 n-desktop kernel: [388888.875469] EXT4-fs (nvme0n1): discard request in group:866 block:16032 count:298 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.875991] blk_update_request: I/O error, dev nvme0n1, sector 226689024
Jun 26 01:59:15 n-desktop kernel: [388888.876141] EXT4-fs (nvme0n1): discard request in group:864 block:24576 count:8134 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.876634] blk_update_request: I/O error, dev nvme0n1, sector 226566632
Jun 26 01:59:15 n-desktop kernel: [388888.876776] EXT4-fs (nvme0n1): discard request in group:864 block:9277 count:15191 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.877326] blk_update_request: I/O error, dev nvme0n1, sector 226361344
Jun 26 01:59:15 n-desktop kernel: [388888.877533] EXT4-fs (nvme0n1): discard request in group:863 block:16384 count:16285 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.878043] blk_update_request: I/O error, dev nvme0n1, sector 226230272
Jun 26 01:59:15 n-desktop kernel: [388888.878215] EXT4-fs (nvme0n1): discard request in group:863 block:0 count:16348 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.878718] blk_update_request: I/O error, dev nvme0n1, sector 226183168
Jun 26 01:59:15 n-desktop kernel: [388888.884276] EXT4-fs (nvme0n1): discard request in group:862 block:26880 count:5592 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.894068] blk_update_request: I/O error, dev nvme0n1, sector 226073600
Jun 26 01:59:15 n-desktop kernel: [388888.900117] EXT4-fs (nvme0n1): discard request in group:862 block:13184 count:3130 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.909877] blk_update_request: I/O error, dev nvme0n1, sector 226058752
Jun 26 01:59:15 n-desktop kernel: [388888.915955] EXT4-fs (nvme0n1): discard request in group:862 block:11328 count:1840 failed with -5
Jun 26 01:59:15 n-desktop kernel: [388888.925456] blk_update_request: I/O error, dev nvme0n1, sector 226098688
Jun 26 01:59:15 n-desktop kernel: [388888.931898] EXT4-fs (nvme0n1): discard request in group:862 block:16320 count:10537 failed with -5
Jun 26 02:00:01 n-desktop kernel: [388935.096074] blk_update_request: 62 callbacks suppressed
Jun 26 02:00:01 n-desktop kernel: [388935.096094] blk_update_request: I/O error, dev nvme0n1, sector 76276424
Jun 26 02:00:01 n-desktop kernel: [388935.096396] EXT4-fs: 62 callbacks suppressed
Jun 26 02:00:01 n-desktop kernel: [388935.096406] EXT4-fs (nvme0n1): discard request in group:290 block:31833 count:1 failed with -5
Jun 26 02:00:57 n-desktop kernel: [388990.463233] JBD2: Detected IO errors while flushing file data on nvme0n1-8
Jun 26 02:01:02 n-desktop kernel: [388995.466812] blk_update_request: I/O error, dev nvme0n1, sector 76276440
麻烦问一下这个原因和解决办法,谢谢!

So they don’t know how did they set to read-only mode, right?

他们没有设置让系统只读这类的操作,不过算法应用中会涉及大量的数据读写。
谢谢!

We cannot tell. Unless you know the method to reproduce issue.

客户使用设备时有突然断电情况,这是主要的原因。