本文提供有关无法在 VMware vSphere ESXi 5.5 中创建大于 16 TB 的 VMDK 的信息。
问题:
在 vSphere Client 5.5 中使用超过 16 TB 的虚拟机磁盘 (VMDK) 创建新虚拟机或将超过 16 TB 的 VMDK 添加到现有虚拟机时,您将收到以下错误:
“The disk capacity entered was not a properly formed number or was out of range.It has been replaced with the nearest acceptable value.”(输入的磁盘容量数字格式不正确或超出范围。已替换为最接近的可接受值。)
图 1:错误通知
解决方案:
vSphere Client for 5.5 仅允许您创建最多 16 TB 的 VMDK。
使用 Web 客户端而不是 vSphere Client。
如果无法使用 Web 客户端,也可以使用命令行:
-
通过 SSH 连接到服务器:
-
导航至您的虚拟机的目录:
- # cd /vmfs/volumes/<datastore>/<vm>
- 示例:
- # cd /vmfs/volumes/datastore1/testvm
-
创建新的 VMDK:
- # vmkfstools -c <size><newvmdk> -a lsilogic -d thin
- 示例(使用 lsilogic 适配器创建名为“testvm2.vmdk”的 25 T 精简资源调配 vmdk):
- # vmkfstools -c 25t testvm2.vmdk -a lsilogic -d thin
-
将 VMDK 添加到现有虚拟机:
- 右键单击虚拟机,然后单击“Edit Settings”
- 单击窗口顶部的“Add”按钮
- 单击“Hard Disk”,然后单击“Next”按钮
- 选择“Use an existing virtual disk”,然后单击“Next”按钮
- 选择新创建的虚拟机,然后单击“Next”按钮
- 单击“Next”按钮
- 单击“Finish”按钮
- 忽略信息性消息
- 单击“OK”按钮退出虚拟机属性