Question 357 of 537
Configure local storagemediumMultiple SelectObjective-mapped

How to Create a Logical Volume Using All Free Space in a Volume Group

This EX200 practice question tests your understanding of configure local storage. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which TWO commands can be used to create a logical volume using all available free space in 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

lvcreate -l 100%FREE -n lvdata vgdata

Option B is correct because the `-l 100%FREE` flag allocates all unallocated physical extents in the volume group, which is the precise way to use all available free space. Option D (`-l 100%VG`) is incorrect because it attempts to allocate 100% of the volume group's extents, including those already used by other logical volumes, causing the command to fail if any extents are already allocated. Therefore, only option B is correct.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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 --size 20G vgdata lvdata

    Why it's wrong here

    This uses a fixed size (`--size 20G`) and does not utilize all free space; it also has incorrect syntax as the volume group name should come before the logical volume name.

  • lvcreate -l 100%FREE -n lvdata vgdata

    Why this is correct

    The `-l 100%FREE` flag correctly allocates all unallocated physical extents in the volume group, using all available free space.

    Related concept

    Read the scenario before looking for a memorised answer.

  • lvcreate -L 20G -n lvdata vgdata

    Why it's wrong here

    This uses `-L` with a fixed size of 20G, which does not use all free space unless the VG has exactly 20G free.

  • lvcreate -l 100%VG -n lvdata vgdata

    Why it's wrong here

    The `-l 100%VG` flag attempts to allocate 100% of the volume group's extents, including those already used by other logical volumes. If any extents are already allocated, this command will fail. It does not reliably use only free space.

  • lvcreate -L 100%FREE -n lvdata vgdata

    Why it's wrong here

    The `-L` flag does not accept percentage values; `-L 100%FREE` is invalid syntax and will produce an error.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Red Hat often tests the distinction between `-l` (extents/percentage) and `-L` (fixed size) flags, and candidates mistakenly use `-L 100%FREE` thinking it works like the `-l` percentage syntax.

Trap categories for this question

  • Command / output trap

    The `-l 100%VG` flag attempts to allocate 100% of the volume group's extents, including those already used by other logical volumes. If any extents are already allocated, this command will fail. It does not reliably use only free space.

Detailed technical explanation

How to think about this question

The `-l` flag specifies the number of logical extents, and when combined with a percentage (e.g., `100%FREE` or `100%VG`), it calculates the number of extents relative to the volume group's physical extent size (default 4 MiB). The `-L` flag specifies a human-readable size and does not accept percentage values, which is a common source of confusion. In real-world scenarios, using `-l 100%FREE` is safer when you want to consume only unallocated space without affecting existing logical volumes.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the EX200 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related EX200 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free EX200 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this EX200 question test?

Configure local storage — This question tests Configure local storage — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: lvcreate -l 100%FREE -n lvdata vgdata — Option B is correct because the `-l 100%FREE` flag allocates all unallocated physical extents in the volume group, which is the precise way to use all available free space. Option D (`-l 100%VG`) is incorrect because it attempts to allocate 100% of the volume group's extents, including those already used by other logical volumes, causing the command to fail if any extents are already allocated. Therefore, only option B is correct.

What should I do if I get this EX200 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on EX200

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which two are required to create a logical volume? (Choose two.)

medium
  • A.Physical volume
  • B.Mount point
  • C.Filesystem
  • D.Partition
  • E.Volume group

Why A: A physical volume (PV) is required because it is the underlying storage device (e.g., a disk or partition) that LVM uses as a building block. Without a PV, there is no raw storage to allocate to a volume group. The volume group (VG) is then created from one or more PVs, and logical volumes (LVs) are carved from the VG. Both are mandatory steps in the LVM workflow.

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

easy
  • A.lvcreate -L 2G -n lvdata vgdata
  • B.lvcreate -n vgdata -L 2G lvdata
  • C.lvcreate -n lvdata -s 2G vgdata
  • D.lvcreate -l 2G -n lvdata vgdata

Why A: Option A is correct because 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.

Keep practising

More EX200 practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.