vsphere_static_160x300
Free Business and Tech Magazines and eBooks
Badges

vexpert_logo_100x57

gestaltitbadge

follow-me-twitter

Subscribe to me on FriendFeed

Comments / DISQUS
Feedjit.com

Best Practices for ESX Host Partitions

Installing ESX is fast and simple. By default you could click through the installer GUI changing only your local time zone and end up with a stable, dependable host. However, there are some recommended partitioning best practices that should be followed in order to make sure you minimize possible future headaches and create a repeatable and scalable environment.

This post uses content from documents found in the VI Plan and Design Toolkit available to VMware partners. Logging on to Partner Central and accessing > Info Center > VAC > Services is how you find the various toolkits. It also should be pointed out that the partitioning information in this post is for ESX 3.x only, and is not applicable to ESX 3i, 2.x or previous versions.

When installing ESX you quickly reach the Partitioning Options screen. Select the “Recommended” radio button initially. You can then make changes from the Partitioning Disks screen which follows.

Primary Partition Changes

Best practices state that the following partitions should be made “Primary” partitions:

/boot

/

Swap

This can be accomplished by selecting each of the aforementioned partitions (one at a time) and clicking the “Edit” button. The configuration options for that partition/file system will be brought up. Select (turn on) the checkbox option near the bottom of the box labeled “Force to be a primary partition”. Do this for each of 3 file systems listed above, clicking “OK” after fixing each file system.

Create New Partitions

Following VMware best practices, it is best to dedicate entire partitions for the following directories:

/var

/tmp

/home

This can be accomplished by clicking New.

Follow the configurations from the following table, as the file system should reflect these sizes. Click Next when finished.

Local Storage Partitions

This table shows the service console partitions and sizes for each ESX Server host. Some of these recommended partition sizes are larger than the default values. The additional partitions and increased sizes will protect against the critical root partition getting filled up which can lead to issues. Note that this section does not apply for ESX Server 3i. Also, the following partition table uses less than 16 GB of space.

Service Console Partitions and Sizes for Each ESX Server Host

Mount Point Partition Size Description

/dev/sda (Primary)

/boot ext3 250 MB Change for additional space for upgrades
N/A swap 1600 MB Change for maximum service console swap size
/ ext3 5120 MB Change for additional space in root

/dev/sda (Extended)

/var ext3 4096 MB Create partition to avoid overfilling root with log files
/tmp ext3 1024 MB Create partition to avoid overfilling root with temporary files
/opt ext3 2048 MB Create partition to avoid overfilling root with VMware HA log files
/home ext3 1024 MB Create partition to avoid overfilling root with agent / user files
vmkcore 100 MB Pre-configured
Free Space (Optional) Auto-configured and used for local VMFS-3 volume (needed for virtual machines running Microsoft’s Clustering Software.

Related Posts

  • What's the point of having a separate partition for /tmp? If tmpfs is available on ESX, why not just put the extra GB over to swap and use tmpfs for /tmp.
  • Is the /OPT partition still needed in ESX 3.5? The logging is moved to the /VAR partition
  • David,

    Personally, I use /tmp to transfer files to and from ESX. Patches, upgrades, scripts, and of course the target of script and program output.

    Since the max size console ram is 800 mb, and swap should be 2x the console ram, there is never a need to increase swap more than 1600 mb.
  • Ivo,

    According to VMware, specifically HA logging still uses the /opt partition. Honestly, I have not checked what is there. I will have to do that ...
  • could not allocate requested partitions partitioning failed. Could not allocate cylinder based partitions

    Any ideas?
  • I have recently started to break out /var/core into its own file system. I have had two servers core dump (IBM x3850 m2)and fill up the /var file system. Doing this, I increased the size of /var/core just because the space is available, but to also avoid losing logging.
  • andrewstaflin
    Does it really worth it that much to purchase Virtual Center? Would it be worth it to purchase Virtual center
    If I don't upgrade my VI3 from standard to Enterprise. The post above cheered me up a lot into buying it, but it did not
    mention what it will give & not give in standard edition.

    http://www.virtualizationteam.com/virtualizatio...
  • shankyrhodes
    Hi,

    we are considering to buy a VMware Virtual Center.
    We have two servers running VMware Standard edition.
    Do you believe it will be worth it? Or do we have to
    upgrade our VMware licenses to Enterprise before upgrading
    virtual center to make it worth it. I had just read the
    following article
    VMware virtual center real value
  • roger
    Its worth it if you want 0 down time during maintenance upgrades, firmware updates, and or hardware issues. we couldnt live without HA or Vmotion.
  • Rich,

    I know you took most of these values from the Plan and Design but I still feel they are too small. Most systems I work on these days are at LEAST 76GB local storage. The current recommendations use about 15GB. I'd comfortably double most of them if SAN connected. Once the client has SAN space, they rarely (if ever) use any local VMFS space.

    Good topic though.. It'll be interesting to see if vSphere recommendations change anything.

    CARLO.
  • Thanks for sharing this step by step tutorial.. i really appreciate your effort.
blog comments powered by Disqus
Hyper9 Cowabunga
Support VM /ETC
Support VMETC.com

Support VMETC.com

@rbrambley tweets
Advertisements
VMTN Roundtable Podcasts
Subscribe



Add to Google Reader or Homepage
Subscribe in NewsGator Online
Add to netvibes
Add to Plusmo