Comparison of the base descriptor file and the tailored descriptor file
The following table provides a comparison of the base descriptor file and the tailored descriptor file:
Base Descriptor File | Tailored Descriptor File
|
# Disk DescriptorFile version=1 CID=fb183c20 parentCID=ffffffff createType="vmfs"
# Extent description RW 8388608 VMFS "vmdisk0-flat.vmdk"
# The Disk Data Base #DDB
ddb.virtualHWVersion = "4" ddb.geometry.cylinders = "522" ddb.geometry.heads = "255" ddb.geometry.sectors = "63" ddb.adapterType = "lsilogic" ddb.thinProvisioned = "1"
| # Disk DescriptorFile version=1 CID=fb183c20 parentCID=ffffffff createType="twoGbMaxExtentSparse"
# Extent description RW 4192256 SPARSE "vmdisk0-s001.vmdk" RW 4192256 SPARSE "vmdisk0-s002.vmdk" RW 2101248 SPARSE "vmdisk0-s003.vmdk"
# The Disk Data Base #DDB
ddb.virtualHWVersion = "4" ddb.geometry.cylinders = "652" ddb.geometry.heads = "255" ddb.geometry.sectors = "63" ddb.adapterType = "lsilogic" |
The extent description section in the tailored descriptor file has the following values:
RW 4192256 SPARSE "vmdisk0-s001.vmdk"
RW 4192256 SPARSE "vmdisk0-s002.vmdk"
RW 2101248 SPARSE "vmdisk0-s003.vmdk"
- The RW value is the number of 512-Byte sectors for the extent or disk file. All but the final disk in the chain should be 4192256 512-Byte sectors, amounting to 2GB.
- The sector count is determined by multiplying the number of cylinders, heads, and sectors. The number of cylinders, heads, and sectors are defined in the DDB section.
- The total number of extents may deviate from the example above; append new lines containing information similar to the above, accounting for all the files in the chain.
- In the above example, there are two 2GB files and a partial (or <2GB) disk file at the end of the chain. The total size of the disk did not reach or exceed 6GB.</li>
The DDB section in the tailored description file has the following values:
ddb.geometry.cylinders = "652"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.adapterType = "lsilogic"
- The ddb.geometry.heads value is always 255 for virtual machine disks (in entirety) equal to, or larger than, 2GB.
- The ddb.geometry.sectors value is always 63 for virtual machine disks (in entirety) equal to, or larger than 2GB.
- The ddb.geometry.cylinders value requires special consideration.
Cylinder Calculations
- The number of cylinders is determined by multiplying the number of heads (255) and sectors (63), which equals 16065.
- This number is multiplied by 512, which equals 8225280.
- Divide the total size of the virtual disk in bytes by 8225280, per the value above.
- Round this off to the nearest integer to get the ddb.geometry.cylinders value.
For example:
5,368,709,120 / (255 * 63 * 512)
= 5,368,709,120 / 8225280
= 652.70837223778400248988484282602
= 652 cylinders
If the size of the disk is less than 1GB:
- Set ddb.geometry.heads to 64.
- Set ddb.geometry.sectors to 32.
- Set ddb.geometry.cylinders to the integer portion of the value obtained when the size of the disk (in bytes) is divided by 1048576.
Note: This number (1048576) is generated by multiplying head and sector values, and 512, for the block size.
If the size of the flat file is 1GB or more but less than 2GB:
- Set ddb.geometry.heads to 128.
- Set ddb.geometry.sectors to 32.
- Set ddb.geometry.cylinders to the integer portion of the value obtained when the size of the disk (in bytes) is divided by by 2097152.
If the size of the flat file is 2GB or more:
- Set ddb.geometry.heads to 255.
- Set ddb.geometry.sectors to 63.
- Set ddb.geometry.cylinders to the integer portion of the value obtained when the size of the disk (in bytes) is divided by 8225280.