Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 80 discussion

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

SIMULATION -
There is a local logical volumes in your system, named with common and belong to VGSRV volume group, mount to the /common directory. The definition of size is 128 MB.
Requirement:
Extend the logical volume to 190 MB without any loss of data. The size is allowed between 160-160 MB after extending.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
lvextend -L 190M /dev/mapper/vgsrv-common resize2fs /dev/mapper/vgsrv-common

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
adolfoale
Highly Voted 3 years, 2 months ago
Also this option is valid: # lvextend -r -L 190M /dev/VGSRV/common
upvoted 8 times
...
PENNSHARK
Most Recent 2 months, 2 weeks ago
# Extend the Logical Volume to 190 MB lvextend -r -L 190MB /dev/VGSRV/common # Create a Mount Point mkdir /mnt/common # Create a Filesystem mkfs.ext4 /dev/VGSRV/common # Update /etc/fstab echo "/dev/mapper/VGSRV-common /mnt/common ext4 defaults 0 0" >> /etc/fstab # Mount the Logical Volume mount -a # Reload systemd systemctl daemon-reload # Check the Mount mount
upvoted 1 times
...
sovafal192
1 year, 6 months ago
###* mount the existing volume ###* if volume is ext4! mkdir /common nano /etc/fstab: /dev/mapper/vgsrv-common /common ext4 defaults 1 2 mount -a ###* Expand 128M -> 190M lvextend -L 190M /dev/mapper/vgsrv-common or lvextend -L +68M /dev/mapper/vgsrv-common after lvextend we need to run xfsgrow or resize2fs in case of ext*
upvoted 2 times
...
hareshrajpara
2 years, 11 months ago
# lvextend -rv -L 190M /dev/VGSRV/common
upvoted 4 times
...
helpUs
3 years ago
I don't know this answer. why 190M? definition size is 128M. so extend size 68M. plz help me. why this answer is 190M?
upvoted 1 times
ArchBishop
2 years, 10 months ago
you can either use: lvextend -r L 190M /path/to/lvm OR lvextend -r L +62M /path/to/lvm The first option specifies the exact amount that is being requested (190), while the second options is adding the difference (190-128=62) to meet the requested storage amount.
upvoted 6 times
ArchBishop
2 years, 10 months ago
Apologies, my 'L' requires a switch in front: `lvextend -r -L [...]`
upvoted 2 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 ...