The Linux system is CentOS7. Because the hard disk space was insufficient before, the original hard disk of the virtual machine was expanded by 1T capacity.
Achieving the goal: Add the new capacity to centos-home.
After practice, the simplest steps: 1. Enter n, p, w in
fdisk /dev/sda to create a new primary partition /dev/sda3. 2. Reread the partition and add PV to the volume group partprobe vgextend centos /dev/sda3 3. Expand the logical volume lvextend -l +100%FREE /dev/centos/home 4. Adjust the size of the xfs format file system xfs_growfs /dev/centos/ home
linux expand hard disk capacity
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326169876&siteId=291194637
Ranking