• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • Unexplored Territory Podcast
  • HA Deepdive
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

partitioning your esx

Duncan Epping · Oct 23, 2008 ·

So I talked about using /var instead of /var/log for you standard ESX deployment… Still I see people do lots of weird things, these are my recommendation for esx partitioning:

Primary:
/boot   - 250MB
/       - 5120MB
Swap    - 1600MB
Extended Partition:
/var    - 4096MB
/home   - 2048MB
/opt    - 2048MB
/tmp    - 2048MB
VMKcore - 100MB
VMFS    - Fillup, but leave atleast 5GB for additional partitions in the future as Bouke and Eric suggest below!

This will take up around 18GB of the 36GB you have these days as a minimum. And you’ll avoid filling up your root file system with log files, core dumps or temporary files. Start using it if you’re not doing it…

And if you did manage to fill up your root file system use this command from the COS to find any files larger than 10MB:

find –type f –size +10240k

Related

Server ESX, Howto

Reader Interactions

Comments

  1. Eric Sloof says

    23 October, 2008 at 21:31

    Shouldn’t you fill up VMFS with half of what’s free so you can always add an additional partition?

  2. Wade Holmes says

    23 October, 2008 at 21:38

    Hi Duncan,

    I have a question/comment. Doesn’t VMFS created during install lack proper disk geometry alignment, while VMFS created through VC is properly aligned? Would this make it prudent to wait to create VMFS partitions later through Virtual Center?

  3. Bouke Groenescheij says

    23 October, 2008 at 21:44

    I agree with Eric Sloof on this one: I always tend to have some free space at the end. This can be used for multiple purposes: make more VMFS or more EXT3. Great article!

  4. Justin says

    24 October, 2008 at 00:57

    We do something very similar, but a little larger on /, /var, and /tmp and no /opt or /home. I have yet to come across any reason to need additional VMFS partitions (which you wouldn’t need if you had filled the drive the first time), or additional ext3 partitions on the local storage of my ESX hosts.

  5. Gabrie van Zanten says

    24 October, 2008 at 01:00

    Hi

    I would create a much larger tmp partition, maybe 10 or 20Gb instead of 2Gb. I remember the upgrade package from ESX Server 3.0.x to ESX Server 3.5 Update 2 Refresh being 1.9Gb. Although normally I would rather reinstall.

    Gabrie

  6. Hany says

    24 October, 2008 at 01:14

    i’m wondering of there is any official documentation/recommendation from VMware regarding this? perhaps with a table referenced to the amount of memory (e.g. 8GB, 16GB, 64GB ..etc.) and/or the approximate number of running VMs on the ESX host ..

    this ESX partitioning part has been always inconsistent in terms of best practices or recommendations.

  7. Keith says

    24 October, 2008 at 05:28

    Good stuff keep the articles coming 🙂

    we setup as below; has worked well thus far

    /boot = default
    / = 5120
    swap=1600
    /var=5120
    /tmp=5120
    /home=2048
    /vmkcore=100
    /vmfs = rest

  8. Leo Raikhman says

    24 October, 2008 at 17:01

    Hi,

    /opt is redundant as of ESX 3.5 – the partitioning scheme from 3.0 no longer applies as AAM (HA) now logs to /var/log, not to /opt, negating the need for a /opt partition.

    Otherwise, I’m very similar.

    Cheers,
    Leo

  9. michael says

    24 October, 2008 at 17:50

    #
    Wade Holmes
    October 23rd, 2008 at 21:38

    Hi Duncan,

    I have a question/comment. Doesn’t VMFS created during install lack proper disk geometry alignment, while VMFS created through VC is properly aligned? Would this make it prudent to wait to create VMFS partitions later through Virtual Center?

    can anyone answer this question?

  10. Duncan says

    24 October, 2008 at 19:47

    huh, i typed a reaction this morning and it’s gone…

    /opt = will also be used by other 3rd party agents.
    @eric / bouke , you are right… might be useful to leave at least 5GB unpartitioned
    @wade, well the alignment… how many people actually align their vm’s? that’s right not many. anyway I don’t think one should actively use their local vmfs. so you can wait for VC that’s fine with me. Would create a better aligned disk indeed.
    @hany there are no official statements except for the best practices on partnet centrals and my best practice is close to that one…
    @gabrie I never do upgrade packages, I always use the CD or update manager. don’t see the point in creating 20GB /tmp partitions, well maybe if you’ve got 76Gb than having 10 extra in temp… otherwise…

  11. GregW says

    5 November, 2008 at 03:24

    One observation, some good sizing info here ; but ; when you come to running something like vm-support (to collect logs) depending on your hosts and how long they have been up / running / usage ect ect – some of these partition sizes may not work out too well.

  12. scorelord says

    6 November, 2008 at 13:56

    I’d recommend to use the vmreference recommendation. http://www.vmreference.com/vi3-card/

    Never used /var though. Always used var/log… Why would one need to use /var only?

  13. Duncan Epping says

    6 November, 2008 at 14:24

    you need to use /var cause the service console core dumps are stored in /var/core. if you would use /var/log you could end up with core dumps filling your /.

  14. George says

    6 November, 2008 at 15:14

    I thought the core dumps are store in VMKcore partition…

  15. Duncan says

    6 November, 2008 at 16:07

    The name actually reveals what it stores “VMKcore”, VMKernel…

  16. George says

    6 November, 2008 at 16:32

    Then , that trainer in the VI3 I&C had no clue about ESX… Thanks!

  17. George says

    21 November, 2008 at 10:02

    But the official documentation says:

    vmkcore – A vmkcore partition is required to store core dumps for
    troubleshooting. VMware does not support ESX Server host configurations
    without a vmkcore partition

    Install Guide , page 91

    I’m getting confused…

  18. Duncan Epping says

    21 November, 2008 at 10:26

    George,

    the vmkcore partition is used to store the core dumps generated by the vmkernel. the /var/core directory is used to store the coredumps generated by the service console, which is red hat.

  19. George says

    21 November, 2008 at 10:48

    Got it. Thanks Duncan. By the way, your site rocks!!

  20. teaphe says

    24 March, 2009 at 05:11

    how do I create the vmkcore and vmfs partition during the installation of ESX or in VC? co’z I can’t find a vmfs and vmkcore file system during the installation of ESX.

    THanks.

  21. dogcanterbury says

    27 May, 2009 at 21:51

    IMHO I think if the infrastructure is shared storage, there is no point creating a vmfs partition. think not?

  22. Duncan says

    28 May, 2009 at 07:07

    If you are running 3.5 and doing boot from SAN. No there’s no point indeed.

    but if you are running 4.0 the Service Console is a VMDK so you will need VMFS to boot it from.

  23. Sid Smith says

    16 July, 2009 at 19:52

    What about environments that are moving to vSphere and are utilizing the local VMFS for VMs or vSWP files. In this case I would recommend having two separate VMFS partitions on the local storage. One for the Service Console vmdk, and one for everything else be it vSWP or VM’s. Any thoughts on that?

  24. Duncan says

    16 July, 2009 at 22:17

    I totally agree, I would actually always have two seperate partitions just in case you ever need it for testing or whatever.

  25. Sid Smith says

    16 July, 2009 at 22:23

    The only caveat with deploying multiple VMFS partitions is you need to perform a scripted installation in order to achieve this….as far as I can see. However I think all installations should be scripted anyway…..

  26. chad king says

    17 September, 2010 at 06:21

    So what should one do if they dont have availible space and cannot free it up. I know for windows I used paragon for disk-resizing partitioning. Is there anything like this in Linux that we could do? I.E. someone needs to update ESX and they cant because of the spacing issue?

Primary Sidebar

About the Author

Duncan Epping is a Chief Technologist and Distinguished Engineering Architect at Broadcom. Besides writing on Yellow-Bricks, Duncan is the co-author of the vSAN Deep Dive and the vSphere Clustering Deep Dive book series. Duncan is also the host of the Unexplored Territory Podcast.

Follow Us

  • X
  • Spotify
  • RSS Feed
  • LinkedIn

Recommended Book(s)

Advertisements




Copyright Yellow-Bricks.com © 2025 · Log in