How to Increase Disk Space on a VPS?
Virtual Private Servers (VPS) are becoming increasingly popular among website owners and developers due to their flexibility and scalability. However, during server operation, there may be a need to increase the amount of disk space. In this article, we’ll explore several ways to increase the disk on a VPS.
1. Using the fdisk command
One of the easiest ways to increase disk space on a VPS is to use the fdisk command. To do this, follow these steps:
- sudo fdisk -l— this command allows you to see the existing disk partitions on the server.
- sudo fdisk /dev/sda— open disk management on the server.
- Press the nkey to create a new partition.
- Then reboot the server for the changes to take effect.
2. Using the resize2fs command
Another way to increase disk space on a VPS is to use the resize2fs command. This command allows you to resize the file system on the increased disk:
- sudo resize2fs /dev/sda— with this command, you can resize the file system on the disk.
- After the command is successfully executed, the new disk space will be available for use.
Remember that before performing any actions to increase disk space on a VPS, it is necessary to ensure data backup to avoid losing valuable information.
Choose the most convenient way for you to increase disk space on a VPS and follow the instructions to successfully complete the operation. Increasing disk space on the server will help you expand data storage capabilities and improve the performance of your virtual server.
 
             
                         
                                                                                         
                                                                                         
                                                                                        