Courseiva
mediumMultiple ChoiceObjective-mapped

XK0-006 Practice Question: Refer to the exhibit

Network Topology
root vg0 -wi-ao20.00gswap vg0 -wi-ao2.00gvar vg0 -wi-a10.00ghome vg0 -wi-ao50.00g

Refer to the exhibit. A user reports that the /var directory is not accessible. The system administrator checks the logical volumes and notices that the 'var' logical volume is not activated. Which command should be used to activate it?

⚠ Common exam trap

CompTIA often tests the distinction between commands that modify LVM objects (like `lvextend`, `lvcreate`) versus commands that manage state (like `lvchange`), leading candidates to confuse activation with resizing or 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

lvchange -ay vg0/var

The `lvchange -ay vg0/var` command activates the specified logical volume by setting its activation flag to 'y' (yes). This is the correct way to bring an inactive LVM logical volume online so that it can be mounted and accessed.

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+10g vg0/var

    Why it's wrong here

    lvextend extends the size; activation requires lvchange.

  • lvchange -ay vg0/var

    Why this is correct

    The -ay option activates the logical volume.

  • lvscan

    Why it's wrong here

    lvscan only scans for LVs, does not activate them.

  • lvcreate -a y vg0/var

    Why it's wrong here

    lvcreate is for creating new volumes, not activating existing ones.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 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 →

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.