• 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.

Calculation of disk space used

Shibumi

Basic Pleskian
Hi,

we have several servers running with plesk 9.5 on CentOS 5.5. Yesterday we setup a new CentOS 5.5 server with a fresh install of plesk 10.0.1. After migrating several customers from an old server with plesk 9.5, the disk space used is calculated wrong.

Some customers don't have mail accounts but the space calculated by plesk is between 40-200mb for Mail.

There are also no files in the maildirs of these customers.
Example:
# cd /var/qmail/mailnames/domain.tld/
# ls -l
total 0

Where is this space coming from?

Thank you in advance for your help.

With best regards
 
Migration logs should be investigated. Did you tried to find related errors in migration logs?
 
Hi,

yes I investigated the different files in the logs directory of the migration manager and there were no strange errors. I also looked into the task logs after migration, there was only the following error:

(i replaced the domain with domain.tld)

******************
<?xml version="1.0"?>
<execution-result status="success"><object name="domain.tld" type="domain"><message code="ExecCmd::ExFailed" severity="error"><context>void plesk::ExecCmd::reportError() const</context><file>ExecCmd.cpp</file><line>49</line><text>Execution of /usr/local/psa/admin/plib/api-cli/maillist.php --update-service antenneclervaux.lu -status domadm failed with return code 1.
Stderr is
Mailing list support is not installed or not properly configured.
</text></message></object></execution-result>
******************

But I don't think the wrong calculation is coming from the missing maillist or am I wrong?

We didn't install the "Mailman mailing list manager support" component because none of our customers are using mailing lists.

Thanks
 
Try to run following:

# /usr/local/psa/admin/plib/api-cli/maillist.php --update-service domain.tld -status enabled

and recalculate statistics for domain with

# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.tld
 
Last edited:
I'm getting this error
Mailing list support is not installed or not properly configured.

when I try the following command:
/usr/local/psa/admin/plib/api-cli/maillist.php --update-service domain.tld -status enabled

the other command is running without errors but no change is space calculation:
/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.tld

(I changed domain.tld with one of my domains.)
 
Last edited:
Hi,

first of all thanks for your help.

After receiving the command not found found, I installed the Mailman mailing list manager component and now your command is working without error or output:
/usr/local/psa/admin/plib/api-cli/maillist.php --update-service domain.tld -status enabled

After that I launched your command but for the whole server:
/usr/local/psa/admin/sbin/statistics --calculate-all

The problem still persists. Customers with no mailboxes still have 50-200mb of mail space allocated. Other customers with some mailboxes also have 20-30mb more mailspace allocated than there is in the maildirs.

Do you have any other idea?
 
Still no change after disabling Setting of server statistics > Include in the disk space usage calculation > Mailboxes. Some customers without mailaccounts still have the old amount of space allocated for mail. Strange...
 
Hi IgorG,
i've found the problem. The statistic files of the domain are added to the mailspace. I manually removed all the statistic files and created them over shell without content. After firing up the recalculate command, the massive used mailspace has been gone. Now the calculated mailspace is down from 200mb to 500kb (size of the logfiles) for customers without mailbox.
Bug or feature? ;)
But now we know where the problems come from.
Thanks for your help IgorG
 
I also had a problem with disk space being added to the mail usage statistics. In fact, this was due to the backup XML file size per domain also being added to the mail usage size.

After removing the XML files and running statistics all was fine.

It's confusing that this size is added to mail...
 
@IgorG can you create a bug-tricket for your devs? seems many things were added to "mail-size" nothing have to do with "mail"? Think this is a OS independent problem.
 
I also had a problem with disk space being added to the mail usage statistics. In fact, this was due to the backup XML file size per domain also being added to the mail usage size.

After removing the XML files and running statistics all was fine.

It's confusing that this size is added to mail...
You mean you deleted the xml files of the backup? Now that the xml files are removed, does the backup work?
 
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
 
Last edited by a moderator:
easiest to just change server settings of server stats

settings >> settings of server statistics
uncheck domain backup files

It is absurd that parallels plesk panel includes the size of backup files in each domains mailspace useage stats.
That was driving me crazy!
 
I had the same problem only i viewed this page a bit too late...

I followed the instructions on this page: http://kb.odin.com/en/9443

but forgot to make a backup of the StatisticsController.php file now i get a 404 error when i visit the statistics pages :-( and still it gives a way to high diskusage (over 101 gig now... and mailboxed empty)

PSA: Plesk 10.0.1
Os: Linux 2.6.32-27-server Ubuntu
 
Back
Top