Courseiva
hardMultiple SelectObjective-mapped

XK0-006 Set up a new LVM volume Practice Question

An administrator needs to set up a new LVM volume. Which two commands are necessary in the initial setup before creating a logical volume?

⚠ Common exam trap

Test-takers frequently confuse the order of LVM commands, thinking `lvcreate` is the first step, but LVM requires a strict hierarchy: PV → VG → LV, and `pvcreate` and `vgcreate` must precede any logical volume creation.

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

vgcreate

Before creating a logical volume (LV), you must first prepare the physical storage devices and then group them into a volume group. The `pvcreate` command initializes a block device (e.g., /dev/sdb) as a physical volume (PV) by writing LVM metadata to it. The `vgcreate` command then creates a volume group (VG) from one or more PVs, which serves as the pool of storage from which logical volumes are carved. Without these two steps, the LVM subsystem has no recognized storage to allocate.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • mount

    Why it's wrong here

    mount attaches the filesystem; it is the final step after filesystem creation.

  • lvcreate

    Why it's wrong here

    lvcreate is used after the volume group exists to create a logical volume, not in the initial setup.

  • vgcreate

    Why this is correct

    vgcreate creates a volume group from one or more physical volumes.

  • pvcreate

    Why this is correct

    pvcreate initializes a disk or partition as a physical volume for LVM.

  • mkfs

    Why it's wrong here

    mkfs creates a filesystem on a logical volume, which is performed after the logical volume is created.

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 →

How Courseiva writes practice questions · Editorial policy

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.