Report this

What is the reason for this report?

Can a droplet's disk size be increased without reinstalling the entire disk?

Posted on November 20, 2014

We have a database on our current server and it is about to fill up with new users. Is there a way to increase our disk size for a droplet without losing all the data currently on the server?

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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. Create a new droplet with the required size
  2. Make it a slave and let it catch up
  3. Shut down site to make sure no new entries come in
  4. Change the new one to master and old one to slave
  5. Power up the site again.
  6. Remove slave if you want

To swap master theoretically is instant so it just depends on how fast you are, should take only a minute or so with testing. The shut down is only to make sure a user isn’t registering at the exact same time as you swap, you don’t have to if its more important to not be down for that time.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.