VMware Cloud Community
vcms
Contributor
Contributor
Jump to solution

CHANGing the block size to 8 mb on local hard disk in esx 3.5 u4

hai

i want to adjust the block size of the local hard disk whose block size is 1mb , i want it to 8mb so as to p2v a 600 gb machine in to the esx host it has 800 gb hdd . i know the following command

To change the block size of a vmfs filesystem, you need to use vmkfstools to reformat the partition. The command is:

vmkfstools --createfs vmfs3 --blocksize 8M vmhba0:0:0:5

but this command returns with a error in handle warning i think this command only works for lun not local harddisk of esx hosts tell me how to change the block size of the local harddisk in esx not lun

vamsi

Reply
0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

Under ESX / Configuration / Storage you have to remove the datastore with the wrong block size (be sure that you have a backup of your VM Smiley Wink ).

Then you can simple choose to add a new datastore (top/right link), you will see the free space (leaved from the old one) and you can choose the block size.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

Reply
0 Kudos
5 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

You must first free your datastore.

Remove VM from inventory, and remove the datatostore from VIC.

The (you can use also VIC) add a new datastore and choose 8MB.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
vcms
Contributor
Contributor
Jump to solution

hai andre

i have a local hard disk of 800 gb now

1)i should remove this from vic client

2) and reattach this hdd from configuration , storage

3) i have a doubt i should choose disk ?? and the vic will detect 800 gb disk and i have to reformat it with 8mb block

are the above steps right

thank you

vamsi

Reply
0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

Under ESX / Configuration / Storage you have to remove the datastore with the wrong block size (be sure that you have a backup of your VM Smiley Wink ).

Then you can simple choose to add a new datastore (top/right link), you will see the free space (leaved from the old one) and you can choose the block size.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
Reply
0 Kudos
vcms
Contributor
Contributor
Jump to solution

hai andre

thanks andre i did it :smileygrin:

vamsi

Reply
0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

You're welcome.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro