Expanding the Linux LVM File Management System

The Linux system typically has a root directory capacity of around 50G with the default installation, which is not suitable for the installation and use of large engineering software.

The installation method for physical Linux systems is now very convenient, but there are very few cases of expansion operations.

The method used in practice is very convenient, so I am sharing it here.

1. Add a new disk physically

2. Create a partition on the new disk:

fdisk

3. Format the disk:

mkfs

4. Create a physical volume:

pvcreate

5. Extend the volume group:

vgextend

6. Extend the logical volume that needs increased capacity:

lvextend

7. Refresh the expanded partition:

xfs_growfs

8. Check the mount point of the expanded partition:

df -h

Recommendation: Learn LVM logical volume management in advance

Leave a Comment