vmware vsan 磁盘故障更换


现象

vsan 存储容量变小. 主机出现告警: vsan 数据出现错误

分析

登录相应主机,查看vsan 磁盘组情况

[root@esxi81:~] esxcli vsan storage list
Unknown
   Device: Unknown
   Display Name: Unknown
   Is SSD: false
   VSAN UUID: 525ea6a3-4652-a155-776e-8f4d58b76918
   VSAN Disk Group UUID: 
   VSAN Disk Group Name: 
   Used by this host: false
   In CMMDS: false
   Checksum: 
   Checksum OK: false
   Emulated DIX/DIF Enabled: false

t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7
   Device: t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7
   Display Name: t10.ATA_____ST2000DM0062D2DM164__________________________________Z4ZA9DT7
   Is SSD: false
   VSAN UUID: 5265a8bb-d04d-9344-9dcf-83baa2c0fb23
   VSAN Disk Group UUID: 52713c13-17df-3858-c503-fef6bc2db464
   VSAN Disk Group Name: t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__
   Used by this host: true
   In CMMDS: true
   Checksum: 15102757417397371480
   Checksum OK: true
   Emulated DIX/DIF Enabled: false

t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__
   Device: t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__
   Display Name: t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__
   Is SSD: true
   VSAN UUID: 52713c13-17df-3858-c503-fef6bc2db464
   VSAN Disk Group UUID: 52713c13-17df-3858-c503-fef6bc2db464
   VSAN Disk Group Name: t10.ATA_____INTEL_SSDSC2KW480H6_____________________CVLT61630BLC480EGN__
   Used by this host: true
   In CMMDS: true
   Checksum: 6410776831392425856
   Checksum OK: true
   Emulated DIX/DIF Enabled: false

发现有一个硬盘无法识别.而且不是ssd.是机械盘.

操作

  1. 使用浏览器登录vcenter.6.0版本需要启动flash
  2. 将主机进入维护模式,如果需要等待很久,可以选择将 vSAN 主机置于维护模式时,弹出框了下拉菜单中选择不撤出数据.

  3. 在主机中移除有问题的磁盘.

    esxcli vsan storage  remove -u  525ea6a3-4652-a155-776e-8f4d58b76918
    
  4. 如果提示storage auto claim mode is enabled,登录主机执行 esxcli vsan storage automode set --enabled
  5. 关闭主机.更换故障硬盘.然后再启动主机

  6. 待主机启动完毕,web页面 重新连接主机

  7. 选择vsan存储,右击选中设置,选中相应主机的磁盘组,点击添加磁盘.将新硬盘添加进 vsan 磁盘组.

  8. 将主机退出维护模式

其他

如果新硬盘之前已经被使用,需要先格式化.格式化的方式,可以选择将其先创建为一个新存储. 然后再将该存储删除.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: