Now I want to increase my droplet disk.

My question is that I want to increase from 25GB to 640GB this time. Can I upgrade “AGAIN” from 640GB to 1TB in the near future? I knew this is a permanent change. But it is only for downgrading size or including both upgrading and downgrading?

What is the process of permanent resizing? Do I need any configuration settings or just like the flexible resizing (clicking the button and waiting for a couple of mins)?

In my case, I found my dev/vda1 is not enough. I want to just increase the /dev/vda1 from 25G to 640G. And in the near future might be up to 1TB

Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 700K 394M 1% /run
/dev/vda1 25G 19G 5.9G 76% / ==> 640GB ==> 1 TB
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vda15 105M 3.6M 101M 4% /boot/efi).

I just searched for lots of posts. I found that the Block Storage can not merge with the root disk( flexible 25GB)? Is it correct?

Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 395M 700K 394M 1% /run
/dev/vda1 25G 19G 5.9G 76% /
tmpfs 2.0G 8.0K 2.0G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vda15 105M 3.6M 101M 4% /boot/efi
tmpfs 395M 0 395M 0% /run/user/0
/dev/sda 100G 61M 95G 1% /mnt/academic_accelerator

/dev/sda can not merge with /dev/vda1 Right?

More precisely, if /dev/vda1 [Root Storage] is full, will my PostgreSQL start using/saving data from /dev/sda [Block Storage]?

Is permanently resizing the only option to increase the root disk size?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello, @stu5737

I will recommend you to check our official documentation about the droplet resize:

https://www.digitalocean.com/docs/droplets/how-to/resize/

There are two resizing options for Droplets:

CPU and RAM only. This option lets you increase or decrease the amount of CPU and RAM available to a Droplet.

Disk, CPU, and RAM. This option increases the amount of CPU and RAM available to a Droplet and permanently increases the size of a Droplet’s disk.

If you want to upgrade again in the future you can do so. You cannot decrease the size of a Droplet’s disk. In other words, disk resizes are irreversible. Data is not always sequentially written in memory, so reducing the available space would risk data loss and filesystem corruption. For more flexibility, you can use block storage volumes for additional data storage, which lets you detach or delete the volume if you no longer need the space.

If you want to expand (upgrade) the disk size of your root partition then you need to resize your droplet.

Regards,
Alex

  • Thanks for your reply! I have another question

    What is the process of permanent resizing? Do I need any configuration settings or just like the flexible resizing (clicking the button and waiting for a couple of mins)?

    • Hey, @stu5737

      Yes you can resize the droplet via the Reszie menu in the Control Panel.

      You can check this part of the docs:

      https://www.digitalocean.com/docs/droplets/how-to/resize/#resizing-droplets

      You can resize Droplets from the control panel or using the DigitalOcean API.

      Before you can resize a Droplet in the control panel, you need to power it off. We recommend you do this from the command line to avoid data corruption, so SSH to your Droplet and issue the shutdown command:

      sudo shutdown -h now
      

      Next, go to the DigitalOcean Control Panel. On the Droplets page, click on the name of the Droplet you want to resize, then click the Resize option in the Droplet-specific menu.

      The current Droplet size is highlighted. Choose CPU and RAM only or Disk, CPU, and RAM resizing, then select the new Droplet size.

      Once the Droplet is powered down and you’ve chosen its new plan, click Resize. A progress bar displays as the resize takes place.

      When the resize event is finished, click the On/Off button to power the Droplet back on.

      In certain cases, a disk resize fails to resize the Droplet’s partition or filesystem. If you rerun df -h after a disk resize and the output is unchanged, this usually indicates a problem.

      This can be sorted using resize2fs for ext3/4 filesystems

      resize2fs /dev/vda1
      

      Regards,
      Alex

Submit an Answer