Hello,
Our Droplet has been running out of disk space and we’ve attached a volume, but it’s not working. How do we make sure the droplet is using the extra disk we added?
The droplet is running MySQL only and is a dedicated database server.
Please let us know what we need to do.
Thank you.
Best,
Sunny
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!
Simply mounting the droplet will not help you get rid of disk space issues. You need to actually use the volume.
When attaching a volume (https://www.digitalocean.com/community/tutorials/how-to-use-block-storage-on-digitalocean) you mount a certain folder to the block storage.
Only data inside this exact folder will be stored on the block storage. You are writing the server only runs a MySQL Database, here is what I would do:
0. Make sure that the block storage is at least as big as the databases it should contain (use du for example)
cp -rp /var/lib/mysql /mnt/storage should work/var/lib/mysql) or change the datadir setting to point to the mounted volume./etc/fstab, especially if you changed the path to e.g. /var/lib/mysqlGet 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.