• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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