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

November 20, 2014 2.7k views

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!

2 comments
  • Use the snapshot method, that only hurts with few mins of down time..

    1. Power off the server.. (make sure all your running processes and scripts are programmed to start them self from a server restart)

    2. Take a snapshot..

    3. Destroy the droplet..

    4. Redeploy the snapshot in the same region with a larger plan..

    In this process everything stays same, just now you have a larger plan.. Make sure you perform the step 3 and 4 back to back and quickly to recapture the same IP :)

    Thanks..

  • Hunky, image restore on new droplets do not increase disk space. So he will stay with the same problem.

    Also is important to optimize db server for the use of the new environment, so is better to setup the new droplet, db server and move the databases once in ready and optimized, at least on this case scenario.

1 Answer
  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.

Have another answer? Share your knowledge.