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 5 Question 1 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 1
Topic #: 5
Resize the logical volume vo and its filesystem to 290 MB. Make sure that the filesystem contents remain intact.
Note: Partitions are seldom exactly the same size requested, so a size within the range of 260 MB to 320 MiB is acceptable.

Suggested Answer:

df -hT
lvextend -L +100M /dev/vg0/vo
lvscan
xfs_growfs /home/ // home is LVM mounted directory
Note: This step is only need to do in our practice environment, you do not need to do in the real exam resize2fs /dev/vg0/vo // Use this comand to update in the real exam df -hT OR e2fsck -f/dev/vg0/vo umount /home resize2fs /dev/vg0/vo required partition capacity such as 100M lvreduce -l 100M /dev/vg0/vo mount /dev/vg0/vo /home df -Ht

by ubiquituz at Nov 25, 2024, 04:22 PM

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
whitebeard pirate
2024-12-24 04:02:05
lvextend -rL 290M /dev/vg/lv
or
lvreduce -rL 290M /dev/vg/lv
upvoted 1 times
...
ubiquituz
2024-11-25 16:22:09
1
Check the current LV and filesystem status: First, determine the current size of the logical volume (LV) and the filesystem.
lsblk
df -h
lvdisplay
This will show you the current sizes of the LV and its corresponding filesystem.
2
Ensure that the filesystem is unmounted (if necessary): In case the filesystem is mounted, it’s a good practice to unmount it before resizing.
umount /dev/mapper/your-vg-your-lv
Replace your-vg-your-lv with your actual volume group and logical volume name.
Resize the filesystem: The first step is to resize the filesystem itself. We'll use resize2fs for ext4 or xfs_growfs for XFS. Here, assuming ext4 filesystem (you can skip this if it's already resized or if it's XFS).
3
For ext4:
resize2fs /dev/mapper/your-vg-your-lv 290M
For XFS (Note: XFS cannot shrink, so this step is mostly used when growing the filesystem):
xfs_growfs /dev/mapper/your-vg-your-lv
4
Resize the logical volume: After the filesystem is resized, the next step is to resize the logical volume (LV) to the desired size of 290 MB.
lvresize -L 290M /dev/your-vg/your-lv
This will shrink or extend the logical volume to 290 MB.
Resize the filesystem again (if needed): If you are shrinking the logical volume, you might need to shrink the filesystem before shrinking the LV. For resizing the filesystem down, follow these steps:
For ext4:
e2fsck -f /dev/your-vg/your-lv
resize2fs /dev/your-vg/your-lv 290M
For XFS: XFS cannot shrink, so if you are using XFS, you will need to back up data, recreate the partition, and restore it.
5
Mount the filesystem again: Once the resizing is done, remount the filesystem to make it usable again.
mount /dev/mapper/your-vg-your-lv /your-mount-point
Verify the changes: Finally, verify that the logical volume and filesystem are correctly resized and the data is intact.
lsblk
df -h
lvdisplay
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.