The instruction is relevant in case of purchase of additional storage space for services at the Contabo location.

Please note that expansion is possible within the same architecture (switching from Name to Name or from SSD to SSD). If you switch, for example, from an NVMe drive to an SSD, then a complete disk replacement with data deletion is required.

Connect to the virtual server. Then we use the command to install the necessary software.

apt install cloud-utils -y

We get information about the used section of the system. In our example (and as a rule, on all Contabo VPS servers), this is sda3

mount | grep ' / '

We use commands to expand the drive.

sudo growpart /dev/sda 3
sudo resize2fs /dev/sda3

In both cases, the digit »3» denotes the drive partition used. Replace with your value if necessary.

Last updated