How to add block storage to primary volume in ubuntu 18.04

My primary volume /dev/vda1 is almost full in one of my digital ocean droplet. I created block storage of 50 gb and attached automatically to droplet. Now it is showing as /dev/sda.

Now I want to add this block storage space to primary volume ( increase volume size) /dev/vda1.

But i dont how to do?. /dev/vda1 - 78GB
/dev/sda - 50GB
Please help me.

Thanks in Advance.

What linux are you using? Ubuntu? Is the storage already formatted? You’ll need to format it first and then set it in /etc/fstab.

Or you can do it this way as well - https://easyengine.io/handbook/mounting-an-external-drive-inside-php-container/. This is what I do and it works great!

He still needs to mount the external storage to the server first, otherwise he can’t transfer any files to it.

1 Like

Thank you i will try