lvresize -L 10G /dev/vgdata/lvdata

Category: Administration

lvresize -L 10G /dev/vgdata/lvdata

Resize a logical volume to an absolute size

Sets logical volume lvdata to exactly 10 gigabytes, growing or shrinking as needed. This is the general resize command that lvextend and lvreduce wrap. Shrinking requires the filesystem to be shrunk first and the volume unmounted, so prefer growing.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.