Forrest logo
back to context overview

lvresize

List of commands for lvresize:

  • lvresize:tldr:55346 lvresize: Reduce the size of a logical volume as well as the underlying filesystem by 120 GB.
    $ lvresize --size -${120G} --resizefs ${volume_group}/${logical_volume}
    try on your machine
    explain this command
  • lvresize:tldr:72003 lvresize: Extend the size of a logical volume as well as the underlying filesystem by 120 GB.
    $ lvresize --size +${120G} --resizefs ${volume_group}/${logical_volume}
    try on your machine
    explain this command
  • lvresize:tldr:a770f lvresize: Extend the size of a logical volume to 100% of the free physical volume space.
    $ lvresize --size ${100}%FREE ${volume_group}/${logical_volume}
    try on your machine
    explain this command
  • lvresize:tldr:bd317 lvresize: Change the size of a logical volume to 120 GB.
    $ lvresize --size ${120G} ${volume_group}/${logical_volume}
    try on your machine
    explain this command
back to context overview