Volume in Dropet

Good morning, My Dropet has a full disk, for this reason I need to attach a volume to it, as I already use the dropet to host websites, I want to install the volume in the same directory as my dropet, how can I do this whole process?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

What I would do is first mount the disk to a temporary directory, then by using the rsync or the cp command I would copy the files from the current directory to the volume.

Once the files are in place, I would remove the existing directory from the root partition, and then I would mount a volume to that specific directory path instead.

You could run the following command:

sudo mount -o defaults,nofail,discard,noatime /dev/disk/by-id/scsi-example /var/www/your_site/example_mount_point

This is from the documentation here:

Let me know if you have any questions! Regards, Bobby