Instead of using the dev/sdba1 (19Go), I understand that I should have mounted the sdb disk and save the uploaded video there (250Go), but I don’t really know how to do it.
Should I edit this file ?
vi /etc/nginx/sites-available/peertube
As a first step, now that sda1 is full, how can I remove some files to make it word again?
You have to partition and mount your sdb hard drive.
(they are many ways to do it, i can’t give you the exact command, as it depends on how you want to set it up (lvm ? ext4 ? …)
Then stop Peertube (systemctl stop peertube)
Once this is done, you can move files from your Peertube storage folder (/var/www/peertube/storage) on the new partition. Then change your peertube configuration file (production.yaml) to replace /var/www/peertube/storage/ by the new path.
Do the same in your nginx config file (/etc/nginx/sites-enabled/peertube).
Then restart nginx and peertube (systemctl restart nginx peertube).