Add 10 GiB from free vgdata space to /dev/vgdata/lvlogs.
Filesystem expansion is a separate step in this question.
Which command extends the LV itself?
lvextend -L +10G increases the LV allocation. The filesystem above it must also be expanded before the extra space is usable there.
Detailed explanation
lvreduce -L +10G /dev/vgdata/lvlogsIncorrect. lvreduce shrinks an LV.
Incorrect. lvreduce shrinks an LV.
vgextend -L +10G /dev/vgdata/lvlogsIncorrect. vgextend adds PVs to a VG and does not resize an LV directly.
Incorrect. vgextend adds PVs to a VG and does not resize an LV directly.
resize2fs /dev/vgdata/lvlogs 10GIncorrect. resize2fs changes an ext filesystem, not the LV allocation.
Incorrect. resize2fs changes an ext filesystem, not the LV allocation.
lvextend -L +10G /dev/vgdata/lvlogsCorrect. lvextend -L +10G adds 10 GiB to the LV.
Correct. lvextend -L +10G adds 10 GiB to the LV.
Try it yourself
An example you can run in a temporary verification environment.
lvextend --help 2>&1 | sed -n '1,18p'Expected result
Logical Volumeを拡張する使用法と-L/--sizeKey points
- lvextend grows the LV
- + means an additional amount
- Filesystem growth is another layer
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.