How to expand the logical volume in Ubuntu?

From PheonixSolutions
Jump to navigation Jump to search

Step 1:

SSH the server with sudo user

ssh username@IP

Step 2:

To check the available disk space

df -h --total

Step 3:

To check the disk partition

lsblk

Step 4:

To check the Physical Volume and Logical Volume name

 pvs

Step 5:

Run the below command to expand the Logical Voulme

lvextend -r -l +100%FREE <logical volume name from step 4>

Step 6:

Finally check the result

lsblk