Report this

What is the reason for this report?

Increasing HDD on Droplet

Posted on July 3, 2018

I have a droplet that has the following spec: 2 GB Memory / 40 GB Disk / 2 vCPUs I am looking for a way to increase just the storage, can I use volumes or spaces for this? Any advice or support is very much welcomed.

Kind regards,

Luke



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.

Hey Luke!

Volumes would be more ideal than Spaces for this need, as it would act much like plugging in a second hard drive to the droplet. You can format it and mount it to your preferred location. Note that this will not increase the size of the root partition, but you could use it to store data on. Popular examples might be to mount it as /home or /var/www. We have some great documentation that can get you started:

https://www.digitalocean.com/docs/volumes/

Now, if increasing the size of the root partition is the goal, then you would need to resize the whole droplet. For that, we have documentation here:

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

Kind Regards, Jarland

The previous commentator has covered the salient points. I would just like to add that setting up Volumes with your Droplet is a seamless affair since we allow for auto-formatted and mounted Volumes. This means that you can provision additional storage for your Droplet without having to run any manual configuration steps through SSH.

Heya,

You can attach a volume to your droplet and this will give you additional disk space.

Volumes are network-based block devices that provide additional data storage for Droplets. You can move them between Droplets and resize them at any time. Learn more about volumes.

Once the volume is created you need to mount it on your droplet.

https://docs.digitalocean.com/products/volumes/how-to/mount/

After mounting the volume, it is accessible on your Droplet at /mnt/your-volume-name. You can use this path to do any file operations you would do with a native volume, including creating, moving, or deleting files.

Regards

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.