By lwschris
I have a production web server and all critical data for it is on a separate volume, which I am looking to expand soon. It’s showing me that I have the option to expand it without any warnings, but I just want to make sure it’s safe to upgrade the size while it’s mounted and in use before I try anything.
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!
Accepted Answer
Hello, @lwschris
If you need more storage space than your current volume provides, you can attach additional volumes to the same Droplet or expand the size of a current volume.
Increasing the size of a volume has two steps:
Data is not always sequentially written in memory, so reducing the available space would risk data loss and filesystem corruption. To decrease the size of a volume, create a smaller volume and transfer the contents of an existing volume to it using a tool like rsync.
Any changes to a filesystem can lead to data loss if something goes wrong. We strongly recommend backing up the volume’s data before resizing. If you use snapshots, you can delete the snapshot after confirming that the resize was successful.
You can check out tutorial on how to increase the size of a block storage volume:
https://www.digitalocean.com/docs/volumes/how-to/increase-size/#resize-the-volume
Hope that this helps!
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.