• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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 you@domain.com -s "acces `hostname`"
more *?*/statistics/logs/access_log.processed.? | grep -i "mod.php" | mail you@domain.com -s "access processed `hostname`"
more *?*/statistics/logs/error_log | grep -i "mod.php" | mail you@domain.com -s "error `hostname`"
more *?*/statistics/logs/error_log.? | grep -i "mod.php" | mail you@domain.com -s "error processed `hostname`"

easy to run on a dozen servers at once.

regards
Jan
 
Back
Top