hardMultiple ChoiceObjective-mapped
XK0-006 Practice Question: A storage administrator needs to automate the…
A storage administrator needs to automate the expansion of an LVM volume group when free space drops below 10%. The script must add a new physical volume from a spare disk. Which of the following commands should be used in the script to add the new disk to the volume group?
⚠ Common exam trap
It's easy for candidates to think `vgextend` alone is sufficient, forgetting that LVM requires the device to be initialized as a physical volume with `pvcreate` before it can be added to a volume group.
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
✓
pvcreate /dev/sdb1 && vgextend vg01 /dev/sdb1
It first uses `pvcreate` to initialize the spare disk partition `/dev/sdb1` as a physical volume, which is a prerequisite for adding it to an LVM volume group. Then `vgextend vg01 /dev/sdb1` adds that initialized physical volume to the existing volume group `vg01`, expanding its total capacity. This two-step process ensures the disk is properly prepared for LVM management before being incorporated into the volume group.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
pvcreate /dev/sdb1 && vgextend vg01 /dev/sdb1
Why this is correct
Initializes the partition as a PV and adds it to the VG.
- ✗
vgcreate vg01 /dev/sdb
Why it's wrong here
Creates a new volume group, does not add to existing one.
- ✗
vgextend vg01 /dev/sdb1
Why it's wrong here
Misses the pvcreate step; the partition must be initialized first.
- ✗
lvresize -L +100G vg01
Why it's wrong here
Resizes a logical volume, not a volume group.
Go deeper
Related to this question
Learn chapter
Installing Linux and Package Management
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
LVM
LVM (Logical Volume Manager) is a storage management system that allows you to create, resize, and manage disk partitions flexibly without needing to repartition the physical disk.
About these practice questions
This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 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.