LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-14-2024, 03:57 AM   #1
mobycl1ck
LQ Newbie
 
Registered: Apr 2024
Posts: 1

Rep: Reputation: 0
Question 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,
 
Old 04-15-2024, 01:37 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,804

Rep: Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203
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.

Last edited by MadeInGermany; 04-15-2024 at 01:44 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk quota on Centos 5.6, quota not working? shfyang Red Hat 1 11-09-2013 06:28 PM
CUPS Quota: Display over quota on Fedora 15 Printing GUI OrangeGrover Linux - General 0 11-09-2011 02:14 PM
Web Quota + Print Quota dimingo Linux - Newbie 1 09-25-2008 12:31 AM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 03:32 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration