ESXi 5.0, Datastore block size and virtual hard drive size

Posted on 2013-09-08
Medium Priority
Last Modified: 2013-09-08
Hey guys

I took over a client who has an ESXi installed on a server. The server has 500GB HDD so the Datastore capacity is showing up as 465GB. The problem I'm having is that SBS 2011 what is installed on this ESXi is running out of hard drive space. Here's more information:

There are 2 virtual servers installed on it, SBS2011 as the production server with maximum virtual disk size of 216GB of which 210GB is allocated to the server right now.

And then there is also Server2k3 installed with some software to maintain SBS etc. Virtual HDD size 36GB.

So, 36GB + 216GB is 256GB but I cannot increase the size of SBS virtual HDD it seems.

I've done some more digging and found this: http://blog.corneredge.com/2009/07/22/data-store-size-limits-from-block-size-in-vmware-esx-and-esxi/ 

The server I'm maintaining has 1MB block size.

We have just 1 ESXi installed, it's a small business so no need for more.

What would be my best course of action to get more hard disks space for SBS2011.

Question by:kirret
  • 6
  • 5
  • 2
  • +1

Assisted Solution

TMekeel earned 600 total points
ID: 39474393
If you cannot incur any down time, create another VHD and attach it to the SBS Box.  Then consider moving data off to the second VHD, most likely the Exchange Database and Logs are taking up the most space.  TreeFile Size is a great app to see what is taking up space.  

You could also run a full exchange backup which should truncate the logs, or perhaps turn on circular logging and then turn it back off. Only do this if you know what the consequences are.

Author Comment

ID: 39474403
We can actually have plenty of downtime, every evening + weekends.

Exchange was used in the past but now due to company policy (they are part of a nationwide company) they need to use another email provider so Exchange could go completely actually from the server.

Thanks for your input.
LVL 126
ID: 39474412
ESXi 5.x, has a block size default of 1MB on a VMFS-5 datastore. This should allow you to increase the size of a virtual disk (vmdk) to 2TB-512bytes. (this could be hindered if the server was upgraded from 4.x to 5.x)

You can check the block size, and maximum size of disk, by selecting properties of the datastore.

other reasons for not being able to increase virtual disk size (if it's grayed out!).

1. there is a snapshot present
2. the virtual disk is set to IDE and not SCSI, IDE disks are not supported for expansion.

so check the above

see my EE Articles

HOW TO: VMware Snapshots :- Be Patient

HOW TO:  Resize a VMware (VMDK) Virtual Disk
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.


Expert Comment

ID: 39474413
The point of my answer is if there is only one server, there is not a way to increase the block size.  However, that does not mean you cannot attach another disk to the SBS server and use it for data, thus freeing up space on the C: drive.  

I would use treefile size or a similar application to determine where large amounts of data are on the c: drive, and then attach a new empty disk to the SBS server and move data off of C:.  The only downtime you will have is rebooting the SBS server.

This isn't the only way to do it, but it would be painless and not require moving VMs to another server.
LVL 126
ID: 39474416
when you select Edit Virtual Disk, what happenes, what does it state?

Author Comment

ID: 39474419
@TMekeel - Thanks, you answered all my questions so I have a much clearer view of what I can/can't do.

@hanccocka - I think I've got the solution to my problem by TMekeel, thanks anyway.
LVL 23

Assisted Solution

Mysidia earned 200 total points
ID: 39474423
The article is dated.
These virtual disk size limits at 1 Megabyte block size only apply to versions of the older VMFS prior to Version 5.

ESXi Version 5 and later create new filesystems as VMFS version 5.

If this was originally an ESXI4 or ESXI4.1  server  that you upgraded to ESXi version 5;
then  AS long as you no longer have any ESXi version 4 servers sharing this disk,

then you can do a VMFS upgrade to Version 5,

Click your host.
Go to the configuration tab.

Click the blue text that says "Storage"

Click the datastore from the list.

Check the VMFS version, when it shows up.
Look for a blue "Upgrade"  button to move from VMFS3 or VMFS2  up to the current VMFS version 5.

NOTE:  Upgrading to VMFS5;  your filesystem block size will not change.    You will not get all the performance advantages of VMFS5 necessarily,   but you don't have to format; and once you upgrade to VMFS5 if necessary,

The   config maximum for a VM virtual disk at  datastore 1MB block size  is the limit of 2TB minus 512bytes, for VMFS version 5.

Author Comment

ID: 39474436

The file system it shows under Configuration - Storage - DataStore1 is VMFS 5.54 if that helps.

But as you said I cannot change the block size anyway...
LVL 126

Accepted Solution

Andrew Hancock (VMware vExpert / EE MVE^2) earned 1200 total points
ID: 39474438
Block Size is not applicable, it's always 1MB, and supports disks up to 2TB-512bytes.

Check for snapshots and check for storage controller!

Author Comment

ID: 39474459
There are no snaphots hanccocka. See if any of these helps us:

Screenshot 1Screenshot 2Screenshot 3
LVL 126
ID: 39474466
What storage controller is used in the VM?

Edit VM Settings?

could you screenshot disk settings in the VM?

Author Comment

ID: 39474488
That's interesting. As I described before, Maximum Size was showing up as 216GB with 210GB as the current size. I changed from 210GB to 214GB, just to have few extra GBs as they will be needed from tomorrow, and then expanded the hard drive on SBS as well.

Now when I go back to Hard disk settings as you requested, the Maximum size has gone up to 444.84GB. I guess the problem is solved then, not sure why it changed it's maximum size though, but I can't complain.

Here's the screenshot anyway:

Screenshot 4
LVL 23

Expert Comment

ID: 39474497
The "Maximum size"  value that shows in VM settings;  is mostly a function of the amount of free space remaining on a datastore.

If there is very little space free,  then maximum size will be very close to "Provisioned size"

Author Comment

ID: 39474501
Yes, and this is how it was before, 216GB / 210GB, just as described in my original question.

So did anything change when I added those extra 4GB, seems like it because now it's showing I can go up to 444GB.

Thanks everyone for your help. I'll close the thread now.
LVL 126
ID: 39474537
Glad all resolved, just some feedback...

1. I notice that a cdrom maybe connected, I would recommend disconnecting, as this can cause a Host overhead.

2. Also if you should experience performance issues, and would look at whether 4 vCPU are required in this VM. 4 vCPUs are not often required, and you could be over-subscribbing the CPUs, which in turn will cause performance issues.

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article will go through how to backup a vPostgres DB from a broken vCenter Appliance and restore to a new vCenter Appliance.
If you need to complete a Physical to Virtual (P2V), Virtual to Virtual (V2V) conversion to a VMware product (VMware Workstation, Player or VMware vSphere (ESXi) ) for FREE, then there is some good news...
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently changeā€¦
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question