user quotas when moving partitions

Chrysalis

Verified User
Joined
Aug 25, 2004
Messages
1,323
Location
uk
On a server I look after, we recently moved the /home data of / to /usr so /home is symlinked to /usr/home.

I changed fstab and ran the commands here to enable quotas on the partition.

http://help.directadmin.com/item.php?id=42

I also changed /usr/local/directadmin/conf/directadmin.conf

the following line as below.

quota_partition=/usr

as good measure I also ran the tallies.

Now repquota /usr shows the current usage of each user and is adding up their usage but they havent carried over their quotas from /.

If a new user is added they have the quota set properly, so my guess is that DA needs to reset these quotas so they are enabled but we are looking for a quick easy way to do this for all users rather then doing one at a time.

Another question is how does proftpd handle quotas, does it use the quotas set on the partition limiting uploads? or rely on DA suspending accounts when they hit their limit.
 
Last edited:
What do you mean by "...but they havent carried over their quotas from /." ?

Quota doesn't operate the same way a bandwidth tally does and there isn't a running accumulation of usage...
Quota usage is what it is...

Another question is how does proftpd handle quotas, does it use the quotas set on the partition limiting uploads? or rely on DA suspending accounts when they hit their limit.
That depends on your setup. You can do it either way. By default accounts are not suspended when they go over their quota usage allowing the administrator to take whatever actions he/she deems necassary.
 
this problem is resolved, DA is adding the fix in the next version. He is adding a command that will re tally the quotas on the new partition so the limits are reapplied.
 
I've just done something like this.

I've moved my /home partition and my quota limits are all set to 0 now.

Is there anyway to get DA to set the limits again?
 
depends on the operating system, I know on freebsd you have to set which partition in fstab to enable quotas on, and after that in directadmin.conf look for the line like this.

quota_partition=/home

edit it accordingly then restart directadmin.
 
Back
Top