加了一块固态硬盘做缓存盘,发现出现各种问题。


Recommended Posts

按照论坛的帖子,我把docker和vms都停止后,把它们相关的文件全部移到了缓存盘上,不知道是不是这个原因,开机时 有大概率会出现 docker 和 vms无法运行,docker的图标都无法显示完全。要重启动才可能恢复正常,而且就算一开始 正常了,用一段时间 docker 软件 又会出问题,还有一个就是 执行 move 操作时,也会由于报错而停止。这个固态硬盘是 在京东 买的 512G 浦科特牌子,不知道哪里出了 问题。

 

以前不用缓存盘时,没遇到过问题,一切正常。。。

Link to comment

终于找到问题了,原来是 一个 文件管理器的 docker app,造成的,它的appdata 文件数量和容量出现异常,6M的目录里面有6万多个文件,删除该app 和 appdata 后,到目前为止 一切正常。我猜测可能是 btrfs文件系统对 多文件数量的 支持出现问题。

Link to comment
On 2/26/2021 at 11:16 AM, mobility said:

终于找到问题了,原来是 一个 文件管理器的 docker app,造成的,它的appdata 文件数量和容量出现异常,6M的目录里面有6万多个文件,删除该app 和 appdata 后,到目前为止 一切正常。我猜测可能是 btrfs文件系统对 多文件数量的 支持出现问题。

又出问题了,看来不是 文件 多的原因

 

这是log文件,请帮忙看看

Feb 27 19:41:01 MyNAS kernel: ata5: SATA max UDMA/133 abar m512@0x90610000 port 0x90610100 irq 91
Feb 27 19:41:01 MyNAS kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Feb 27 19:41:01 MyNAS kernel: ata5.00: ATA-9: PLEXTOR PX-512M8VC +, P02101400382, 1.00, max UDMA/133
Feb 27 19:41:01 MyNAS kernel: ata5.00: 1000215216 sectors, multi 1: LBA48 NCQ (depth 32), AA
Feb 27 19:41:01 MyNAS kernel: ata5.00: configured for UDMA/133
Feb 27 19:41:01 MyNAS kernel: sd 5:0:0:0: [sdf] 1000215216 512-byte logical blocks: (512 GB/477 GiB)
Feb 27 19:41:01 MyNAS kernel: sd 5:0:0:0: [sdf] Write Protect is off
Feb 27 19:41:01 MyNAS kernel: sd 5:0:0:0: [sdf] Mode Sense: 00 3a 00 00
Feb 27 19:41:01 MyNAS kernel: sd 5:0:0:0: [sdf] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Feb 27 19:41:01 MyNAS kernel: sdf: sdf1
Feb 27 19:41:01 MyNAS kernel: sd 5:0:0:0: [sdf] Attached SCSI disk
Feb 27 19:41:01 MyNAS kernel: BTRFS: device fsid 13f8bca5-0ce3-4fd8-a9c4-0419b70072db devid 1 transid 127 /dev/sdf1 scanned by udevd (1245)
Feb 27 19:41:37 MyNAS emhttpd: PLEXTOR_PX-512M8VC_+_P02101400382 (sdf) 512 1000215216
Feb 27 19:41:37 MyNAS emhttpd: import 30 cache device: (sdf) PLEXTOR_PX-512M8VC_+_P02101400382
Feb 27 19:41:48 MyNAS emhttpd: shcmd (43): mount -t btrfs -o noatime,space_cache=v2 /dev/sdf1 /mnt/cache
Feb 27 19:41:48 MyNAS kernel: BTRFS info (device sdf1): using free space tree
Feb 27 19:41:48 MyNAS kernel: BTRFS info (device sdf1): has skinny extents
Feb 27 19:41:48 MyNAS kernel: BTRFS info (device sdf1): enabling ssd optimizations
Feb 27 20:00:11 MyNAS root: /mnt/cache: 457.7 GiB (491494580224 bytes) trimmed on /dev/sdf1
Feb 27 20:07:25 MyNAS kernel: ata5.00: exception Emask 0x10 SAct 0x80000001 SErr 0x200100 action 0x6 frozen
Feb 27 20:07:25 MyNAS kernel: ata5.00: irq_stat 0x08000000, interface fatal error
Feb 27 20:07:25 MyNAS kernel: ata5: SError: { UnrecovData BadCRC }
Feb 27 20:07:25 MyNAS kernel: ata5.00: failed command: READ FPDMA QUEUED
Feb 27 20:07:25 MyNAS kernel: ata5.00: cmd 60/00:00:00:13:6e/02:00:01:00:00/40 tag 0 ncq dma 262144 in
Feb 27 20:07:25 MyNAS kernel: ata5.00: status: { DRDY }
Feb 27 20:07:25 MyNAS kernel: ata5.00: failed command: READ FPDMA QUEUED
Feb 27 20:07:25 MyNAS kernel: ata5.00: cmd 60/00:f8:00:09:6e/0a:00:01:00:00/40 tag 31 ncq dma 1310720 in
Feb 27 20:07:25 MyNAS kernel: ata5.00: status: { DRDY }
Feb 27 20:07:25 MyNAS kernel: ata5: hard resetting link
Feb 27 20:07:35 MyNAS kernel: ata5: softreset failed (1st FIS failed)
Feb 27 20:07:35 MyNAS kernel: ata5: hard resetting link
Feb 27 20:07:45 MyNAS kernel: ata5: softreset failed (1st FIS failed)
Feb 27 20:07:45 MyNAS kernel: ata5: hard resetting link
Feb 27 20:08:20 MyNAS kernel: ata5: softreset failed (1st FIS failed)
Feb 27 20:08:20 MyNAS kernel: ata5: limiting SATA link speed to 3.0 Gbps
Feb 27 20:08:20 MyNAS kernel: ata5: hard resetting link
Feb 27 20:08:25 MyNAS kernel: ata5: softreset failed (1st FIS failed)
Feb 27 20:08:25 MyNAS kernel: ata5: reset failed, giving up
Feb 27 20:08:25 MyNAS kernel: ata5.00: disabled
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=60s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#0 Sense Key : 0x2 [current]
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#0 ASC=0x4 ASCQ=0x21
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#0 CDB: opcode=0x28 28 00 01 6e 13 00 00 02 00 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23991040 op 0x0:(READ) flags 0x80700 phys_seg 15 prio class 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#31 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x08 cmd_age=60s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#31 Sense Key : 0x2 [current]
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#31 ASC=0x4 ASCQ=0x21
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#31 CDB: opcode=0x28 28 00 01 6e 09 00 00 0a 00 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23988480 op 0x0:(READ) flags 0x84700 phys_seg 21 prio class 0
Feb 27 20:08:25 MyNAS kernel: ata5: EH complete
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#14 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#14 CDB: opcode=0x28 28 00 01 6e 15 00 00 0a 00 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23991552 op 0x0:(READ) flags 0x84700 phys_seg 33 prio class 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#15 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#15 CDB: opcode=0x28 28 00 01 6e 1f 00 00 0a 00 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23994112 op 0x0:(READ) flags 0x84700 phys_seg 21 prio class 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#19 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#19 CDB: opcode=0x28 28 00 01 6e 29 00 00 0a 00 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23996672 op 0x0:(READ) flags 0x84700 phys_seg 21 prio class 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#20 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#20 CDB: opcode=0x28 28 00 01 6e 33 00 00 02 00 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23999232 op 0x0:(READ) flags 0x80700 phys_seg 5 prio class 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#21 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#21 CDB: opcode=0x28 28 00 01 6d f5 00 00 00 08 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23983360 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Feb 27 20:08:25 MyNAS kernel: BTRFS error (device sdf1): bdev /dev/sdf1 errs: wr 0, rd 1, flush 0, corrupt 0, gen 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#22 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#22 CDB: opcode=0x28 28 00 01 6d f5 00 00 00 08 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23983360 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Feb 27 20:08:25 MyNAS kernel: BTRFS error (device sdf1): bdev /dev/sdf1 errs: wr 0, rd 2, flush 0, corrupt 0, gen 0
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#23 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:25 MyNAS kernel: sd 5:0:0:0: [sdf] tag#23 CDB: opcode=0x28 28 00 01 6d f5 00 00 00 08 00
Feb 27 20:08:25 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 23983360 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
Feb 27 20:08:25 MyNAS kernel: BTRFS error (device sdf1): bdev /dev/sdf1 errs: wr 0, rd 3, flush 0, corrupt 0, gen 0
Feb 27 20:08:26 MyNAS kernel: sd 5:0:0:0: [sdf] tag#1 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00 cmd_age=0s
Feb 27 20:08:26 MyNAS kernel: sd 5:0:0:0: [sdf] tag#1 CDB: opcode=0x28 28 00 01 af f3 70 00 02 00 00
Feb 27 20:08:26 MyNAS kernel: blk_update_request: I/O error, dev sdf, sector 28308336 op 0x0:(READ) flags 0x80700 phys_seg 63 prio class 0
Feb 27 20:08:26 MyNAS kernel: BTRFS error (device sdf1): bdev /dev/sdf1 errs: wr 0, rd 4, flush 0, corrupt 0, gen 0

Edited by mobility
Link to comment
2 hours ago, lyqalex said:

重新插一下这款ssd,出现io错误,很奇怪,硬件故障也有可能。我建议把这块ssd换到其他电脑测试是否正常使用,或者换个ssd nvme插槽看看。系统故障原因可待硬件故障排除再检测。

这个ssd,插到其他电脑上,可以正常使用。

Link to comment
12 hours ago, lyqalex said:

在unraid的机器上,重新插上这块ssd(看编号是sata硬盘),换sata线和sata口插槽测试一下,看看是否正常。

我都试了没用,最后我把这块ssd和电脑上用的240G sandisk ssd对掉了一下,就正常了。现在两边都正常使用了。我猜测可能是 unraid 软件支持的 问题吧。

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.