調用對象 “ha-datastoresystem”的“HostDatastoreSystem.QueryVmfsDatastoreCreateOptions” 失敗。


VMware vSphere Client上顯示:在 ESXi“10.10.10.3”上調用對象 “ha-datastoresystem”的“HostDatastoreSystem.QueryVmfsDatastoreCreateOptions” 失敗。

第一塊主硬盤(系統盤)

名稱:Local ATA Disk (t10.ATA_____ST1000DM0032D1SB10C__________________________________W9A0E4ZD)

設備ID:Local ATA Disk (t10.ATA_____ST1000DM0032D1SB10C__________________________________W9A0E4ZD):3

容量:924GB

 

 第二塊硬盤

名稱:Local ATA Disk (t10.ATA_____ST1000DM0102D2EP102__________________________________W9A7GCWC)

設備ID:Local ATA Disk (t10.ATA_____ST1000DM0102D2EP102__________________________________W9A7GCWC)

容量:931.51GB

在數據存儲里沒有識別

 

 第三塊硬盤

名稱:Local ATA Disk (t10.ATA_____WDC_WD5000AAKX2D22ERMA0_______________________WD2DWCC2EFU50064)

設備ID:Local ATA Disk (t10.ATA_____WDC_WD5000AAKX2D22ERMA0_______________________WD2DWCC2EFU50064):1

容量:464.55GB

數據存儲:

設備:

 

問題描述

選中系統盤,添加存儲器時,點下一步,報錯:在 ESXi“192.168.20.188”上調用對象 “ha-datastoresystem”的“HostDatastoreSystem.QueryVmfsDatastoreCreateOptions” 失敗。步驟截圖如下:

通過網上查詢,初步判斷硬盤(此硬盤原來安裝其他操作系統)沒有空間寫暫時文件,需要在EXSI主機里面把該硬盤的分區都刪除即可。但是EXSI機默認沒開SSHshell命令行模式,於是:

(1)到機房把主機接上顯示器,按F2(CustomizeSystem/View Logs) 輸入密碼進入管理界面,找到Troubleshooting Options,將enable SSH 和enable shell回車啟動即可

(2)用SecureCRT連上EXSI主機進入命令行模式

(3)開始用fdisk –l命令查看,可以顯示系統盤和掛載報錯的那塊盤信息:

發現提示語:The fdisk command is deprecated: fdisk does not handle GPT partitions.  Please use partedUtil(不建議使用fdisk命令:fdisk不處理GPT分區。請使用partedUtil)

根據報錯界面得知,是第二塊硬盤

名稱:Local ATA Disk (t10.ATA_____ST1000DM0102D2EP102__________________________________W9A7GCWC)報錯

 

 查看partedUtil工具用法,特別注意引號

--------------------------------------------------------------------------------------------------------------------------------

[root@localhost:~] partedUtil
Not enough arguments

Usage:
 Get Partitions : get <diskName>
 Set Partitions : set <diskName> ["partNum startSector endSector type attr"]*
 Delete Partition : delete <diskName> <partNum>
 Resize Partition : resize <diskName> <partNum> <start> <end>
 Get Partitions : getptbl <diskName>
 Set Partitions : setptbl <diskName> <label> ["partNum startSector endSector type/guid attr"]*
 Fix Partition Table : fix <diskName>
 Create New Label (all existing data will be lost): mklabel <diskName> <label>
 Show commonly used partition type guids : showGuids
 Get usable first and last sectors : getUsableSectors <diskName>
 Fix GPT Table interactively : fixGpt <diskName>

------------------------------------------------------------------------------------------------------------------------------------

然后將第二塊硬盤分區將其刪除,失敗。

[root@localhost:~] partedUtil delete "t10.ATA_____ST1000DM0102D2EP102__________________________________W9A7GCWC" 1

於是通過更改磁盤的卷標,可以破壞磁盤的所有分區。所以這里用partedUtil mklabel命令把磁盤卷標改為msdos

[root@localhost:~] partedUtil mklabel /vmfs/devices/disks/t10.ATA_____ST1000DM0102D2EP102__________________________________W9A7GCWC msdos

通過前后對比可以看出分區信息被刪除了

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM