Reduce Disk Space Usage
Maintaining healthy disk overhead is critical for server stability. While we recommend external monitoring for your LxRoot cluster, the following configuration tweaks and maintenance steps can help reclaim significant storage space.
Set Control Panel API Server Logs to 'Warn'
By default, verbose logging may capture internal trace messages (like read/write locks) that aren't necessary for standard operations. Switching to 'Warn' ensures only errors and critical warnings are logged, significantly slowing the growth of log files.
How to update log level:
- Select Settings from the left-hand menu.
- Click Platform and scroll to the Logs section.
- Select Warn from the dropdown menu and save.
Clear Out Old Logs and Files
System updates and automated backups can leave behind large artifacts. Use the following SSH commands to identify space-saving opportunities:
1. Identify Large Archives or SQL Dumps
Search within web directories for files larger than 100MB:
find /var/www -name "*.zip" -size +100M
find /var/www -name "*.sql" -size +100M
find /var/www -name "*.gz" -size +100M
2. Manage Container Logs
Docker container logs can grow exponentially if not rotated:
find /var/lib/docker/containers -name "*.log*" -size +100M
3. Analyze Database Size
Check the disk footprint of individual MySQL/MariaDB databases:
du -hs /var/local/LxRoot/mysqlcd-data/data/*
Before deleting .sql or .zip files found in /var/www, verify with the website owner that these are not active manual backups or required site assets.