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
/sysIncorrect. lvreduce shrinks an LV.
Incorrect. lvreduce shrinks an LV.
/devIncorrect. 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.
/procIncorrect. resize2fs changes an ext filesystem, not the LV allocation.
Incorrect. resize2fs changes an ext filesystem, not the LV allocation.
/varCorrect. 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.
stat -c '%F %n' /dev/null /dev/zeroExpected result
character special file /dev/nullと/dev/zeroKey points
- lvextend grows the LV
- + means an additional amount
- Filesystem growth is another layer
Notes
- Environment: Linux /dev / 読み取り操作
- 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.