How to add disk space in a Digital Ocean Droplet? 

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

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. 

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: 

/dev/sda        107G  512k  101G   1% /mnt/volume_nyc1_01 
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/ 
cd /var/spool/asterisk/ 
ln -s /mnt/volume_nyc1_01/recordings/monitor/ monitor 
chown -R asterisk:asterisk monitor 

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

What are your feelings
Updated on December 4, 2023