By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.
Proxmox ·

How to Disable SWAP in Proxmox Virtual Environment

Learn how to disable SWAP in Proxmox to improve system performance or troubleshoot issues. Follow these step-by-step instructions.

If you're experiencing system performance issues or troubleshooting issues in your Proxmox virtual environment, disabling SWAP can be a useful solution. SWAP is a space on your hard drive that is used to store data temporarily when your system runs out of physical memory (RAM). In this tutorial, we'll show you how to disable SWAP in Proxmox.

Instructions

Before you begin, make sure you have access to the command line on your Proxmox server. You will need to enter the commands below via the command line.

To disable SWAP in Proxmox, follow these steps:

First, use the following command to turn off the SWAP space:

swapoff /dev/pve/swap

Next, deactivate the SWAP logical volume with the following command:

lvchange -a n /dev/pve/swap

Finally, remove the SWAP logical volume with this command:

lvremove /dev/pve/swap

Additional Resources

For more information about SWAP and how to manage it on Proxmox, see the Proxmox documentation.

Read next

Share, Engage, and Contribute!

Discover how you can share your ideas, contribute to our blog, and connect with us on other platforms.