hardMultiple Choice
XK0-006 Practice Question: A server has a volume group 'vg_data' with a…
A server has a volume group 'vg_data' with a single logical volume 'lv_data' of 100GB mounted at /data. The filesystem on lv_data is XFS. The administrator needs to extend it to 150GB. A new 60GB disk /dev/sdc has been added and partitioned as LVM. The administrator runs `pvcreate /dev/sdc1`, then `vgextend vg_data /dev/sdc1`, then `lvextend -L +50G /dev/vg_data/lv_data`. The administrator runs `df -h /data` and sees that the filesystem still shows 100GB. Which command should be run next?
⚠ Common exam trap
The trap is that candidates might choose resize2fs because it is commonly associated with resizing filesystems, but XFS requires xfs_growfs; also, some might think the filesystem automatically grows with lvextend, which it does not.
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
✓
xfs_growfs /data
After extending the logical volume with lvextend, the filesystem must be grown to use the additional space. For XFS filesystems, the command is xfs_growfs, which must be run on the mount point. The df output still shows 100GB because the filesystem has not been resized.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
lvreduce -L -50G /dev/vg_data/lv_data
Why it's wrong here
lvreduce shrinks the logical volume, destroying the 50GB just added and risking data loss. It is tempting when reclaiming space, and would be correct if the administrator needed to shrink the LV. The requirement is to grow the XFS filesystem, so reducing the LV moves in the opposite direction.
- ✗
fsck /dev/vg_data/lv_data
Why it's wrong here
fsck checks and repairs filesystem consistency; it does not grow an XFS filesystem to occupy the enlarged logical volume. It is tempting because fsck is a familiar maintenance command, and would be correct after unclean shutdowns or corruption. Here the LV is already extended, so the filesystem itself must be grown.
- ✓
xfs_growfs /data
Why this is correct
lvextend grows the logical volume but not the XFS filesystem, so df still reports 100GB. XFS must be grown online against its mount point, and xfs_growfs /data expands the filesystem to use the newly added 50GB of the logical volume.
- ✗
resize2fs /dev/vg_data/lv_data
Why it's wrong here
resize2fs targets ext2/ext3/ext4 filesystems and refuses to operate on XFS. It is tempting because resize2fs is the standard tool for online ext filesystem growth, and would be correct if the volume held ext4. The stem specifies XFS, which requires xfs_growfs instead.
Go deeper
Related to this question
Learn chapter
User and Group Administration
Key term
Logical volume
A logical volume is a virtual storage unit created from one or more physical hard drives that can be resized, moved, or snapshotted without disrupting the system.
Key term
Mount
Mounting is the process of making a file system or storage device accessible to a computer's operating system by attaching it to a specific directory in the existing directory tree.
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.