Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam EX200 Topic 1 Question 108 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 108
Topic #: 1
Create a logical volume
Create a new logical volume as required:
Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE.
Expansion size of each volume in volume group datastore is 16MB.
Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/database

Suggested Answer:

fdisk -cu /dev/vda// Create a 1G partition, modified when needed
partx -a /dev/vda
pvcreate /dev/vdax
vgcreate datastore /dev/vdax -s 16M
lvcreate- l 50 -n database datastore
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
mount /dev/datastore/database /mnt/database/ df -Th
vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a
Restart and check all the questions requirements.

by ubiquituz at Nov 25, 2024, 09:20 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
ubiquituz
2024-11-25 09:20:24
1
Verify the volume group datastore exists and check its physical extent (PE) size.
vgdisplay datastore
Ensure the physical extent size is 16MB. If not, you'll need to recreate the volume group or adjust it. If it exist then jump to the logical volume creation step
2
Find available disks or partitions to create the volume group.
lsblk
For example, if you see a disk like /dev/sdb, it can be used to create the volume group.
3
Create a Physical Volume (PV)
Initialize the disk or partition as a physical volume.
pvcreate /dev/sdb
Verify the PV:
pvs
4
Create a volume group named datastore with a physical extent size of 16MB.
vgcreate -s 16M datastore /dev/sdb
-s 16M: Sets the physical extent size to 16MB.
datastore: Names the volume group.
/dev/sdb: Specifies the disk or partition added to the volume group.
Verify the VG:
vgdisplay datastore
5
Create a logical volume named database with 50 physical extents (PE).
lvcreate -l 50 -n database datastore
Verify the logical volume:
lvdisplay /dev/datastore/database
6
Format the Logical Volume
Format the logical volume with the ext3 filesystem.
mkfs.ext3 /dev/datastore/database
7
Create the directory where the logical volume will be mounted.
mkdir -p /mnt/database
8
Mount the Logical Volume
Temporarily mount the logical volume to /mnt/database:
mount /dev/datastore/database /mnt/database
9
Add an entry in /etc/fstab to ensure the logical volume is mounted automatically on boot.
Find the UUID of the logical volume:
blkid /dev/datastore/database
Open the /etc/fstab file for editing:
vi /etc/fstab
Add the following line (replace <UUID> with the actual UUID):
UUID=<UUID> /mnt/database ext3 defaults 0 0
Or
/dev/datastore/database /mnt/database ext3 defaults 0 0
9. Test the Configuration
Test the fstab entry:
mount -a
Verify the mount:
df -h /mnt/database
upvoted 1 times
...
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.