廣告

2024 年 11 月
 123
45678910
11121314151617
18192021222324
252627282930  

彙整

VM ESXi 新增硬碟出現 Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" for object "ha-datastoresystem" on ESXi "x.x.x.x" failed. 訊息

解決方式
以 SSH 連線登入 ESXi Server,此時可將 iSCSI 磁碟視為「安裝」好的本機磁碟,查詢 iSCSI 磁碟的裝置名稱與磁區狀態,用的當然是 Linux 的 fdisk 指令,「fdisk -l」顯示這個硬碟已被切割為三個磁區,難怪 ESXi 無法格式化,逐一刪除磁區後,回到 VMware vSphere Client 重複 Add Storage 步驟就可以了。

================================

~ # fdisk -l

Disk /dev/disks/t10.ATA_____Hitachi_HDS721010CLA332_______________________JP6921HD1PJY1M: 1000.2 GB, 10002048860                                                                                               16 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                                                               Device Boot      Start         En                                                                                               d      Blocks  Id System

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 4005 MB, 4005560320 bytes
64 heads, 32 sectors/track, 3820 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

                           Device Boot      Start         End      Blocks  Id System
/dev/disks/mpx.vmhba32:C0:T0:L0p1             5       900    917504    5  Extended
/dev/disks/mpx.vmhba32:C0:T0:L0p4   *         1         4      4080    4  FAT16 <32M
/dev/disks/mpx.vmhba32:C0:T0:L0p5             5       254    255984    6  FAT16
/dev/disks/mpx.vmhba32:C0:T0:L0p6           255       504    255984    6  FAT16
/dev/disks/mpx.vmhba32:C0:T0:L0p7           505       614    112624   fc  VMKcore
/dev/disks/mpx.vmhba32:C0:T0:L0p8           615       900    292848    6  FAT16

 

~ # fdisk /dev/disks/t10.ATA_____Hitachi_HDS721010CLA332_______________________JP6921HD1PJY1M

Command (m for help): m
Command Action
a       toggle a bootable flag
b       edit bsd disklabel
c       toggle the dos compatibility flag
d       delete a partition
l       list known partition types
n       add a new partition
o       create a new empty DOS partition table
p       print the partition table
q       quit without saving changes
s       create a new empty Sun disklabel
t       change a partition’s system id
u       change display/entry units
v       verify the partition table
w       write table to disk and exit
x       extra functionality (experts only)

 

Command (m for help): d
Selected partition 1

 

Command (m for help): w
The partition table has been altered!

================================

參考來源
http://blogs.yyes.chc.edu.tw/post/2/3401

讀者也會看的其它文章:

    Comments are closed.