mysql - MySQL Slave 做复制的 I/O 错误

标签 mysql io

运行:Centos 6.2 虚拟机 附加一个 1Tb 磁盘(称为 sdc1)

在其上安装 MySQL 作为复制的从属。

MySQL 数据文件在附加的 1Tb 磁盘上。

问题是:从站跟不上主站。

“消息”文件列出了 I/O 错误(附在下面)。

有人知道怎么解决吗?

错误如下:

sd 4:0:0:0: [sdc] Sense Key : Illegal Request [current]
sd 4:0:0:0: [sdc] Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] CDB: Write(6): 0a 02 a1 ff 08 00
Buffer I/O error on device sdc1, logical block 21560
lost page write due to I/O error on sdc1
hv_storvsc vmbus_0_7: cmd 0xa scsi status 0x2 srb status 0x86
hv_storvsc vmbus_0_7: stor pkt ffff880086431e00 autosense data valid - len 18
storvsc: Sense Key : Illegal Request [current]
storvsc: Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 4:0:0:0: [sdc] Sense Key : Illegal Request [current]
sd 4:0:0:0: [sdc] Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] CDB: Write(6): 0a 02 a1 ff 08 00
Buffer I/O error on device sdc1, logical block 21560
lost page write due to I/O error on sdc1
hv_storvsc vmbus_0_7: cmd 0x2a scsi status 0x2 srb status 0x86
hv_storvsc vmbus_0_7: stor pkt ffff880086431e00 autosense data valid - len 18
storvsc: Sense Key : Illegal Request [current]
storvsc: Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 4:0:0:0: [sdc] Sense Key : Illegal Request [current]
sd 4:0:0:0: [sdc] Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] CDB: Write(10): 2a 00 0c e0 10 4f 00 00 08 00
Buffer I/O error on device sdc1, logical block 27001346
lost page write due to I/O error on sdc1
hv_storvsc vmbus_0_7: cmd 0x2a scsi status 0x2 srb status 0x86
hv_storvsc vmbus_0_7: stor pkt ffff880100c72980 autosense data valid - len 18
storvsc: Sense Key : Illegal Request [current]
storvsc: Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 4:0:0:0: [sdc] Sense Key : Illegal Request [current]
sd 4:0:0:0: [sdc] Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] CDB: Write(10): 2a 00 0f 2a 08 c7 00 00 10 00
Buffer I/O error on device sdc1, logical block 31801617
lost page write due to I/O error on sdc1
Buffer I/O error on device sdc1, logical block 31801618
lost page write due to I/O error on sdc1
hv_storvsc vmbus_0_7: cmd 0xa scsi status 0x2 srb status 0x86
hv_storvsc vmbus_0_7: stor pkt ffff8803f576b140 autosense data valid - len 18
storvsc: Sense Key : Illegal Request [current]
storvsc: Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 4:0:0:0: [sdc] Sense Key : Illegal Request [current]
sd 4:0:0:0: [sdc] Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] CDB: Write(6): 0a 02 a2 3f 08 00
Buffer I/O error on device sdc1, logical block 21568
lost page write due to I/O error on sdc1
hv_storvsc vmbus_0_7: cmd 0xa scsi status 0x2 srb status 0x86
hv_storvsc vmbus_0_7: stor pkt ffff8800ab42e440 autosense data valid - len 18
storvsc: Sense Key : Illegal Request [current]
storvsc: Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sd 4:0:0:0: [sdc] Sense Key : Illegal Request [current]
sd 4:0:0:0: [sdc] Add. Sense: Invalid command operation code
sd 4:0:0:0: [sdc] CDB: Write(6): 0a 02 a1 ff 08 00
Buffer I/O error on device sdc1, logical block 21560
lost page write due to I/O error on sdc1

最佳答案

您最近是否在磁盘上运行过 fsck 以查看它是否可以找到并修复您的错误?

还有,你的slave上有交换驱动器吗?

关于mysql - MySQL Slave 做复制的 I/O 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11298562/

相关文章:

docker - 错误:IO::Pipe:无法执行:没有这样的文件或目录

java - 类 I/O 的异常(exception)

mysql - 将 mysql 引擎从 InnoDB 更改为 MyISAM 的安全方法

javascript - 带有mysql的php中的php代码中的 bool 错误

mysql - 需要简单查询的索引

mysql - SQL中如何通过id降序获取三个订单的平均温度?

Mysql:在选择查询上使用 str_to_date 不会返回任何内容

java - 循环扫描仪输入后无法打印行 - Java

java - java.io.File 中允许的文件分隔符

c# - 读取文件时出现 UnauthorizedAccessException