Courseiva
Configure local storage →easyMultiple Choice

EX200 Configure local storage Practice Question

Which command creates a 2GB logical volume named 'lvdata' in the volume group 'vgdata'?

⚠ Common exam trap

Many candidates confuse the `-L` (size in units) and `-l` (number of extents) flags, leading candidates to incorrectly use `-l` with a size suffix, which is syntactically invalid in LVM2.

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

✓

lvcreate -L 2G -n lvdata vgdata

The `lvcreate` command with `-L 2G` specifies the size in gigabytes, `-n lvdata` sets the logical volume name, and `vgdata` is the volume group in which the logical volume is created. This syntax follows the standard LVM2 command structure for creating a logical volume of a specified size within an existing 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.

  • ✓

    lvcreate -L 2G -n lvdata vgdata

    Why this is correct

    This is the correct invocation. The -L 2G option explicitly sets the logical volume's size to 2 gigabytes, -n lvdata assigns the logical volume name, and vgdata is the volume group from which the space is allocated. The syntax matches lvcreate(8): lvcreate [options] volume_group.

  • ✗

    lvcreate -n vgdata -L 2G lvdata

    Why it's wrong here

    This command fails because the argument after -n becomes the logical volume name, so it would name the LV 'vgdata', while 'lvdata' is treated as the volume group name. Since no volume group named lvdata exists, lvcreate errors out; conversely, the intended VG 'vgdata' is never specified. The correct order is -n lvdata ... vgdata.

  • ✗

    lvcreate -n lvdata -s 2G vgdata

    Why it's wrong here

    Using -s indicates a snapshot creation, not a regular logical volume, and it requires that the following argument (after -L or -l is specified) be an existing logical volume to snapshot. Here -s 2G is syntactically invalid because -s does not take a size; snapshot size must be supplied via -L. Also the final argument vgdata is a volume group, not a source logical volume, so the snapshot source is missing.

  • ✗

    lvcreate -l 2G -n lvdata vgdata

    Why it's wrong here

    The -l option specifies logical extents or a percentage of space (e.g., -l 100%FREE), not a raw size like 2G. Passing -l 2G is invalid because the value for -l expects a number of extents or a percent expression, and the unit 'G' is only accepted by -L. To create a 2G logical volume, -L 2G is required.

About these practice questions

This EX200 question is part of Courseiva's 427-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 EX200 practice question is part of Courseiva's free Red Hat 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 EX200 exam.