XK0-006 System Management Practice Question
A Linux server has a logical volume that is running out of space. The administrator extends the underlying volume group by adding a new physical volume, then extends the logical volume and resizes the filesystem. Which command should be used to resize the ext4 filesystem after extending the logical volume?
⚠ Common exam trap
Many exam-takers confuse the logical volume extension with filesystem resizing; lvextend only extends the LV, not the filesystem.
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
✓
resize2fs /dev/vg0/lv_data
After extending the logical volume, the ext4 filesystem must be resized to use the new space. The resize2fs command is designed for this purpose and can resize ext4 filesystems online. It is the correct tool after lvextend.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
xfs_growfs /dev/vg0/lv_data
Why it's wrong here
xfs_growfs is used for XFS filesystems, not ext4. It would fail on an ext4 filesystem. The administrator must use the appropriate tool for the filesystem type, which in this case is ext4, so resize2fs is required.
- ✓
resize2fs /dev/vg0/lv_data
Why this is correct
resize2fs is the correct utility to resize ext2, ext3, and ext4 filesystems. After extending the logical volume with lvextend, running resize2fs on the device path resizes the filesystem to use the additional space. It can be run without unmounting if the filesystem supports online resizing.
- ✗
lvextend -r /dev/vg0/lv_data
Why it's wrong here
lvextend -r extends the logical volume and then calls the appropriate filesystem resize tool automatically. However, the question asks for the command to resize the filesystem after extending the logical volume, implying the extension is already done. Using lvextend again would attempt to extend further, not just resize the filesystem.
- ✗
vgextend vg0 /dev/sdb1
Why it's wrong here
vgextend adds a physical volume to a volume group. This is done before extending the logical volume, not for resizing the filesystem. It is part of the process but does not resize the ext4 filesystem itself.
Go deeper
Related to this question
Learn chapter
Logical Volume Management (LVM)
Key term
Physical volume
A physical volume is a storage device or partition that is initialized for use by a volume manager, allowing it to be combined into logical storage pools.
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
About these practice questions
Courseiva writes every XK0-006 question from scratch — 781 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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
This XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.