Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 36 discussion

Actual exam question from RedHat's EX200
Question #: 36
Topic #: 1
[All EX200 Questions]

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.

Show Suggested Answer Hide Answer
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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Testo321
6 months ago
sudo parted /dev/sdb print (partition table unknown) sudo parted /dev/sdb mklabel gpt sudo parted /dev/sdb mkpart swap1 linux-swap 2084s 501M sudo parted /dev/sdb print sudo udevadm settle sudo mkswap /dev/sdb sudo vim /etc/fstab UUID=XXXXXXXXXXXXXXXXXXX swap swap defaults 0 0 sudo systemctl daemon-reload sudo swapon -a sudo swapon --show
upvoted 1 times
...
cloudyhr
2 years, 4 months ago
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
...
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.

SaveCancel
Loading ...