ephillipsme
Enthusiast
Enthusiast

ESX 4 Install localstorage block size?

Jump to solution

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

~Ernie
0 Kudos
1 Solution

Accepted Solutions
Gabrie1
Commander
Commander

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

View solution in original post

0 Kudos
7 Replies
AndreTheGiant
Immortal
Immortal

There isn't (with interactive installation).

Maybe with unattended installation (with kickstart)...

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
admin
Immortal
Immortal

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.

0 Kudos
larstr
Champion
Champion

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

0 Kudos
depping
Leadership
Leadership

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-instal...

Duncan

VMware Communities User Moderator | VCP | VCDX

-


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

Twitter: (*NEW*)

Available Soon: vSphere Quick Start Guide ()

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

Gabrie1
Commander
Commander

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

View solution in original post

0 Kudos
maifriend
Contributor
Contributor

Andre,

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

0 Kudos
DSTAVERT
Immortal
Immortal

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

-- David -- VMware Communities Moderator
0 Kudos