Some time ago we did give all of our clients more disk space. To manage this, we used the CLI to set the new hard quota. Although the server outputs a "SUCCESS: Update of domain 'domain.tld' complete" the value is not set.
Example: look up username for "domain.tld":
Is this a bug?
Server and product details:
° Product: Plesk 9.5.4
° Operating system: CentOS release 5.7 (Final)
° Architecture: x86_64
° Kernel version 2.6.18-028stab089.1
° Virtualization: Parallels Virtuozzo
° Quota version: quota-3.13-5.el5
Example: look up username for "domain.tld":
Initial the quota for "username" is set to 0:[root@server ~]# /usr/local/psa/bin/domain -i domain.tld | grep "username"
FTP Login: username
We set the quota to 550MB which seems to succeed:[root@server ~]# repquota -a | grep "username"
username -- 312084 0 0 6587 0 0
A domain check does confirm update was successful:[root@server ~]# /usr/local/psa/bin/domain -u domain.tld -hard_quota 550M
SUCCESS: Update of domain 'domain.tld' complete.
However, quota is not set in Linux:[root@server ~]# /usr/local/psa/bin/domain -i domain.tld | grep "quota"
Hard disk quota: 550 MB
If we do the same hard quota set up by web interface ("Web Hosting Settings"), the quota is set:[root@server ~]# repquota -a | grep "username"
username -- 312084 0 0 6587 0 0
If we now try to downgrade the quota from 550MB to 500MB using the CLI, we get another error:[root@server ~]# repquota -a | grep "username"
username -- 312084 0 563200 6587 0 0
Now, nothing is set:[root@server ~]# /usr/local/psa/bin/domain -u domain.tld -hard_quota 500M
usermng: neither PSA_PASSWD nor PSA_CRYPTED_PASSWD environment variables are set. unable to determine user's password
System error 2: No such file or directory
SUCCESS: Update of domain 'domain.tld' complete.
[root@server ~]# repquota -a | grep "username"
username -- 312084 0 563200 6587 0 0
[root@server ~]# /usr/local/psa/bin/domain -i domain.tld | grep "quota"
Hard disk quota: 550 MB
Is this a bug?
Server and product details:
° Product: Plesk 9.5.4
° Operating system: CentOS release 5.7 (Final)
° Architecture: x86_64
° Kernel version 2.6.18-028stab089.1
° Virtualization: Parallels Virtuozzo
° Quota version: quota-3.13-5.el5