fdisk -l

umount <Mount point>
/data mount point as an example, run the following command:umount /data
lsblk
MOUNTPOINT of the original partition is empty, the unmount is successful. This document takes the /dev/vdb1 partition as an example. Below is the returned result. 
parted <Disk path>
/dev/vdb as an example, run the following command:parted /dev/vdb
p and press Enter to view the current partition information. Below is the returned information:

rm partition number and press Enter to delete the last partition to be replaced.
In this example, there is only one partition, so you can enter rm 1 and press Enter to delete partition 1.p and press Enter to view the current partition information. Check whether the last partition has been deleted.mklabel GPT and press Enter to create a partition in GPT format.Yes and press Enter.

mkpart primary 2048s 100% and press Enter to create the partition.
Here, 2048s indicates the initial disk capacity, and 100% indicates the maximum disk capacity. This is for reference only. You can choose the number of disk partitions and their capacities based on your business needs.p and press Enter to check whether the partition has been replaced successfully. If the following result is shown, the replacement is successful:

q and press Enter to exit the parted partition tool.mount <Partition path> <Mount point>
/dev/vdb1 partition path and /data mount point as an example, run the following command:mount /dev/vdb1 /data
resize2fs /dev/corresponding partition
/dev/vdb1partition path as an example, run the following command:resize2fs /dev/vdb1
xfs_growfs /dev/corresponding partition
/dev/vdb1partition path as an example, run the following command:xfs_growfs /dev/vdb1
df -h command to view the partition information.Feedback