We can use the following steps:
- Shutdown the VPS and add disk. Then restart it.
- Login, use this command: fdisk /dev/sda

- Type ‘ n ’ after the Bluefocus.

- Type p
- Partition number (1-4): (The number must have not exist before, and you can chose default)
- Click double Enter.
- Type p ( you will see the new paetition)
- Type t-> Type Partition number you have chose-> Type 8e ->Type w to save
- reboot server
- use this command : pvcreate /dev/sda(1-4, the number you chose)
- use this command: lvdisplay (to remember the VG name(the disk what you want to expand))
- use this command : vgextend VGname /dev/sda(1-4, the number you chose)
- Still execute command : lvresize -l +100%FREE /dev/VG name
- command: resize2fs /dev/VG name
- If the 14th steps failed, use this command : xfs_growfs /dev/VG name Congratulation, completed. Then, you can use df –lh to check.
Article ID: 223, Created: March 21, 2016 at 1:15 AM, Modified: March 21, 2016 at 1:28 AM