Please note that expansion is possible within the same architecture (transition from NVMe to NVMe or from SSD to SSD). If you are transitioning, for example, from an NVMe drive to an SSD, a complete disk replacement with data deletion is required.
Connect to your virtual server. Then use the following command to install the necessary software.
apt install cloud-utils -y
Retrieve information about the system partition in use. In our example (and usually on all Contabo VPS servers), this is 'sda3'.
mount | grep ' / '
Use the following commands to expand the storage.
sudo growpart /dev/sda 3
sudo resize2fs /dev/sda3
In both cases, the number "3" represents the utilized storage partition. Replace it with your own value if necessary.