How to Configure Swap Partition in Redhat 7

Опубликовано: 16 Октябрь 2024
на канале: Socrates Bharathi
386
18

This tool is very useful in terms of creating space for swap partitions.

   • How to Configure Swap Partition in Re...  


Steps to create swap partition:

fdisk -l
fdisk /dev/vda
:n
laste sector +100M
:t
hex code :82
:p
:w
#partprobe
#mkswap /dev/vda2
#swapon /dev/va2
#vim /etc/fstab
/dev/vda2 swap swap defaults 0 0
:wq!
#mount -a
free -h