I created a standard CentOS 6.9 droplet with 320 GB SSD and added 1000 GB block storage while creating the droplet and selected “Automatically Format & Mount”.
When I started moving the large application I ran out of space because it was only moving files to the initial droplets 320 GB disk and not using the attached volume at all.
I am moving a legacy PHP/CodeIgniter application to host on DO. Is there something I am missing when trying to get the volume to work?
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!
Greetings!
Great question and sorry for the confusion on this. The block storage is not an expansion of your droplet’s disk, but an additional disk. Think of it like plugging an external USB hard drive into your computer, in that it adds a second drive that you must specifically select to add items to.
When you use the option to automatically format and mount, we do that, but it is in a specific location. If you run “df -h” you should see the location and the size match. You could change that location as well. Let’s say, for this example, that your block storage was mounted by us in:
/mnt/volume01
And that you want it at:
/var/www/media
This is what I would do:
mv /var/www/media /var/www/media.bak
mkdir /var/www/media
mv /var/www/media.bak/* /var/www/media
Done :)
Jarland
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.