• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Free disk space partition / after server crash caused by data restore

Boris Uhlig

New Pleskian
Hi there,

any ide whre are dump or similar files stored which could remodev to free space, as the watchdog notifies my constantly?

Thank you for any tip!
 
Hi Boris Uhlig,

the standart location for Plesk - backup - files is => "/var/lib/psa/dumps"

You might as well consider to have a look into your "temp"/"tmp" - folders on your server, to free some disk - space.
 
On centos /var/cache is also a good place to check and ofcourse /var/log

Also is log rotation activated and properly configured on your websites. The plesk default if not that great. You can set them all at once with this script.
Change days as needed. All parameters here

site: Sites

PHP:
<?php
$pwfile = "/etc/psa/.psa.shadow";
$pw = trim(file_get_contents($pwfile));

mysql_connect("localhost","admin", $pw);
mysql_select_db("psa");
if (!($result=mysql_query("select htype, name from domains where htype = 'vrt_hst' ORDER by name;"))) {
        print("MySQL error: " . mysql_error());
}
$aantal = mysql_num_rows($result);
    for ($r = 0; $r < mysql_num_rows( $result); $r++) {
        $row = mysql_fetch_array ($result);
        echo "$row[name]\n";
    exec ("/usr/local/psa/bin/site -u $row[name] -log-rotate true -log-bytime daily -log-max-num-files 7 -log-compress false");
    }

?>

we don't compress log files by design in order to be able to find stuff in logs very fast, an example

Code:
#!/bin/sh
cd /var/www/vhosts/system/
more *?*/statistics/logs/access_log | grep -i "mod.php" | mail [email protected] -s "acces `hostname`"
more *?*/statistics/logs/access_log.processed.? | grep -i "mod.php" | mail [email protected] -s "access processed `hostname`"
more *?*/statistics/logs/error_log | grep -i "mod.php" | mail [email protected] -s "error `hostname`"
more *?*/statistics/logs/error_log.? | grep -i "mod.php" | mail [email protected] -s "error processed `hostname`"

easy to run on a dozen servers at once.

regards
Jan
 
Back
Top