Page 1 of 1

Alternative to "quota" for user FS quotas

Posted: Sun Jan 15, 2006 3:24 pm
by Chris Corbyn
I'm trying to set up quotas for users on my VDS. The standard method is to use the quota package and apply usrquota option in fstab. I've done this and /etc/mtab reflects the changes but for some reaosn quota just refuses to find the drive:

Code: Select all

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

d11wtq root # quotacheck -vgum /
quotacheck: Mountpoint (or device) / not found.
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
d11wtq root #
I'm almost certain it's because the VDS runs inside UML so I ask this... Is there an alternative approach to setting up filesystem quotas for my users? :)

Posted: Sun Jan 15, 2006 3:38 pm
by Buddha443556
Did you remount the partition? Or reboot?

Code: Select all

mount -o remount /partition

Posted: Sun Jan 15, 2006 4:15 pm
by Chris Corbyn
Buddha443556 wrote:Did you remount the partition? Or reboot?

Code: Select all

mount -o remount /partition
I tried a remount first and I got the same results but given that it's a VDS server and I only have one drive ( / ) I then tried a reboot since remounting / in a running system isn't ideal in any case :)

Turns out that XFS quota supported wasn't built into the UML kernel on the host so I changed mtab to give the partition a EXT3 FS. I know that sounds crazy, but because it's not a *real* disc and it's just fake hardware created by the UML server you can do that. So I'll just stop blabbering and say that after a reboot using ext3 it now works :)

Thanks dude :)

Posted: Sun Jan 15, 2006 4:26 pm
by Buddha443556
d11wtq wrote:Turns out that XFS quota supported wasn't built into the UML kernel on the host so I changed mtab to give the partition a EXT3 FS. I know that sounds crazy, but because it's not a *real* disc and it's just fake hardware created by the UML server you can do that. So I'll just stop blabbering and say that after a reboot using ext3 it now works :)
Wow, UML sure made that easy! 8O

Posted: Sun Jan 15, 2006 4:57 pm
by Chris Corbyn
Buddha443556 wrote:
d11wtq wrote:Turns out that XFS quota supported wasn't built into the UML kernel on the host so I changed mtab to give the partition a EXT3 FS. I know that sounds crazy, but because it's not a *real* disc and it's just fake hardware created by the UML server you can do that. So I'll just stop blabbering and say that after a reboot using ext3 it now works :)
Wow, UML sure made that easy! 8O
Did I type mtab? :lol: That was a typo I meant fstab but anyway.

Yep :)

I've also just realised that there was little point changing to filesystem type so I may change back. I can just specify the quota format with the -F flag on both quotacheck and quotaon. I'm not sure which is the better option myself.