• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Hard Disk quota is not supported

StianB

New Pleskian
Hello all!

I Have this message and i need to get harddisk quota enabled.
hard disk quota is not supported due to configuration of server file system

Can anyone of you help me? Ive tried a couple diffrent methods online but none have seemed to work.. (and all I found where for plesk 9 or older)

My fstab file(changed back to the original):
[root@XXXX etc]# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/sda2 /var ext3 defaults 1 2
/dev/sda3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0

System is running on CentOS 5 with Parallels Plesk Panel v10.3.1

Thanks,
Stian
 
Last edited:
Hi Stian,

I had that as well, drove me crazy. Here's the easy solution that worked for me:

yum install quota

Then restart Plesk using

service psa restart

Hope this helps ;-)
 
Hi Jay!

Thanks for your input.

Quota is already installed. Ive tried to reinstall it but same error still...

Additional info:
Disk space can be restricted under Service Plans, but i need to restrict it under my customer control-panel -> Websites & Domains -> Web Users -> Add New Web User

Thanks,
Stian
 
You haven't grpquota and usrquota options for necessary partition in fstab. Try to add it and remount partition.
 
You haven't grpquota and usrquota options for necessary partition in fstab. Try to add it and remount partition.

Like this?
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/sda2 /var ext3 defaults,usrquota,grpquota 1 2
/dev/sda3 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
 
What is the result?

Doesnt fix it..
Partition is remounted..

Trying quotaon gives this:
[root@XXXX etc]# quotaon -avug
quotaon: Cannot find quota file on /var [/dev/sda2] to turn quotas on/off.
quotaon: Cannot find quota file on /var [/dev/sda2] to turn quotas on/off.

But files does exist..:
[root@XXXX var]# dir
account aquota.user db empty gdm local log mail nis parallels qmail run tmp yp
aquota.group cache drweb games lib lock lost+found named opt preserve racoon spool www

Thanks,
Stian
 
Last edited:
Wheeys
[root@XXXX var]# quotaon -avug
/dev/sda2 [/var]: group quotas turned on
/dev/sda2 [/var]: user quotas turned on

It seems to be turned on now. Still cant change within plesk. Should i restart plesk?
 
Last edited:
Restarted the system. Now it works! :)

This is how i did it:

1.
[root@XXXX etc]# yum install quota

2.
[root@XXXX etc]# nano /etc/fstab
Change
/dev/sda2 /var ext3 defaults 1 2
To
/dev/sda2 /var ext3 defaults,usrquota,grpquota 1 2

3.
[root@XXXX etc]# cd /var

4. If quota.group and quota.user exsist
[root@XXXX var]# rm -f /quota.group
[root@XXXX var]# rm -f /quota.user

5. Create aquota files and change permissons:
[root@XXXX var]# touch /aquota.user /aquota.group
[root@XXXX var]# chmod 600 /aquota.*

6. Remount /var
[root@XXXX var]# mount -o remount /var

7. Run a quota check, should give something like this:
[root@XXXX var]# quotacheck -avugm
quotacheck: WARNING - Quotafile /var/aquota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile /var/aquota.group was probably truncated. Can't save quota settings...

8. Start quota, should give something like this:
[root@XXXX var]# quotaon -avug
/dev/sda2 [/var]: group quotas turned on
/dev/sda2 [/var]: user quotas turned on

Restarting httpd and plesk didnt work for me, i did a reboot instead.

Atleast this worked out for me.

Thanks,
Stian
 
Last edited:
Thanks for posting this step by step - this goes in my list of "important Plesk link".

I remember that under Plesk 9.5 there was a simple tick box under Web Users which - when quota was installed - made it possible to restrict the space a web user was allowed to use on their FTP package. Extremely useful:

Screen-Shot-2011-12-06-at-10.46.41.png


Any chance we can have that back in Plesk 10, Igor? It would be ever so helpful.
 
Why you can't use Hard disk quota hosting parameter in Hosting Plan in Plesk 10.4.4?
 
Because that's only for one user who has control over the entire domain's quota. I give some clients access to only a portion of the domain's space, like an FTP package that's restricted in size. So one domain could have 10 FTP packages with 10 separate user accounts, and each user would get 10GB of space. With Plesk 9.5 it was very easy to do.

Maybe there's a way in Plesk 10 that I haven't figured out yet?
 
Because that's only for one user who has control over the entire domain's quota. I give some clients access to only a portion of the domain's space, like an FTP package that's restricted in size. So one domain could have 10 FTP packages with 10 separate user accounts, and each user would get 10GB of space. With Plesk 9.5 it was very easy to do.

Maybe there's a way in Plesk 10 that I haven't figured out yet?

Hmm??
This is what ive made possible now.. Can do this with my version of plesk 10 atleast.. Under User CP -> Websites & Domains -> Web users -> Add New Web User -> Unclick Hard disk quota unlimited box and for example type in 5000mb and its restricted to that.. Or is it something else your thinking about?
 
I'm on 10.4.4 and the steps I have are Control Panel - Websites and Domains - Web Users - Add New Web User... there's no tickbox relating to quota at all:

Screen-Shot-2011-12-06-at-12.16.43.png


I get the same when I go into FTP Access and click on the user. Or do I need to activate this option elsewhere? I recall that in Plesk 9.5 it was just there, only greyed out when quota wasn't installed.

Perhaps I'm missing something?
 
Stian,

thank you so much for sharing - I've had a look on my 10.3.1 server and it's there too! It's completely missing from Plesk 10.4.4!

Igor, can you shed some light on this?
 
Make sure that you have allowed 'Hard disk quota assignment' permission for your subscription. It lets the subscriber set up such hosting parameter as Hard disk quota. Also make sure that hard disk quota is supported by server file system.
 
The Quota API or some library fail?

[root@sk-xxx ~]# more /etc/fstab
#
# /etc/fstab
# Created by anaconda on Thu Dec 1 02:06:16 2011
#
# 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=5ae8318f-6e8a-4dee-aecc-0da8c4951bc7 / ext4 defaults 1 1
UUID=18df2e9e-722a-4ab6-86bc-23f65d5cc31d /boot ext4 defaults 1 2
UUID=bfc1050f-42e8-4b37-acfd-960b800c7727 /var ext4 defaults,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 1 2
UUID=1ce148e4-ec8a-4c7d-8f5b-b55e756a427b swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0


[root@sk-xxx ~]# quotaon -ap
group quota on /var (/dev/sdb1) is on
user quota on /var (/dev/sdb1) is on

[root@sk-xxx ~]# repquota -a
*** Report for user quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 302476 0 0 10963 0 0
daemon -- 8 0 0 3 0 0
postfix -- 128 0 0 55 0 0
abrt -- 124 0 0 31 0 0
haldaemon -- 8 0 0 2 0 0
mysql -- 116160 0 0 1325 0 0
psaadm -- 756 0 0 73 0 0
popuser -- 18452 0 0 210 0 0
mhandlers-user -- 0 0 0 1 0 0
psaftp -- 0 0 0 1 0 0
apache -- 88 0 0 24 0 0
drweb -- 77136 0 0 171 0 0
sw-cp-server -- 8 0 0 3 0 0
webalizer -- 16 0 0 4 0 0
mailman -- 100 0 0 14 0 0
named -- 60 0 0 15 0 0
ntp -- 12 0 0 3 0 0
postgres -- 33368 0 0 697 0 0
sso -- 1140 0 0 5 0 0
hspc -- 12684 0 0 1961 0 0
rpc -- 4 0 0 2 0 0
toolbox -- 432 0 0 93 0 0

But

9845104126.png


4526262121.png


7655575718.png


i think the plesk api fault or some library fail.

System: CentOS6 x86_64
FileSystem: EXT4
Plesk Version 10.4.4



plz fix this problem.
 
Last edited:
Back
Top