Reconfiguring the ESX 4.x installer and formatting new VMFS volumes with a specific block size
To reconfigure the installer to format VMFS partitions with a specified block size:
- Boot the ESX installation DVD and choose Install in graphical mode.
- Press Ctrl+Alt+F2 to switch to the shell.
- Run:
ps | grep Xorg
- Kill the PID which shows Xorg -br -logfile ....
For example, run:
kill 590
Where 590 is the PID, per above.
Notes:
- If you specified a GUI mode installation, killing the process identified as Xorg may switch you back to another console. If this occurs, press Ctrl+Alt+F2 to return to the previous console.
- If after killing the Xorg process you get the message "Press <return> to reboot", press Ctrl+Alt+F3 to go to another console and continue working there without rebooting.
-
To switch to the configuration directory, run:
cd /usr/lib/vmware/weasel
- To edit the configuration script, run:
vi fsset.py
Note: For more information on editing files, see Editing configuration files in VMware ESX (1017022).
- Locate class vmfs3FileSystem(FileSystemType).
- Edit the blockSizeMB parameter 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.
Note: Press i for insert mode.
- To save and close the file, press Esc, type :wq! and press Enter. The exclamation mark is needed to force the action of saving as the file is read only.
- Verify that the content has been changed running:
grep -i blockSizeMB fsset.py
- To switch back to the root directory, run:
cd /
- To launch the installer with the new configuration, run:
/bin/weasel