Difference between revisions of "Add a swap disk"

From wikieduonline
Jump to navigation Jump to search
(Created page with " == See also == * {{swap}} * memory Category:Computing")
 
Line 1: Line 1:
  
 +
* [[Add a disk]] to the server
 +
* Check the new volume with [[lsblk]]
 +
* Create swap: sudo [[mkswap]] -f /dev/nvme5n1
 +
* Add swap in [[/etc/fstab]]
 +
sudo vi /etc/fstab
 +
UID none swap defaults 0 0
 +
* Mount swap : sudo [[mount -a]]
 +
* Enable swap: [[swapon]] /dev/nvme5n1
 +
* Check swap [[free -h]]
  
  
 +
== Related ==
 +
* [[swapoff -a]]
  
 
== See also ==
 
== See also ==

Revision as of 10:46, 24 August 2023

sudo vi /etc/fstab
UID none swap defaults 0 0


Related

See also

Advertising: