Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

Creating a Linux Swap partition for ESX service console (1014863)

Last Updated: 5/27/2011Categories: Total Views: 20099Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

create-swap-partition

Purpose

This article provides steps to create a Linux Swap partition for ESX service console.

You want to create a Linux Swap partition if:

No swap partitions were configured during ESX install.

The swap partition is lost. The swap partition can be lost if, in boot from SAN environments, you configure swap on a local disk and then replace the local disk.

Resolution

If no swap partitions were configured during ESX install, you can only create a swap partition if there is free, unpartitioned space on the hard disk.

Note: If you have free space on the local disk, start from step 2. Ensure that the partition number created is used for the specified commands.

If the swap partition is lost, perform these steps to identify the correct disk and create a fresh swap partition:

Identify the correct disk

Login to the ESX host using vSphere Client.

Select the ESX host, then click Configuration > Storage Adapters tab.

Determine the controller to which the local disk is attached and note the LUN ID using the runtime name (for example, vmhba0:0:0).

Log in to the ESX Service Console as root.

Run this command and find the device the LUN is mapped to (for example, /dev/sda):

esxcfg-vmhbadevs -q (for ESX 3.x)
esxcfg-scsidevs -c (for ESX 4.0)

Create a swap partition of size 2 GB.

Run this command:

fdisk -u /dev/sda

Press n to add a new partition.

Press p to add a primary partition (if you are already using 3 primary partitions, press e for extended partition)

Select partition 1.

Accept the default start sector (63). The end sector value for 2 GB size is 4194304.

Press t to select the type of file system.

Select 82 for Linux Swap.

Press w to save and exit.

Run this command to create a swap file system on this partition:

mkswap /dev/sda1

Run this command to activate the swap:

swapon /dev/sda1

Run one of these commands to to verify that the swap is active:

free -m

top

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
在 vRealize Operations Manager 6.x 及更高版本中，具有长 ID 的警示定义阻止分析服务启动 (65102)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware ESX Server

Related Versions:

VMware ESX Server 3.5.x

VMware ESX Server 3.0.x

VMware ESX 4.0.x

Take Our Survey

Support Assistant