After you complete extend system partition, although the entity storage space has been extended, but for the instance which the file system has been created, it is still necessary to extend the file system to identify the new extension space. This document tells you how to extend file systems in Windows.
Please note that improper file system operation can affect existing data, so it is highly recommended that you manually create snapshots to back up your data before operating.
Volume extension needs to restart/reboot the instance or re-scan the volume before it can be identified, which will cause your business to be interrupted for a certain time, please be careful.
Take centos-7.4-64bit for example
You extend system partition (device name: /dev/sda) to 100GB.
1. Using the Xshell tool or VNC to connect the instance.
2. Run the fdisk -l command to see the system partition. /dev/sdb shows new partition information.
3. Run fdisk /dev/sdb
- Type N and press enter: Create a new partition.
- Enter P and press enter: Select primary partition.
- Enter the partition number and press enter.
- Enter the first available sector number: press enter to use the default value.
- Enter the last sector number: press enter to use the default value.
- Enter WQ and press enter to start partitioning.
- Run the fdisk -l command to see the system partition.
4. Create physical volume, run pvcreate /dev/sdb3
5. View physical volume information, run pvdisplay
6. Add the newly added partition /dev/sdb3 to the root directory partition CentOS. Run vgextend centos /dev/sdb3
7. View volume information, run vgdisplay
8. Add centos size, add 60G, run lvresize –L +60G /dev/centos/root
9. Check out the centos’sizes again, run xfs_growfs /dev/centos/root
10. View the extended size, run df –h
If you have any questions, please contact us at firstname.lastname@example.org or submit a support case.