How to have multiple mounting points to a block storage?

I understand that I can create a block storage volume and attach it a droplet. I can then run a set of commands which DigitalOcean provides me upon creation of my volume to mount a folder in /mnt/my_mounted_folder to the storage volume. But that’s just a single mounting point, ie, one folder, though.

What if I have multiple mounting points for my block storage volume?

In my case, I’ve multiple folders that I’m considering to mount to a block storage volume. So, I might have a few folders from different places which I want to mount to the volume. For instance, I may have /mnt/db1_data, /mnt/db2_data, /home/app/some_upload_folder and /usr/other_data that I want to mount to a storage volume. All these folders reside on the same droplet instance.

In this case, how can I mount all of these folders to the storage volume in their own folders?


Submit an 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.

Alternatively, what’s is the best practices for a situation like the one I’m having?