• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

CentOS 7 XFS Quota OFF for Plesk 12 (false/positive)

crnunez

Regular Pleskian
Hello,
I have a new CentOS 7, with Plesk 12, CentOS 7 by default has XFS filesystem.
I try migrate sites from another Plesk Server but Plesk agent say: "hard disk quota is not supported due to configuration of server file system" (my CentOS 7)

My CentOS7:
CentOS Linux 7.0.1406 64 bits
Plesk 12.0.36

My fstab
[root@ns ~]$ cat /etc/fstab
/dev/mapper/centos-root / xfs defaults,usrquota,grpquota 1 1
UUID=ba391bd5-786c-4ae7-8bbd-f36f831ae6eb /boot xfs defaults 1 2
/dev/mapper/centos-swap swap swap defaults 0 0

I added "usrquota,grpquota", then mount -o remount / ; but when I try quotacheck -fmv / I gest this:

[root@ns ~]$ quotacheck -fmv /
quotacheck: Skipping /dev/mapper/centos-root [/]
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

but quotaon command works:
[root@ns ~]$ quotaon /
quotaon: Enforcing group quota already on /dev/mapper/centos-root
quotaon: Enforcing user quota already on /dev/mapper/centos-root

The problem here is why Plesk does not recognize quotas as enabled on CentOS 7??

If I try this commmand it seems good:
[root@ns ~]$ /usr/local/psa/admin/sbin/usermng --isquotable
0

Also I do this:
- Disabled Selinux
- Check all packages as quota, etc.

Thanks for your help in this matter.

I have been using some reference:
http://help.directadmin.com/item.php?id=557
https://www.howtoforge.com/perfect-...l-php-pureftpd-postfix-dovecot-and-ispconfig3
http://www.ibm.com/developerworks/library/l-lpic1-v3-104-4/
 
Quotas on Virtual Server Containers is a pain ...
I have never been successful wth quotas on OpenVZ (if anyone has achieved this b4, please share it ...)
 
I have other CentOS 6.6 without any quota problem, I don't believe that is a problem with container but it is an issue with CentOS 7 and XFS filesystem and Plesk.
 
Can someone check migration manager? "hard disk quota is not supported due to configuration of server file system" I suspect it is false positive, then bug.
 
One question, What commands check Plesk migration for say"quota enable or disabled"? It is not only /usr/local/psa/admin/sbin/usermng --isquotable = 0
 
I set quota after installation, but in others install I did the same without problems with quota.
 
Show me output of this mysql query
[root@a10-52-150-186 ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select value from ServiceNodeEnvironment where name="isHardQuotaEnabled"'
+-------+
| value |
+-------+
| true |
+-------+
[root@a10-52-150-186 ~]#

By the way do not use quotacheck command on XFS:
[root@a10-52-150-186 ~]# quotacheck -fmv /var/www
quotacheck: Skipping /dev/sdb [/var/www]
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
[root@a10-52-150-186 ~]# xfs_quota -x -c 'report -h' /var/www
User quota on /var/www (/dev/sdb)
Blocks
User ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 23.0M 0 0 00 [------]
psaadm 12K 0 0 00 [------]
apache 0 0 0 00 [------]
webalizer 8K 0 0 00 [------]
ftpuser00 340K 0 1.5G 00 [------]
ftpuserdummy 340K 0 1.2G 00 [------]

Group quota on /var/www (/dev/sdb)
Blocks
Group ID Used Soft Hard Warn/Grace
---------- ---------------------------------
root 23.0M 0 0 00 [------]
psaserv 16K 0 0 00 [------]
psacln 672K 0 0 00 [------]
apache 36K 0 0 00 [------]
nginx 16K 0 0 00 [------]

[root@a10-52-150-186 ~]#
 
Quotas works correct on ce/rh7. Why you ignore my offer to show mysql query output?
 
hello.

I have the same issue... hard disk quota is not supported due to configuration of server file system. This is a VPS i have root access to.

Before installing Plesk, I changed the grub string to have usrquota and grpquota as well as fstab so stab looks like this:

/dev/mapper/centos_http01-root / xfs defaults,usrquota,grpquota 0 0

UUID=287a5fad-f0f7-4349-9576-af8b79f3b0c9 /boot xfs defaults 0 0

/dev/mapper/centos_http01-swap swap swap defaults 0 0


and here is another output:

mount | grep ' / '

/dev/mapper/centos_http01-root on / type xfs (rw,relatime,seclabel,attr2,inode64,usrquota,grpquota)


Any ideas ?
 
by the way: output of SQL command:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select value from ServiceNodeEnvironment where name="isHardQuotaEnabled"'

+-------+

| value |

+-------+

| false |

+-------+
 
HI,

maybe it's to late. But maybe will help for someone. I'm using CentOS 7. And had a problem with xfs quota. So I did that:

vi /etc/default/grub
at the end of the line GRUB_CMDLINE_LINUX after quiet added "rootflags=uquota,pquota" and saved.

Made backup of the config file:
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig

and created new config file:
grub2-mkconfig -o /boot/grub2/grub.cfg

also changed fstab file in /etc/fstab

vi /etc/fstab
/dev/mapper/centos_srv1-root / xfs defaults,usrquota,grpquota 0 0 (added usrquota,grpquota)

if mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select value from ServiceNodeEnvironment where name="isHardQuotaEnabled"' shows that value is "false", login to mysql and change value to "true"

Reboot server and you will have quota support. At least for me it works.
 
hello how can i change that value? please help :) did ur guide and it now hows up in the flag that its enabled.
 
hello how can i change that value? please help :) did ur guide and it now hows up in the flag that its enabled.

You can update this value with the command:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'update ServiceNodeEnvironment set value="true" where name="isHardQuotaEnabled"'
 
I'm running Plesk Onyx in a Google Compute Engine (Plesk Onyx on CentOS 7) server and I also have this problem exactly.
Unfortunately, the contents of my /etc/fstab look like this, so I'm unsure what to do:

#
# /etc/fstab
# Created by anaconda on Wed Nov 29 20:11:03 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=4445ba28-4c9e-4aed-8546-7ae3ca428ebb / xfs defaults 0 0


Using this command does turn on the ability to sync my Plesk Subscriptions successfully:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'update ServiceNodeEnvironment set value="true" where name="isHardQuotaEnabled"'

However, after any server restarts and on other occasions it reverts back to "false" again.

Anyone have an idea what I can do to make this stick?
 
First of all allow quta:
1. edit /etc/default/grub
2. update var GRUB_CMDLINE_LINUX, add "rootflags=uquota,pquota"
3. update grub using command "grub2-mkconfig -o /boot/grub2/grub.cfg"
4. reboot VM
5. verify that OS now supports quotas:
---------------------------------------------------------------------
mount | grep ' / '
/dev/sda2 on / type xfs (rw,relatime,seclabel,attr2,inode64,usrquota,prjquota) <<<<

Than reset current saved quota state in PSA DB using command "/usr/local/psa//admin/sbin/packagemng -sdf".
Final action - log out from Plesk (if was logged in) and log in again

Check that PSA correct recheck quota status:
[root@a10-52-30-130 ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select * from ServiceNodeEnvironment where name="isHardQuotaEnabled"'
+---------------+---------+--------------------+-------+
| serviceNodeId | section | name | value |
+---------------+---------+--------------------+-------+
| 1 | os | isHardQuotaEnabled | true |
+---------------+---------+--------------------+-------+
[root@a10-52-30-130 ~]#
 
Back
Top