I do not detect the user quota. I moved the / home to / data / home

14 posts / 0 new
Last post
#1 Wed, 10/20/2010 - 15:32
al-serv

I do not detect the user quota. I moved the / home to / data / home

Good afternoon! Virtualmin use a few months ago and at first I worked all right! I've added a server girders heartbeat and I had to move the entire /home to /data /home without problems, the only problem I have is that now the quota does not work for me!

I get the following error:

Space limits are not enabled on the filesystem /home contains the base directory /data. The issue of limits of space-based directories has been disabled.

I have enabled on the /data the quota, what I did when enabling those in the home and if I go to webmin, in the section on quota if the users see and tells me the quota they have, but since there is no way .. Virtualmin ..

there any way to define the quota Virtualmin to look are in /data ????? is in a file you can force?? and now my users can not see their quotas and it scares me that they can overcome these quota!

Thanks in advance!

Fri, 02/04/2011 - 16:25
haydent

i would like to know this too, how change virtualmin quota module to check / not /home

Fri, 02/04/2011 - 17:22
andreychek

Howdy,

You can configure where quotas are enabled by going to Webmin -> System -> Disk Quotas. You can enable or disable them for any filesystem that's mounted on your server.

-Eric

Fri, 02/04/2011 - 17:28
haydent

firstly thanks for the reply. secondly i have allready had quotas enable for / , my only partition (VPS)

and in that webmin quotas page there doesnt seem to be any mention of /home

but when i go virtualmin->recheck config i get:

"The module could not find the mount point for your home directories filesystem /home. Quotas editing has been disabled."

from what ive read so far its looking for a seperate /home mount point (partition) wihch i dont/cant have.

Fri, 02/04/2011 - 17:45
andreychek

Howdy,

What is the output of the command "mount" on your server?

-Eric

Fri, 02/04/2011 - 17:58
haydent

vps:~# mount

/dev/vzfs on / type reiserfs (rw,usrquota,grpquota)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

tmpfs on /lib/init/rw type tmpfs (rw,nosuid)

tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

devpts on /dev/pts type devpts (rw,nosuid,noexec)

Fri, 02/04/2011 - 18:15
andreychek

Ah, is that an OpenVZ server? Quotas have been known to be a bit troublesome on it. Further, it looks like you're using a ReiserFS filesystem, which also may not work out of the box even on a non-OpenVZ server :-)

I'm not sure that you'll be able to get quotas working on that setup... you may need to simply disable them, in System Settings -> Virtualmin Configuration, and set "Set quotas for domain and mail users" to No.

-Eric

Fri, 02/04/2011 - 19:05
haydent

think its a Virtuozzo container.

Fri, 02/04/2011 - 19:07
haydent

[edit]

Fri, 02/04/2011 - 19:50
andreychek

Well, Virtuozzo is based on OpenVZ.

Some folks seem to be able to get that working, and others seem to have a crazy amount of problems getting qutoas working in that environment.

One thing you could try though is to go into Webmin -> System -> Disk Quotas, disable the quotas on your filesystem, then re-enable them. Afterwards, are you able to run the Re-check Config?

-Eric

Fri, 02/04/2011 - 19:56
haydent

when trying to turn off i get this :

quotaoff: Cannot find quota file on / [/dev/vzfs] to turn quotas on/off.

Sat, 02/05/2011 - 14:59
haydent

after a reboot quotas appear to be working in webmin. thee is a list or all users and groups and ive assigned them limits which are working.

no it seem my only problem is getting virtualmin to get over the fact that i dont have /home on a seperate partition...

any suggestions ??

Sat, 02/05/2011 - 15:10
andreychek

Well, Virtualmin shouldn't care how your partitions are setup. In fact, most users (including myself) use a setup similar to yours -- only one partition, the main / partition.

If you're getting that message, it means that Virtualmin doesn't think quotas are working for whatever partition contains /home (which, in your case, is the / partition).

One thing you might try to verify quotas are working as expected is to go to the command line, and run "quota -v USERNAME". Upon doing that, what output do you receive? Do you see the correct quota info?

-Eric

Sat, 02/05/2011 - 15:17
haydent

thankyou very much for the help !

here is that test

vps:~# quota -v hthring Disk quotas for user hthring (uid 1000): Filesystem blocks quota limit grace files quota limit grace /dev/vzfs 248232 1000000 2000000 9966 0 0 vps:~#

but if i try turning quotas off in webmin i get:

quotaoff: quotactl on /dev/vzfs [/]: Invalid argument

(it is executing quotaoff -u / ) same result doing so at prompt

so maybe all is not right yet.

Topic locked