I have an Ubuntu 24.04.2 LTS server with ISPConfig Version: 3.3.0p1. but the MariaDB server is down and I noticed that there is no space left on device. How can I solve that?
Add more space to the system 1. Check the volume group with `vgdispaly` 2. Resize the disk in your Hypervisor if needed 3. Grow the partition in question `gropart /dev/sdX 3` 4. Resize the physical volume `pvresize /dev/sdX3` 5. Extend the lvm `lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv` 6. Resize the filesystem `resize2fs /dev/mapper/ubuntu-vg/ubuntu--vg-ubuntu--lv`
immediate action: apt autoremove --purge should remove unused packages, old kernels etc.. then find /var/log -type f -name "*.gz" -delete to delete old compressed log files (check there's nothing there you'd want to keep first) those should clear up enough space to get mariadb and any other stopped services running again that'll give you a bit more time to sort out adding larger drives, resizing partitions / filesystems etc so you're not rushing through it all in a panic with services down..
I found out that the /var/mail/root file is too large, and it's the main reason why it's running out of space. Why is that? How can I avoid that?
You can just empty that file. It contains mails for root e.g. cronjob output, double-bounces or other system mails. You should check what messages are in there - at least the last few or clear it and check again after some time.