VMware ESXi Add Storage Error

在 VMware vSphere ESXi 5.5 新增 storage 時,發生「Call “HostStorageSystem.ComputeDiskPartitionInfo” for object “storageSystem-XX” on vCenter Server “XXXX.xxx.xxx.tw” failed.」錯誤(如下圖),解決方法 ~~~

add_storage_error

 

先開啟 ESXi 主機的 SSH 服務,然後登入 ESXi。

輸入指令,並找出 add storage 時會發生錯誤的 disk:

~ # esxcfg-scsidevs -l
naa.60030d90a66070078cea1eddf486c87a
Device Type: Direct-Access

…(省略)…

t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______
Device Type: Direct-Access
Size: 57241 MB
Display Name: Local ATA Disk (t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______
Devfs Path: /vmfs/devices/disks/t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______
Vendor: ATA Model: MK0060EAVDR Revis: 3C32
SCSI Level: 5 Is Pseudo: false Status: on
Is RDM Capable: false Is Removable: false
Is Local: true Is SSD: true
Other Names:
vml.0100000000533043474e45415a4330313034372020202020204d4b30303630
VAAI Status: unknown

先查看一下分割區,看起來會像這樣:

~ # partedUtil get /dev/disks/t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______
7297 255 63 117231408
1 2048 718847 7 128
2 718848 117157887 7 0

這個磁碟有兩個分割區,將這兩個分割區全數刪除:

~ # partedUtil delete /dev/disks/t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______ 2
~ # partedUtil delete /dev/disks/t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______ 1

可再查看一下是否全數刪除了:

~ # partedUtil get /dev/disks/t10.ATA_____MK0060EAVDR_____________________________S0CGNEAZC01047______
7297 255 63 117231408

這時回到 vSphere Client 去再次新增 Storage,即可正常 Add Storage

add_storage_fixed