VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
4 Replies Last post: Oct 2, 2009 2:08 AM by pramodupadhya…  

Reformat a VMFS3 partition using 4m blocks posted: Sep 9, 2009 7:11 AM

Click to view sbroskey's profile Enthusiast 22 posts since
Oct 8, 2007


I rushed thru an ESX 3.5 host install and forgot to create my partition with a 4m block. The host server is located 30 miles away. It's currently formatted with the default 1 m block. Is their anyway of reformatting the partition to the 4m block remotely without having to travel to the site and perform a reinstall. There are no files on the partition; any help would be greatly appreciated.

Thanks

Scott

Re: Reformat a VMFS3 partition using 4m blocks

1. Sep 30, 2009 11:01 PM in response to: sbroskey
Click to view tom howarth's profile Guru 7,361 posts since
Jul 25, 2005

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

<code>vmkfstools --createfs vmfs3
--blocksize 8M vmhba0:0:0:3</code>

you have four option of block size

1mb = this will allow a max file size of 256GB

2mb= 512GB

4mb = 1024GB

8mb = 2048 (-512KB)

remember if you are using a maximum LUN size (2TB) it is now recommended to, if using VI3 to format at 2TB - 512KB this will prevent issues with large LUNs on upgrade.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert
VMware Communities User Moderator
Blog: www.planetvm.net
Contributing author for the upcoming book "VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment”. Currently available on roughcuts

Re: Reformat a VMFS3 partition using 4m blocks

3. Oct 2, 2009 1:36 AM in response to: sbroskey
Click to view tom howarth's profile Guru 7,361 posts since
Jul 25, 2005
No this is a destuctive process, just like any formatting process. you will need to evacuate any Guests that are stored on the partition prior to running the command. there is no way of changing the block size without reformatting.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert
VMware Communities User Moderator
Blog: www.planetvm.net
Contributing author for the upcoming book "VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment”. Currently available on roughcuts

Re: Reformat a VMFS3 partition using 4m blocks

4. Oct 2, 2009 2:08 AM in response to: sbroskey
Click to view pramodupadhyay5's profile Hot Shot 121 posts since
May 5, 2009

By default, VMWare ESX server uses a 1M block size which limits
you to having a maximum of 256GB in any single virtual machine. By
changing the block size of your vmfs partition, you can increase
the maximum amount of disk you can have. A 2M block size yields a
maximum disk size of 512 GB, 4M yields 1TB, and 8M yields 2TB. There
is no support for anything larger under vmfs3. Vmfs2 had a maximum
block size of 16M, but that has been removed in the vmfs3 specification.

To change the block size of a vmfs filesystem, you need to use vmkfstools to reformat the partition. The command is:<code>vmkfstools --createfs vmfs3 --blocksize 8M vmhba0:0:0:3</code>
It is important to note that like any other formatting procedure, this
will destroy any data on the partition, so make sure you move your data
before you do this. The “vmhba0:0:0:3″ is where you specify which
partition to reformat. According to the VMWare server configuration
guide, the format is:

vmhbaA:T:L:P format, where A, T, L, and P are integers
representing adapter, target, LUN, and partition number respectively.
The partition digit must be greater than zero and should correspond to
a valid VMFS partition of type fb
For example, vmhba0:2:3:1 refers to the first partition on LUN 3, target 2, HBA 0.

If you’re reformatting a current vmfs filesystem just to increase
the blocksize, you can get that information from the storage section in
the configuration tab of the Virtual Infrastructure Client.

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities