Allocate 20 GiB from a VG, create ext4, and mount it at /var/log.
Which LVM layer should receive the filesystem?
An LV appears as a normal virtual block device and is the usual target for mkfs, mount, or swap setup.
Detailed explanation
Incorrect. A physical extent is an internal allocation unit, not normally a direct mkfs target.
Incorrect. A physical extent is an internal allocation unit, not normally a direct mkfs target.
Incorrect. The VG is a capacity pool rather than the specific block device for one filesystem.
Incorrect. The VG is a capacity pool rather than the specific block device for one filesystem.
Incorrect. A PV is the lower layer supplying the pool.
Incorrect. A PV is the lower layer supplying the pool.
Correct. The LV is the block device on which ext4 is created.
Correct. The LV is the block device on which ext4 is created.
Try it yourself
An example you can run in a temporary verification environment.
lvs --help 2>&1 | sed -n '1,12p'Expected result
logical volume情報を表示するlvsの使用法Key points
- LV is allocated from a VG
- It is a block device
- It can receive a filesystem
Notes
- Environment: LVM2 / ヘルプ表示のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.