• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 637
  • Last Modified:

How do I change vmfs block size

I'm trying to create a 400g Vm session on my ESXI datastore but it says I'm limited to 256G because of the block size. I found that I need to change that to 4M block size but haven't been able to find out how. Some say to delete and recreate the datastore and that is one of the setup options but when I try and delete the datastore I get 'the resource is in use'
0
Axis52401
Asked:
Axis52401
  • 6
  • 6
  • 5
1 Solution
 
Paul SolovyovskySenior IT AdvisorCommented:
You can't change it on the fly.  You will need to move the VMs off to another location such as another datastore and reformat datastore.
0
 
coolsport00Commented:
Yep...you can only do so by removing (deleting) the datastore, then re-adding with the desired block size; follow Paul's guidance since removing the DS deletes all data on the DS.
0
 
Axis52401Security AnalystAuthor Commented:
How do I remove it, I already make a copy of the one VM I had on there so I'm fine with reformatting it I just haven't been able to find out how.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
coolsport00Commented:
Right-click the datastore & select remove/delete.
0
 
Axis52401Security AnalystAuthor Commented:
I get this error when doing that (screen shot) May have to zoom in to read but basically is looks like something is using the datastore and preventing deletion.
esxierror.doc
0
 
Paul SolovyovskySenior IT AdvisorCommented:
Let's backtrack.

How many datastores do you have?  If your ESXi install is on the same datastore then you will not be able to do this.  You would need to wipe the sytem, create 2 partitions (a small one for ESXi installable or install on a USB) and a second datastore for the VMs.
0
 
Axis52401Security AnalystAuthor Commented:
OK, but in that case how do I make sure this datastore I create will have the 4M block size I need. I don't recall that being an option when we installed it the first time.
0
 
coolsport00Commented:
You cant change during inastall, but there is a way; I'm mobile @ the moment and dont have the link...Paul may have it?
0
 
Paul SolovyovskySenior IT AdvisorCommented:
You can't change it during install, this is why you should create either two arrays or two partitions.  On the first install just the OS.  Once installed create a datastore with the block size you want.
0
 
Axis52401Security AnalystAuthor Commented:
Ist there a recommended size for the ESXI system partition?
0
 
Paul SolovyovskySenior IT AdvisorCommented:
I keep in under 20GB, it can be as small as 6GB
0
 
Axis52401Security AnalystAuthor Commented:
I'm just trying the ESXI install from CD and it gives me only the option to install it to datastore 1 856G it doesnt have an option like in Windowas where I can create a partition of a given size and install to that partition.
0
 
coolsport00Commented:
Another option is to install ESXi on USB. You dont have RAID protection, but is doable.
0
 
Axis52401Security AnalystAuthor Commented:
Yes I've done the USB option at one of our other office but would like to avoid that here is possible.
0
 
Paul SolovyovskySenior IT AdvisorCommented:
YOu could create the array use a cd with a runtime linux on it.  Create two physial partitions so that when you load ESXi it will see them and this will allow you to create the OS on the smaller partition
0
 
coolsport00Commented:
Here is the VMware KB on the issue:
http://kb.vmware.com/kb/1012683 and
http://kb.vmware.com/kb/1013210

It seems you can do so in earlier version of ESX/i (3.x). You can reinstall ESXi with legacy version and config the proper block size, then upgrade to 4.x. Or, there is a vmkfstools cmd you can run, but I can't vouch for its accuracy as I've not done the cmd before. Since you have no data on the install any longer, it won't hurt you to test it out. At the very least you can just reinstall ESXi.

Hope that helps.

~coolsport00
0
 
coolsport00Commented:
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 6
  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now