[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quota question
| I would like to set up quotas on my server, I've read the faq on that
| subject but It seems that it's not working.
| 1- I've set up quota on my fstab:
| /dev/sd0a /home ffs rw,userquota,groupquota 1 2
| /dev/sd1a /var/www/users ffs rw,nodev,nosuid,userquota,groupquota 1
| 2- I've set up user/group quota with edquota -u user or edquota -g group
| 3- I did: %quotaon -a
1)First if you edit fstab for quota your patition must be remounted.
# vi /etc/rc.conf
or vi etc/rc.conf.local
and check for this line to be
Reboot your system.
2) su to root
3)Set a quota for a valid user
# edquota validuser
will be suffficient
edit the quotas with vi and not another editor(just recomended)
3) enable the quotas
# quotaon -a
| And if if check the quota for user "joe" by "%quota -u joe"
| It said: NO quota for joe
will be sufficient
| And if I do a "checkquota -a" the operation take a very long time (I
| would'nt stop it)
| Is it normal ?
Yes it is. but depends in how big your partition is. How many users have
quotas assigned etc
If you do excactly these and do not work for you:
# uname -a
GENERIC ----> If you not see this in the line come out off your promt then
probably you have compiled a Kernel with no quota support in it.
So you need to recompile your kernel.
Hope you have a GENERIC Kernel
These all are in openbsd faq you have read as you said.
Read the many quota related man pages they are grate guides.