How to add disk space in a Digital Ocean Droplet?

There are two ways to add space to your Digital Ocean Droplet:

1.- By doing the Resize of our Droplet (an option that you find in the list of your Droplet, in the menu at the end that is shown with 3 dots “…”), which in addition to increasing your disk space will also increase the capacity of your Server. This is the most expensive option.
Take into account that if you choose this option, you must revoke the licenses of your Server before, since as the characteristics of your Droplet changed, the license will be automatically eliminated. Once you resize your Droplet, you can activate the licenses again.

2.- Create a Volume (Add Storage to Droplets), selecting the amount of disk that we want to add and associating this volume to our Droplet and writing the name that we want this volume to have and finally leave the option “Automatic Format and Mount” and We proceed to press the Create Volume button. This process takes a few seconds.
Now we go to the SSH console and execute the following command to check that the volume is okay:

df -H
Filesystem      Size  Used Avail Use% Mounted on
udev            494M     0  494M   0% /dev
tmpfs           103M  549k  102M   1% /run
/dev/vda1        27G  3.0G   23G  12% /
tmpfs           513M     0  513M   0% /dev/shm
tmpfs           5.3M     0  5.3M   0% /run/lock
/dev/vda15      130M   12M  119M   9% /boot/efi
tmpfs           103M     0  103M   0% /run/user/0
/dev/sda        107G  512k  101G   1% /mnt/volume_nyc1_01

In our case we create a Volume of 100 GB, which we see in the following line:

/dev/sda        107G  512k  101G   1% /mnt/volume_nyc1_01

Now we will proceed to create a folder:

cd /mnt/volume_nyc1_01
mkdir recordings

Later we move all the contents of the folder /var/spool/asterisk/monitor to /mnt/volume_nyc1_01/recordings

mv /var/spool/asterisk/monitor/ /mnt/volume_nyc1_01/recordings/

Since we no longer have the monitor folder where VitalPBX saved the recordings, we proceed to create a virtual link.

cd /var/spool/asterisk/
ln -s /mnt/volume_nyc1_01/recordings/monitor/ monitor

Finally we change the permissions so that Asterisk is happy.

chown -R asterisk:asterisk monitor

Now all the recordings will be and will be saved on this new disk.