EX200 lvcreate -L Practice Question
Network Topology
Refer to the exhibit. An administrator needs to create a 1.2 TiB logical volume named 'data' in volume group 'myvg' and mount it persistently at /data. Which sequence of commands should be used?
⚠ Common exam trap
A common pitfall on the RHCSA exam is assuming that -L does not accept fractional TiB values. In fact, lvcreate supports floating-point sizes (e.g., 1.2T). Candidates may incorrectly use an approximation like 1200G instead of the exact 1.2T.
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 1.2T -n data myvg mkfs.xfs /dev/myvg/data echo '/dev/myvg/data /data xfs defaults 0 0' >> /etc/fstab mount -a
It creates a logical volume of exactly 1.2 TiB using the valid -L 1.2T size specification. LVM's -L option accepts floating-point values with suffixes like T for TiB. The volume is formatted with XFS (default for RHEL 8+), a correct fstab entry is added with /dev/myvg/data, and mount -a mounts it persistently. Option D uses 1200G, which yields approximately 1.17 TiB, not the required 1.2 TiB.
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 1.2T -n data myvg mkfs.ext4 /dev/myvg/data echo '/dev/myvg/data /data ext4 defaults 0 0' >> /etc/fstab mount -a
Why it's wrong here
The `lvcreate` command incorrectly specifies the logical volume size. Using `-L 1.2T` requests 1.2 Terabytes (TB), an SI unit (10^12 bytes), whereas the requirement is for 1.2 Tebibytes (TiB), a binary unit (2^40 bytes). This difference means the created volume will be smaller than the specified TiB size. This option is tempting because `T` is a common abbreviation for large storage, and it would be correct if the question had specified 1.2 TB instead of 1.2 TiB.
- ✗
lvcreate -l 100%FREE -n data myvg mkfs.xfs /dev/myvg/data echo '/dev/mapper/myvg-data /data xfs defaults 0 0' >> /etc/fstab mount -a
Why it's wrong here
This option fails because -l 100%FREE consumes all remaining free space in volume group myvg instead of creating a precisely sized 1.2 TiB logical volume; this is typical when the administrator misinterprets the percentage flag as a way to 'use what you need'. Additionally, while /dev/mapper/myvg-data is the driver-level device name, /dev/myvg/data is the preferred, cleaner LVM2 path for use in /etc/fstab. The volume’s actual size—not the device path—is the decisive reason the answer is wrong.
- ✓
lvcreate -L 1.2T -n data myvg mkfs.xfs /dev/myvg/data echo '/dev/myvg/data /data xfs defaults 0 0' >> /etc/fstab mount -a
Why this is correct
This is correct because lvcreate -L 1.2T allocates exactly 1.2 TiB—in LVM, an uppercase T suffix represents Tebibytes (2^40 bytes), not SI terabytes. Formatting with mkfs.xfs creates a modern, scalable filesystem appropriate for large volumes, and the fstab entry uses /dev/myvg/data, a stable LVM2 device-mapper path. Running mount -a then validates the configuration by actually mounting the new filesystem.
- ✗
lvcreate -L 1200G -n data myvg mkfs.ext4 /dev/myvg/data echo '/dev/myvg/data /data ext4 defaults 0 0' >> /etc/fstab mount -a
Why it's wrong here
This option undersizes the logical volume: in lvcreate, the uppercase G suffix means GiB (1024^3 bytes), so 1200G equals 1200 GiB, which is only 1.171875 TiB—short of the required 1.2 TiB. While mkfs.ext4 and the fstab entry with /dev/myvg/data are technically valid and mount -a would work, the volume itself is too small to satisfy the capacity requirement. The correct approach must allocate exactly 1.2 TiB.
Go deeper
Related to this question
About these practice questions
This EX200 question is part of Courseiva's 127-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 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.