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.
/devIncorrect. vgextend adds PVs to a VG and does not resize an LV directly.
/procIncorrect. resize2fs changes an ext filesystem, not the LV allocation.
/varCorrect. 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 / 読み取り操作
- Prefer read-only inspection or a disposable system when testing hardware commands.
- Device visibility and module behavior depend on the host and virtualization environment.
Foundation review
Place the operation
The access node in /dev differs from descriptive attributes in sysfs.
Check the side effect
Inspect node type and permissions before opening a device.