Difference between revisions of "Add a swap disk"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
* [[Add a disk]] to the server
 
* [[Add a disk]] to the server
 
* Check the new volume with <code>[[lsblk]]</code>
 
* Check the new volume with <code>[[lsblk]]</code>
* Create swap: sudo <code>[[mkswap]] -f /dev/nvme####n1</code>
+
* Create swap: sudo <code>[[mkswap -f]] /dev/nvme####n1</code>
 
* Add swap in <code>[[/etc/fstab]]</code>
 
* Add swap in <code>[[/etc/fstab]]</code>
 
  sudo vi /etc/fstab
 
  sudo vi /etc/fstab

Revision as of 11:14, 24 August 2023


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


Related

See also

Advertising: