![Forrest logo](/images/logo.png)
lvextend:tldr:1236e
lvextend: Increase a volume's size by 40 GB as well as the underlying filesystem.
$ lvextend --size +${40G} -r ${logical_volume}
try on your machine
The command lvextend
is used to extend the size of a logical volume in Linux.
Here's a breakdown of the different components of the command:
lvextend
: This is the command itself, indicating that we want to extend the logical volume.--size +${40G}
: This option specifies the amount by which we want to extend the logical volume. In this case, it uses the+
sign to indicate that we want to increase the size and${40G}
represents the size to extend by, which is 40 gigabytes (G).-r
: This option is used to resize the file system on the logical volume after it has been extended. It ensures that the file system is adjusted to match the new size of the volume.${logical_volume}
: This variable represents the name of the logical volume we want to extend. It should be replaced with the actual name of the logical volume.
So, putting it all together, the lvextend
command is used to extend the specified logical volume by 40 gigabytes, and then the file system on that logical volume is resized to match the new size.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.