View previous topic :: View next topic |
Author |
Message |
d11wtq Apprentice
Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Sun Jan 15, 2006 9:46 pm Post subject: Filesystem quotas. Suggestions needed :) |
|
|
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
Thanks. |
|
Back to top |
|
|
d11wtq Apprentice
Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Sun Jan 15, 2006 10:05 pm Post subject: |
|
|
Call me stupid but I did test this first
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 |
|
|
d11wtq Apprentice
Joined: 14 Jul 2005 Posts: 192 Location: Manchester, UK
|
Posted: Mon Jan 16, 2006 12:06 am Post subject: |
|
|
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 |
|
|
|