SIMULATION – Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.)

QuestionsCategory: RHCSA-EX200SIMULATION – Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.)
Admin Staff asked 6 months ago
SIMULATION -
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.)
















 

Suggested Answer: See explanation below.



# vgdisplay
(Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend)
# lvdisplay (Check lv)
# lvextend -L +110M /dev/vg2/lv2
# resize2fs /dev/vg2/lv2
mount -a
(Verify)
-------------------------------------------------------------------------------
(Decrease lvm)
# umount /media
# fsck -f /dev/vg2/lv2
# resize2fs -f /dev/vg2/lv2 100M
# lvreduce -L 100M /dev/vg2/lv2
# mount -a
# lvdisplay (Verify)
OR -
# e2fsck -f /dev/vg1/lvm02
# resize2fs -f /dev/vg1/lvm02
# mount /dev/vg1/lvm01 /mnt
# lvreduce -L 1G -n /dev/vg1/lvm02
# lvdisplay (Verify)


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.