Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Filesystem quotas. Suggestions needed :)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
d11wtq
Apprentice
Apprentice


Joined: 14 Jul 2005
Posts: 192
Location: Manchester, UK

PostPosted: Sun Jan 15, 2006 9:46 pm    Post subject: Filesystem quotas. Suggestions needed :) Reply with quote

Hi,

It's the first time I've tried setting up quota but my system is a Virtual Dedicated Server running inside User Mode Linux so I think that's where this problem stems from.

I emerged quota, editted fstab and rebooted. mtab reflects the changes.

For some reason quotacheck just complains that / doesn't exist or doesn't have a quota on it. The thing with a VDS is that the hard disk "/" is not a real piece of hardware, it's just a fake device on the host server. If anyone knows an alternative to the traditional "quota" method of doing this I'd love to know :)

Code:

d11wtq root # cat /etc/mtab
/dev/discs/disc0/disc / xfs rw,noatime,quota,usrquota 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev devfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
/mirror /mirror hostfs ro 0 0
/srv/www/life-project.org /home/pilau/life-project.org none rw,bind 0 0

d11wtq root # quotacheck -vgum /
quotacheck: Mountpoint (or device) / not found.
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.


Even better, if someone know how to get quota working on a VDS I'd be over the moon :D

Thanks.
Back to top
View user's profile Send private message
d11wtq
Apprentice
Apprentice


Joined: 14 Jul 2005
Posts: 192
Location: Manchester, UK

PostPosted: Sun Jan 15, 2006 10:05 pm    Post subject: Reply with quote

Call me stupid but I did test this first :lol:

The filesystem for / shows as XFS... I tried using the package quotatool instead and it's error output was more useful. It told me that the kernel doesnt support quotas on XFS.

So I figured since this is a VDS and the hardware is fake I can probably change from XFS to EXT3 by nothing more than changing fstab. I tested it by mounting the root device with -t ext3 to /mnt/fake-disc and it worked.

So I changed fstab and rebooted... voila... quota now works :)

NOTE: Is ext3 worse than reiserfs or xfs because I've never used it? I've only ever used reiser but the UML kernel hasn't been built with support for reiserfs and I have no control over that unfortuntely. I havent decreased the security on my box here have I ?
Back to top
View user's profile Send private message
d11wtq
Apprentice
Apprentice


Joined: 14 Jul 2005
Posts: 192
Location: Manchester, UK

PostPosted: Mon Jan 16, 2006 12:06 am    Post subject: Reply with quote

Any idea how to set up so that everyone in the group "users" has a limit of say, 100MB but I can override that by giving specific users higher quotas?

I set up a user with a 1GB hard limit, then set up the group "users" with a 100MB hard limit. The 100MB is overriding the settings I made for the individual user :( Any ideas how to tackle this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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