How Can We Help?
< All Topics
Print

Expanding Storage Capacity in a VPS: A Comprehensive Guide

Storage capacity is the amount of disk space a computer system can hold, measured by the number of drives in the storage device. It is often used interchangeably with “disk space” but refers to overall disk space. To meet program requirements, make sure you have enough disk space available and add additional drives as needed.

a) Linux

1. First, log in to your VPS as root and enter the fdisk -l command to check the disk space.

VPS

2. Then use the fdisk /dev/sda command to initialize the extended space and mount it.

3. After that, enter “n” in the next line to create a new partition.

4. Next, assign your desired partition number based on the existing partition number.

5. Then, select the code “8e” to select the Linux operating system.

6. After that, enter “w” to continue, and then restart the system.

7. Next, use the pvcreate /dev/sda3 command to create the physical and logical volumes.

8. Then, use the vgdisplay command to obtain the name of the current volume group.

9. Afterwards, extend the volume group to /dev/sda3 using vgextend VolGroup /dev/sda3 command.

10. Next, enter the lvdisplay command to obtain the logical volume path.

11. Then, enter the lvextend /dev/VolGroup/lv_root /dev/sda3 command to extend the logical volume using /dev/sda3.

12. After that, enter the Xfs_growfs /dev/VolGroup/lv_root command to update the logical volume.

13. Finally, use the >df -h command to check for new disk space.

b) Windows

1. First, navigate to the start menu, right-click, and select Disk Management.

2. Then, select the drive with unallocated space and assign it to the C drive.

3. After that, right-click on the drive and select Delete Volume.

4. Next, select the C drive, right-click, and select Extend Volume.

5. Then, the Extend Volume Wizard will appear.

6. After that, enter the amount of MB you want to allocate to the C drive.

7. Finally, click the Finish button, and the space will be allocated to the C drive.

Table of Contents