Environment: Ali cloud Centos7.3
Process Description: just go to work to see monitoring and found several servers disk usage 99%, so they log files to troubleshoot high-capacity, file deletion did not recover much, so they apply to the owner of the cloud disk expansion;
Expansion steps: Log Ali cloud console ---> find the target instance to select the disk ---> online data disk expansion ---> specify the size of the expansion ---> about twenty-three minutes after successful payment server to be able to identify the expanded size of the disk (no need to restart instance)
The problem: because the expansion of the state before the disk is mounted, use fdisk -l to view the complete online expansion size of the target disk is changed, but df -hT see the original size or capacity to mount
Solution: ① unmounted: umount / data
② check disk integrity: e2fsck / dev / vdb
③ increase or decrease the size of the disk is not mounted: resize2fs / dev / vdb
④ re-mount the disk to the target directory: mount / dev / vdb / data