Tried to run cardano node and connect to mainnet on DigitalOcean's server


#1

After following How to Build Cardano SL and Daedalus from Source Code and How to connect to cluster, I was able to connect to the main net. However, after running it for about half an hour, I got some exceptions.

This is what I got when I tried to reconnect to mainnet:

It says that there is no more space left on the device, but I believe that my server still has around 30% disk space left. I also wonder if it is a good idea to run cardano-node on a VPS?


#2

Check your disk space:

$ df -h

Example returned

Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           387M  5.6M  381M   2% /run
/dev/sda2       216G  6.3G  199G   4% /

sda2 has 199G still available, 4% used.

When running a server I set a cap at 80%, meaning when 80% is reached I need to add storage.

You should also format a partition specifically for Cardano’s blockchain and other meta-data, optimizing the space for lots of very small blocks.

Example if I’m running ext4 file system:

mkfs.ext4 -b 1024 -i 1024 -I 128 /dev/<YOU-MUST-SET-THIS>

Mount the new Cardano partition:

mount /dev/<YOU-MUST-SET-THIS> /cardano

Regarding VPS
A single VPS could work but without real metrics which we do not have yet I would be careful. After all, we want to support Cardano in the most robust way possible; a single VPS is not meant for applications that are mission-critical.

Cheers,
Jonathan