SIMULATION - Add a swap partition. Adding an extra 500M swap partition to your system, this swap partition should mount automatically when the system starts up. Don't remove and modify the existing swap partitions on your system.
Suggested Answer:See explanation below.
fdisk -cu /dev/vda// in the way of expanding the partition, don't make main partition partx ג€"a /dev/vda mkswap /dev/vdax swapon /dev/vdax swapon ג€"s vi /etc/fstab /dev/vdaxswapswapdefaults0 0 mount -a
create a partition for given size(500M)
#fdisk /dev/sdb
#n
#+500M
#w
#partprobe
check the present free memory
#free -h
#mkswap /dev/sdb5
#swapon /dev/sdb5
check the swap space and compai with privious value
#free -h
exit /etc/fstab and add below line
/dev/sdb5 swap swap defaults 0 0
wright and exit /etc fstab
# swapon -a
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ly01
4 months, 3 weeks agoTesto321
1 year agocloudyhr
2 years, 11 months ago