LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   confusion about implementing quota (https://www.linuxquestions.org/questions/linux-server-73/confusion-about-implementing-quota-4175736006/)

mobycl1ck 04-14-2024 03:57 AM

confusion about implementing quota
 
Hello good gents
I am asking for your help, searching the web didn't solved my problem or i am being a bit dense.
To the problem at hand.
On a Ubuntu server 22.04 i have to implement the quotas for the users. One detail of importance: the server has a mount point called /data and users have their /home on /data/home. So in the fstab a certain disk partition is mounted at /data.
There is no /home mount point, nor can i add one.
What I did was:
Code:

apt install quota
And added then usrquota and grpquota in /etc/fstab and unmount and remount the /data, all ok.
Then
Code:

sudo quotacheck -ugm /data
sudo modprobe quota_v1 -S 5.15.0-89-generic
sudo modprobe quota_v2 -S 5.15.0-89-generic
sudo quotaon -v /data

Where my confusion starts.
I can't enable quotaon -v /data/home, nor /home. - Mountpoint(or device) not found or has no quota enabled.
Now, When i succesfully activated quotas on /data, two files were created.aquota.group and aquota.user.

Q:
If i simply move those two files, will allow /data/home to be seen as valid point?
If the quota is enabled on /data, i can simply edquota for a user and will automagically understand that the quota is applied to /data/home/myuser?

So i am stuck here, for the moment and i am asking fot your help. Kindly point me to the right dirrection.
Thank you in advance,

MadeInGermany 04-15-2024 01:37 AM

Ok, the quotacheck command created the files aquota.user and aquota.group in /data

Quotas only exist once, at the mount point, not at subdirectories.

Does the command
df -T /data
show a /dev/... path?
Does the filesystem type support quotas?

Once quotas are enabled, you can run the command
repquota -a
to report them.

edquota
is to set limits.


All times are GMT -5. The time now is 05:02 PM.