Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Red Hat Certified System Administrator (RHCSA) · Red Hat
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
lsblk #to check partition fdisk /dev/sdb #to sda or sdb depending on the disk n # for new p #primary 1 #default partition number enter #first sector +2G #last sector t #to change type and select 82 for swap 82 #code for hex w #save changes partprobe #to update partition table lsblk #to confirm mkswap /dev/sbd1 #to generate UUID, we need UUID to make it permanent lsblk -f #to see file system, should be swap vi /etc/fstab #to make it permanent UUID=xxxxxxxxxxxx swap swap defaults 0 0 free -h swapon -a free -h #swap value must be increased by 2G
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Do we need to add a new disk for this task?
man fstab says that the second field should be none, not swap. UUID=234wfd none swap defaults 0 0
first check available swap #free -m second partions available #lsblk #parted -s /dev/vdb mklabel msdos #parted -s /dev/vdb mkpart primary 2048S 2200MB #mkswap /dev/vdb1 #vim /etc/fstab /dev/vdb1 swap swap defaults 0 0 #swapon -a