This article provides instructions on how to specify a block size during the formatting process of VMware ESX 4.x. By default it formats them with a 1MB block size, allowing for storage of files 256GB and under. This default VMFS Datastore cannot be easily reformatted with a higher block size as it contains the Service Console VMDK file.
The ESX 4.x installer utilizes the default block size of 1MB when creating VMFS volumes. For additional information on the VMFS block size, see the Additional Information section, below.
The service console in ESX 4.x is stored in a VMDK file on a VMFS partition, typically located on local storage. While VMware ESX 4.x is running, you cannot reformat the volume with the intended block size. If you have already completed an installation of VMware ESX 4.x, are unable to reinstall the product with the intended block size using steps provided below, and you require a larger block size on the local VMFS partition, see Reformatting the local VMFS partition's block size in ESX 4.x (post-installation) (1013210).
While the installer can be modified to format any new VMFS partitions with a specified block size, the following workarounds are also available:
vmkfstools -C vmfs -b Xm -S local2mBS /vmfs/devices/disks/naa.xxxxxxxxxx:y
Xmis the blocksize (1m, 2m, 4m, or 8m).
local2mBSis your volume name. If the volume name has a space (for example,
volume name ), enclose it in quotation marks (for example, "
naais the naa identifier, and
yis the partition number. To determine this, run
ls -lain the
naa.may be replaced with
mpx.. For more information, seeIdentifying disks when working with VMware ESX (1014953).
To reconfigure the installer to format VMFS partitions with a specified block size:
ps | grep Xorg
Xorg -br -logfile ....
Xorgmay switch you back to another console. If this occurs, press Ctrl+Alt+F2 to return to the previous console.
Xorgprocess you see the message
Press, press Ctrl+Alt+F3 to go to another console and continue working there without rebooting.
blockSizeMBparameter to the block size that you want. It is currently be set to 1. The only values that work correctly are 1, 2, 4, and 8.
ifor insert mode.
grep -i blockSizeMB fsset.py
Based on VMware KB 1012683