exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 81 discussion

Actual exam question from RedHat's EX200
Question #: 81
Topic #: 1
[All EX200 Questions]

SIMULATION -
There is a local logical volumes in your system, named with shrink and belong to VGSRV volume group, mount to the /shrink directory. The definition of size is 320
MB.
Requirement:
Reduce the logical volume to 220 MB without any loss of data. The size is allowed between 200-260 MB after reducing.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
cd;umount /shrink
e2fsck -f /dev/mapper/vgsrv-shrink
resize2fs /dev/mapper/vgsrv-shrink 220M
lvreduce -L 220M /dev/mapper/vgsrv-shrink
mount -a

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
sovafal192
3 months, 4 weeks ago
alternate solution, because of the possbile data loss if the data exchange is a little bit different between lvexreduce and resize2fs. umount /shrink e2fsck -f /dev/mapper/vgsrv-shrink ####* Shrink the file system as small as possible resize2fs -M /dev/mapper/vgsrv-shrink lvreduce -L 220M /dev/mapper/vgsrv-shrink ####* extend the file system to the max device size resize2fs /dev/mapper/vgsrv-shrink mount -a
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago