Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
quotas not doing anything
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Antonioac
n00b
n00b


Joined: 04 Apr 2004
Posts: 29

PostPosted: Sun Apr 04, 2004 8:12 am    Post subject: quotas not doing anything Reply with quote

I have set up quotas on a 40GB ext2 partition following the gentoo security guide. There's one user account currently with a home directory on this drive, and I want to limit their usage, for testing, I set the user's hard limit to 6.5 MB's and the soft limit to 5 MB's with a grace period of 10 seconds. After copying 65 MB's+ of data, and re-running quotacheck -avug, this is the output of repquota -a:

*** Report for user quotas on device /dev/hdb5
Block grace time: 00:00; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 28 0 0 4 0 0
mewa +- 97260 5000 6500 none 26 0 0

(what's the +-?)
I'm not sure why it says I have no grace time, I clearly put it to 10seconds:

Grace period before enforcing soft limits for users:
Time units may be: days, hours, minutes, or seconds
Filesystem Block grace period Inode grace period
/dev/hdb5 10seconds 7days

output of quotacheck -avug:
quotacheck: Scanning /dev/hdb5 [/mnt/users] done
quotacheck: Checked 6 directories and 25 files

quotaon doesn't seem to work either:
quotaon: using /mnt/users/quota.user on /dev/hdb5 [/mnt/users]: Function not implemented

nor does quotaoff:
quotaoff: quotactl on /dev/hdb5 [/mnt/users]: Function not implemented

It seems all this whole quota thing does is tell you how much space was intended for a quota, and how much space the quota is actually takiing up, without doing anything about it, which is pretty useless...:twisted: please help

thanks
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Sun Apr 04, 2004 10:23 am    Post subject: Reply with quote

Looks like quota support is not built into the kernel, or the kernel has not been installed and the machine rebooted.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Antonioac
n00b
n00b


Joined: 04 Apr 2004
Posts: 29

PostPosted: Sun Apr 04, 2004 3:07 pm    Post subject: Disk quota now works! Reply with quote

ooooh, I forgot to copy the kernel after compiling.... but now it works! THANKS!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum