Get the App
SLTechnology News&Howtos  ›  Servers  › 

VMware Workstation 15.5 Pro extends CentOS 7.7 disk root partition capacity

Shulou Source: shulou.com Published: 2022-06-02 21:40:14 09月22日 Update

1. Relevant information before expansion:

(1) VMware Workstation version:

(2) CentOS version:

(3) disk and partition information before expansion:

2. Expansion goal: expand / partition from 30G to 40G

3. Turn off the virtual machine and edit the virtual machine settings:

The expand button is grayed out. You need to delete the snapshot before expanding.

Resize the virtual disk:

4. Start the virtual machine and view the disk and partition information:

5. Create a new partition:

6. Make the zoning effective:

7. Initialize the physical disk to the physical volume PV:# pvcreate / dev/sda4

8. Extend VG:# vgextend centos7 / dev/sda4

9. Extend LV:# lvextend-l + 100%FREE / dev/mapper/centos7-root

10. Extend the xfs file system: # xfs_growfs / dev/centos7/root

11. View the expanded disk and partition information:

Tags: Disk information version physical virtual machine size snapshot button file gray target system adjustment capacity Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi Shulou Information Apple Shulou Tech Info