薄的 vhdk 在我的 esxi 中被认为是厚的

Thin vhdk considered as thick in my esxi

我在创建虚拟机时选择了瘦硬盘。但是当我检查 Linux 侧的 '.vmdk' 文件的大小时,它显示了实际的刻度大小。 例如:当我分配 250 GB 并检查“.vmdk”的大小时,正好是 250。 有人知道为什么 esxi 认为它很厚吗?

谢谢

如果您为 VM 创建精简配置磁盘,这意味着分配 space(在您的情况下为 250GB)未完全提交 仅分配给 VMFS 文件中的此 VM此容量的系统和未使用块可能与其他 VM 共享。您还可以查看 documentation

For a thin virtual disk, ESXi provisions the entire space required for the disk’s current and future activities, for example 40GB. However, the thin disk commits only as much storage space as the disk needs for its initial operations.

另一方面,来宾 OS Linux 不知道 VMFS 精简磁盘,因此您的 Linux 文件系统(ext3、ext4 或任何您使用的)可以看到整个容量250GB。

在 ESXi 中,您可以通过 运行 stat 命令对您的 .vmdk 文件检查 实际 精简磁盘的磁盘使用情况。