The VMware VMDK drivers support the creation of VMDK
disk files of type thin
,
thick
, or
eagerZeroedThick
. Use the
vmware:vmdk_type
extra spec key with the
appropriate value to specify the VMDK disk file type. The
following table captures the mapping between the extra
spec entry and the VMDK disk file type:
Disk file type | Extra spec key | Extra spec value |
thin | vmware:vmdk_type | thin |
thick | vmware:vmdk_type | thick |
eagerZeroedThick | vmware:vmdk_type | eagerZeroedThick |
If you do not specify a vmdk_type
extra
spec entry, the default disk file type is
thin
.
The following example shows how to create a
thick
VMDK volume by using the
appropriate vmdk_type
:
$ cinder type-create thick_volume $ cinder type-key thick_volume set vmware:vmdk_type=thick $ cinder create --volume-type thick_volume --display-name volume1 1