Hello everyone,
How to configure the quota service so that everything works fine ?
I followed the procedure from FreeBSD Handbook given at the link https://www.freebsd.org/doc/en/books/handbook/quotas.html but it does not work.
System :
Here is what I did for configuration :
- I checked if the kernel supports quotas well
- I configured the quota service at boot
- I configured fstab file
I then restarted the system.
After reboot command :
- I check if the quota is supported on the partition
I have a quota on /dev/ada5a /nfs4
- I set a limit for user (nuxbsd)
- I check the limit for user (nuxbsd)
It does not work
Why is the limit not supported ?
What did I miss?
Thank you very much if you can help me.
How to configure the quota service so that everything works fine ?
I followed the procedure from FreeBSD Handbook given at the link https://www.freebsd.org/doc/en/books/handbook/quotas.html but it does not work.
System :
Code:
uname -a
FreeBSD panoramix 12.1-STABLE FreeBSD 12.1-STABLE r360207 GENERIC amd64
Here is what I did for configuration :
- I checked if the kernel supports quotas well
Code:
sysctl kern.features.ufs_quota
kern.features.ufs_quota: 1
- I configured the quota service at boot
Code:
cat /etc/rc.conf
quota_enable="YES"
check_quotas="NO"
- I configured fstab file
Code:
cat /etc/fstab
/dev/ada5a /nfs4 ufs rw,userquota,groupquota 1 1
After reboot command :
- I check if the quota is supported on the partition
Code:
quota -v
Disk quotas for user root (uid 0):
Filesystem usage quota limit grace files quota limit grace
/nfs4 33036 0 0 61 0 0
- I set a limit for user (nuxbsd)
Code:
edquota -u nuxbsd
Quotas for user nuxbsd:
/nfs4: in use: 1912344k, limits (soft = 10240k, hard = 10250k)
inodes in use: 1771, limits (soft = 0, hard = 0)
- I check the limit for user (nuxbsd)
Code:
quota -v nuxbsd
Disk quotas for user nuxbsd (uid 1010):
Filesystem usage quota limit grace files quota limit grace
/nfs4 1912344 0 0 1771 0 0
Why is the limit not supported ?
What did I miss?
Thank you very much if you can help me.