Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1600810
  • 博文数量: 184
  • 博客积分: 3044
  • 博客等级: 中校
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-25 15:04
文章分类

全部博文(184)

文章存档

2022年(4)

2021年(3)

2020年(1)

2019年(5)

2018年(13)

2017年(6)

2016年(10)

2015年(11)

2014年(11)

2013年(13)

2012年(23)

2011年(25)

2010年(2)

2008年(1)

2007年(5)

2006年(51)

分类: 系统运维

2015-03-24 11:14:14

硬盘删除后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.


###
处理后正常 !
阅读(3401) | 评论(0) | 转发(0) |
0

上一篇:grub2 修复

下一篇:rabbitmq导出message

给主人留下些什么吧!~~