quota for ext4 vs xfs (grpquota or pquota ?)

trover

Verified User
Joined
Nov 4, 2015
Messages
76
Hi,
i done enable quotas in CentOS 7 (xfs) but i got doubt after reading this guide:
https://help.directadmin.com/item.php?id=557
As well, we replace the grpquota with pquota (project quotas), which will allow DA to setup directoy quotas, for things like enforcement of per-domain disk quotas.


in CentOS 6 (ext4) i using (usrquota,grpquota) in /etc/fstab like this:
Code:
/home         ext4          defaults,usrquota,grpquota

also i done same in CentOS 7 (xfs) and i think its fine:
Code:
# /usr/sbin/repquota /home
*** Report for user quotas on device /dev/mapper/centos-home
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --     100       0       0             19     0     0
admin     --     336       0       0             38     0     0

but im not sure after reading this part:
As well, we replace the grpquota with pquota (project quotas), which will allow DA to setup directoy quotas, for things like enforcement of per-domain disk quotas.


so which way is the best? and is this fine to use pquota for ext4 and xfs?
Code:
/home          xfs         defaults,usrquota,grpquota
/home          xfs         defaults,usrquota,pquota
/home          xfs         defaults,uquota,prjquota


Thanks
 
Hi,
i done enable quotas in CentOS 7 (xfs) but i got doubt after reading this guide:
https://help.directadmin.com/item.php?id=557



in CentOS 6 (ext4) i using (usrquota,grpquota) in /etc/fstab like this:
Code:
/home         ext4          defaults,usrquota,grpquota

also i done same in CentOS 7 (xfs) and i think its fine:
Code:
# /usr/sbin/repquota /home
*** Report for user quotas on device /dev/mapper/centos-home
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --     100       0       0             19     0     0
admin     --     336       0       0             38     0     0

but im not sure after reading this part:



so which way is the best? and is this fine to use pquota for ext4 and xfs?
Code:
/home          xfs         defaults,usrquota,grpquota
/home          xfs         defaults,usrquota,pquota
/home          xfs         defaults,uquota,prjquota


Thanks

Have the same question. Must say, I've found these instructions don't cover a lot of scenarios. My grep output says:

/dev/mapper/centos-home on /home type xfs (rw,relatime,attr2,inode64,usrquota,grpquota)

There is nothing about prjquota here
 
Last edited:
Back
Top