Problem Analysis
Due to selecting standard partitioning instead of LVM (Logical Volume Management) when installing the system in VMware, the vgextend command cannot be used to dynamically extend the root partition (/).

The created partition disk is sdax.

At this point, entering the system and typing vgdisplay will yield no response, as there is currently no LVM logical volume group created in the system.

Expanding the Disk
Now, if we want to expand the disk in VMware, what should we do?
Note: This method is applicable to virtual machines without snapshots.
Click the expand button => enter the size to expand, for example, I previously had a size of 20G, now changed to 30G, which means an expansion of 10G.

After loading, it will remind you to make adjustments inside the system.

To prevent errors, you can take a snapshot before expanding.

After the system starts, the root partition size remains unchanged, and we can see that the current root partition is using /dev/sda4.

The total size of the current disk has changed to 30G.

Use fdisk to expand the root partition.
[root@localhost ~]# fdisk /dev/sda
# Delete the root partition, which is sda4
Command (type m for help): d
Partition number (1-4, default 4): 4
Partition 4 has been deleted.
# Recreate the partition, pay attention to the available sector range;
Command (type m for help): n
Partition number (4-128, default 4): 4
First sector (3149824-62914526, default 3149824):
Last sector, +/-sectors or +size{K,M,G,T,P} (3149824-62914526, default 62912511):
Created a new partition 4 of type "Linux filesystem" with size 28.5 GiB.
Partition #4 contains an ext4 signature.
Do you want to remove the signature? Yes[Y]/No[N]: y
The write command will remove the signature.
Command (type m for help): w
Partition table has been altered.
Syncing disks.
At this point, checking the disk space again shows that the capacity is still 20G and has not changed.

Restart the system to refresh the partition and make it effective.
The partition type here is ext4.

Use the following command to refresh.
resize2fs /dev/sda4
# For xfs formatted partitions, use the following command
xfs_growfs /dev/sda4
At this point, the root partition expansion is complete.
