SIMULATION – Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.

QuestionsCategory: RHCSA-EX200SIMULATION – Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
Admin Staff asked 6 months ago
SIMULATION -
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
















 

Suggested Answer: See explanation below.



# fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions)
Enter -
+2G
t
l
W -
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID -
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)


This question is in EX200 Red Hat Certified System Administrator (RHCSA) Exam
For getting Red Hat Certified System Administrator (RHCSA) Certificate



Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Redhat.
Trademarks, certification & product names are used for reference only and belong to Redhat.
The website does not contain actual questions and answers from Redhat's Certification Exam.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.