Don’t make /tmp too small
The default GUI install of ESX4 makes the /tmp partition 1GB and even then it is only categorized as optional. I’ve been asked several times why you’d want to make /tmp any bigger. If it fills up you just clear it out, right?
Well here’s a good reason. It seems that VUM (vCenter Update Manager) uses /tmp. When you stage updates, VUM copies all the patches to the folder /tmp/updatecache. It does the sensible thing and checks that there is enough space first, but if it can’t then it tries to create a ramdisk. I don’t think I’m that keen on my server’s ram being tied up with patches. Sometimes you might want to stage the patches days in advance of an outage. I’d hope that the ESX is clever enough to dump the ramdisk if there was any sort of memory contention, but still.
Anyway, with ESX3 I know the patches could accumulate to quite a size (a couple of GBs if you left them a few months). I hear ESX4 is better in this regard, however I would suggest keeping at least 2GB for /tmp during the install.
VUM isn’t a crucial service. You can always manually copy patches to a different partition, but VUM (especially the new staging feature) is a real time-saver so I know I’ll be making sure there is plenty of space in /tmp.
7 Responses to Don’t make /tmp too small
Leave a Reply Cancel reply
Forbes Guthrie
Recent Posts
- vSphere 5 vReference Card released
- Cisco UCS boot from iSCSI SAN – ESXi design consideration
- vSphere 5 vReference card – Storage section
- Does 2008 R2 Failover Clustering require a change to the Notify Switches policy?
- vSphere 5 vReference card – Host section
- vSphere 5 vReference card – Install section
- Auto Deploy design concern
- vSphere 5 vReference card – vCenter section
- vSphere 5 vReference card – VM section
- vSphere 5 vReference card – availability section
Recent Comments
- escorts service on VMworld: Host Profiles
- free antivirus software download on Firewall port connection diagram
- Tim Sommer on vSphere 5 Card
- vJohnnyF on vSphere 5 Card
- Forbes Guthrie on Cisco UCS boot from iSCSI SAN – ESXi design consideration
- Chris on Cisco UCS boot from iSCSI SAN – ESXi design consideration
- Forbes Guthrie on vSphere 5 Card
- Forbes Guthrie on vSphere 5 Card
- harold on Auto Deploy design concern
- MarcelVanOs on vSphere 5 Card
Twitter
- Eek! This is big >> RT @DuncanYB: New Article: No Jumbo frames on your Management Network - http://t.co/VjoCtOqz : 2 weeks ago
- RT @ryanbirk: @forbesguthrie ...owe you a beer! Read all 50 pgs of your notes and passed the VCI-5 exam this morning << Congrats, great news : 2 weeks ago
- Working with Host Profiles today. Clunky, but a great tool. : 2 weeks ago
- @csilvertooth Frustrating yeah, they maybe need a popup warning message check when you start it without correct permissions. #VMware : 2 weeks ago
- RT @joshcoen: Passed VCP5 this morning. Big shout out to @jaslanger and @forbesguthrie #invaluableresources. << Congrats! : 2 weeks ago
- RT @cwjking: @forbesguthrie Someone commented on my blog to link to your site for VCP5 related stuff. http://t.co/7KqZsNuv << thx : 2 weeks ago
- @sanchezhutz Nice, I hear lots of good things about those. David is nice chap. : 3 weeks ago
- .RT @cxi: I'll be in Vancouver the week of the 23rd ;) << Great. Anyone else in Vancouver up for vBeers? I'm free 23,25,27 /cc @astorrs : 3 weeks ago
- @sanchezhutz Best of luck Sanchez! When are you planning to take it mate, work paying for it? : 3 weeks ago
- New blog post: vSphere 5 vReference Card released - http://t.co/4rYEPsM9 : 3 weeks ago






Good post. Interesting point.
BTW Any idea where patches are staged to on host servers running embedded ESXi 4?
All of my recent installations use embedded ESXi, Am I burning up RAM by staging patches?
I’m not sure where the ESXi patches are copied too. However I think that the ESXi patches just come as complete images. There are 2 different copies on the ESXi server, the running one and the previous edition. So when you patch a server, it copies a new image over the standby image, and then changes the start-up config so you reboot into the newer one. Your current images then becomes your backup. However I don’t think these images are particularly big, and as your just replacing an old exiting image, then you shouldn’t need any additional space.
If anyone has a better incite into this then please let us know.
/tmp is usually stored in memory, not on the disk. So it’s usually a ramdisk. Inside the COS. So that 800MB RAM you allocated….
Steve, have you got any links for that? I’d like to do a bit more reading around this. So your saying it caches some of the tmp stuff in RAM then?
so how do check the size of the /tmp directory? and how do we clean it out?
thanks
so how do check the size of the /tmp directory?
The easiest way to check your /tmp directory, is to log into the console and run the command “vdf -h”. If the ESX server has its /tmp directory as separate partition, then it will be listed with its size and free space. If its not listed, then this means it that the tmp directory is just part of the / (root) partition.