硬盘删除后centos出错处理
一台机器centos6.4在新增加一个硬盘后,重新加载光纤卡后,可以正常显示。再将这块硬盘删除后使用命令:pvs与vgs报错:
[root@mongodb-back host2]# pvscan
/dev/sdh: read failed after 0 of 1024 at 0: Input/output error
/dev/sdh: read failed after 0 of 1024 at 2199023124480: Input/output error
/dev/sdh: read failed after 0 of 1024 at 2199023243264: Input/output error
/dev/sdh: read failed after 0 of 1024 at 4096: Input/output error
/dev/sdh: read failed after 0 of 2048 at 0: Input/output error
PV /dev/sdb VG mongovg lvm2 [2.00 TiB / 0 free]
PV /dev/sdc VG mongovg lvm2 [2.00 TiB / 0 free]
PV /dev/sdd VG mongovg lvm2 [2.00 TiB / 1023.99 GiB free]
PV /dev/sde VG mongovg lvm2 [2.00 TiB / 2.00 TiB free]
PV /dev/sdf VG mongovg lvm2 [2.00 TiB / 2.00 TiB free]
PV /dev/sda2 VG vg_mongodbback lvm2 [99.51 GiB / 0 free]
google后找到处理方案
#####
Use lsscsi to determine which device is being used (you may need to install the program) then run lsscsi:
# lsscsi
[1:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[2:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:1:0] disk VMware Virtual disk 1.0 /dev/sdb <== the removed physical disk
[2:0:2:0] disk VMware Virtual disk 1.0 /dev/sdc
Now write the delete file with
# echo 1 > /sys/class/scsi_device/2\:0\:1\:0/device/delete
The device is immediately gone.
###
处理后正常 !
阅读(3480) | 评论(0) | 转发(0) |