LFCS Storage Management Practice Question
An administrator receives an alert that the /var/log partition is 95% full. The partition is an LVM logical volume. The volume group has available free extents. Which of the following is the most efficient method to increase the size of the filesystem to 120GB (from current 100GB) without unmounting it?
⚠ Common exam trap
Many candidates confuse the absolute size flag `-L 120G` with the relative size flag `-L +20G`, or they incorrectly pair `xfs_growfs` with an ext4 filesystem, assuming all Linux filesystems use the same resize command.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
lvextend -L +20G /dev/vg/log; resize2fs /dev/vg/log
The partition is an LVM logical volume with an ext4 filesystem (implied by the use of resize2fs). The `lvextend -L +20G` command adds 20GB to the existing 100GB volume, making it 120GB, and `resize2fs /dev/vg/log` resizes the ext4 filesystem online without unmounting. This is the most efficient method as it uses relative sizing and the correct filesystem-specific resize tool.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
lvextend -L 20G /dev/vg/log; resize2fs /dev/vg/log
Why it's wrong here
Sets to 20G, not +20G.
- ✗
lvextend -L +20G /dev/vg/log; xfs_growfs /data
Why it's wrong here
xfs_growfs is for XFS, not ext4.
- ✓
lvextend -L +20G /dev/vg/log; resize2fs /dev/vg/log
Why this is correct
Correct: adds 20G to current size.
- ✗
lvextend -L 120G /dev/vg/log; resize2fs /dev/vg/log
Why it's wrong here
Sets absolute 120G, but if current is 100G, that works, but using + is safer.
Go deeper
Related to this question
About these practice questions
Courseiva writes every LFCS question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.