Skip navigation
VMware

This Question is Answered (go to answer)

3,351 Views 7 Replies Last post: Nov 30, 2009 5:40 PM by DSTAVERT RSS
ephillipsme Enthusiast 83 posts since
Oct 13, 2008
Currently Being Moderated

Nov 5, 2009 12:10 PM

ESX 4 Install localstorage block size?

 

During the install there appears to be no way to change the local block size on the VMFS created? Is there a ay other then a scripted install to change this? 

 

 

 

~Ernie

 

VCP3,VCP4, MCSE, CCA

AndreTheGiant Guru User Moderators vExpert 14,462 posts since
Aug 28, 2008
Currently Being Moderated
1. Nov 9, 2009 10:29 PM in response to: ephillipsme
Re: ESX 4 Install localstorage block size?

There isn't (with interactive installation).

Maybe with unattended installation (with kickstart)...

 

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
PatrickD Hot Shot VMware Employees 116 posts since
Oct 4, 2005
Currently Being Moderated
2. Nov 10, 2009 3:59 PM in response to: ephillipsme
Re: ESX 4 Install localstorage block size?

 

There isn't an easy way of doing that right now.  Given that a number of people have asked for it we're looking at adding it in future versions.

 

 

If you want to do this now, the only way to do it is by mucking around with the installer internals (and knowing how to use vi).  It's not that difficult if you're familiar with using a command line.  Try these steps for changing it with a graphical installation:

 

  1. boot the ESX installation DVD

  2. switch to the shell (Ctrl-Alt-F2)

  3. ps | grep Xorg

  4. kill the PID which comes up with something like "Xorg -br -logfile ...".  On my system this comes up as PID 590, so "kill 590"

  5. cd /usr/lib/vmware/weasel

  6. vi fsset.py

  7. scroll down to the part which says "class vmfs3FileSystem(FileSystemType):"

  8. edit the "blockSizeMB" parameter to the block size that you want.  it will currently be set to '1'.  the only values that will probably work are 1, 2, 4, and 8.

  9. save and exit the file

  10. cd /

  11. /bin/weasel

 

After that, run through the installer as you normally would.  To check that it worked, after the installer has completed you can go back to a different terminal (try Ctl-Alt-F3 since weasel is now running on tty2) and look through /var/log/weasel.log for the vmfstools creation command.

 

 

 

 

 

Hope that helps.

 

 

--Patrick.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

larstr Virtuoso vExpert 2,458 posts since
Mar 11, 2004
Currently Being Moderated
3. Nov 11, 2009 12:24 AM in response to: PatrickD
Re: ESX 4 Install localstorage block size?

Why don't you just make 8MB the default value? Then very few would have to change anything..

depping Champion VMware Employees User Moderators vExpert 4,238 posts since
Jan 17, 2005
Currently Being Moderated
4. Nov 11, 2009 12:27 AM in response to: PatrickD
Re: ESX 4 Install localstorage block size?

 

Wow, thanks for this amazing work around. It's an issue a lot of small shops are facing and this definitely helps. I blogged it to make sure it is easy to find via google:

 

 

http://www.yellow-bricks.com/2009/11/11/changing-the-block-size-of-your-local-vmfs-during-the-install/

 

 

 

 

Duncan

VMware Communities User Moderator | VCP | VCDX

 

 

-


Blogging: http://www.yellow-bricks.com

Twitter: http://www.twitter.com/DuncanYB (*NEW*)

Available Soon: vSphere Quick Start Guide (http://www.yellow-bricks.com/2009/08/12/new-book-in-town-vsphere-quick-start-guide/)

 

If you find this information useful, please award points for "correct" or "helpful".

 

 

 

Duncan | Yellow-Bricks.com | Author of the vSphere 5.0 Clustering Deepdive
Gabrie Master vExpert 1,079 posts since
Jun 6, 2005
Currently Being Moderated
5. Nov 11, 2009 1:20 AM in response to: ephillipsme
Re: ESX 4 Install localstorage block size?

Hi

If you want to change the blocksize on another partition than the one the COS is on, you could follow my blogppost: http://www.gabesvirtualworld.com/?p=728  Change blocksize of local VMFS.

 

I will add some more info later today including the info from Patrick.

 

Gabrie

 






http://www.GabesVirtualWorld.com

http://www.GabesVirtualWorld.com
maifriend Lurker 1 posts since
Nov 13, 2009
Currently Being Moderated
6. Nov 30, 2009 5:21 PM in response to: PatrickD
Re: ESX 4 Install localstorage block size?

 

Andre,

 

 

After step #4 (killing PID XXX), if I hit ENTER after I enter a command then the system will reboot.

 

 

DSTAVERT Guru User Moderators vExpert 10,090 posts since
Nov 30, 2003
Currently Being Moderated
7. Nov 30, 2009 5:40 PM in response to: maifriend
Re: ESX 4 Install localstorage block size?

You should create a new post and ask your question. Provide as much detail as you can in your question.

-- David -- VMware Communities Moderator

Incoming Links

Bookmarked By (0)

Share This Page

Communities