exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ly01
4 months, 3 weeks ago
swapon sudo gdisk /dev/sdb -> ;n; +500M; 8200; w; y sudo partprobe lsblk sudo mkswap /dev/sdb2 lsblk -f sudo vim /etc/fstab -> /dev/sdb2 none swap defaults 0 0 sudo systemctl daemon-reload mount -a reboot swapon NAME TYPE SIZE USED PRIO /dev/dm-1 partition 3.8G 0B -2 /dev/sdb2 partition 500M 0B -3
upvoted 1 times
...
Testo321
1 year 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, 11 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 ...