LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   enable quotas on new vps (https://www.linuxquestions.org/questions/linux-newbie-8/enable-quotas-on-new-vps-4175491688/)

rich211a 01-18-2014 03:17 AM

enable quotas on new vps
 
hi does anyone know how to enable disk quotas on an open vz cent os? i was trying to enable disk quotas for my /home directory but do not know the procedure? here is what my vi area looks like in my ssh area >>
vi /etc/fstab - it has all 0's in there?
none /dev/pts devpts rw,gid=5,mode=620 0 0

unSpawn 01-18-2014 04:51 AM

See 'man mount', then do "/quota" and you'll find the "grpquota, noquota, quota, usrquota" mount options. 'apropos quota' for more nfo.

gdr 01-18-2014 11:14 AM

On openvz you need support from the hypervisor (parent operating system) so you need to contact your hosting company to enable it. They're so called second-level quotas.

rich211a 01-19-2014 01:40 AM

openvz how to enable 2nd level quotas
 
hi gdr how are you? well i ran - yum install quota at root - it says "already installed - nothing to do" at the root - but when i looked in my control panel ( webmin ) it shows that disk quota has not been enabled on my system? here is what it shows below from my install logs - something about the /home directory? -

my hosting provider gave me a solusvm control panel where i can re-install my operating system - i am using centos 5.9 32 bit - - the hypervisor you mention? - is this a control panel which my host uses for openvz? or what shall i ask my hosting provider to do with this hypervisor?

also what are 2nd level quotas? or how will i enable 2nd level quotas on my openvz once i get the hypervisor working?

"Quotas are not enabled on the filesystem / which contains home directories under /home and email files under /home. Quota editing has been disabled."

gdr 01-19-2014 10:51 AM

You can't do it with the tools you have.

You installed the Quota package - these are just program to manage quotas, but they need backup from the underlying operating system. Webmin correctly detected that there is none.

You need to ask your vps provider to enable it for you.

http://wiki.openvz.org/User_Guide/Ma..._for_Container <- more about 2nd level quotas

rich211a 01-19-2014 02:17 PM

openvz how to enable 2nd level quotas
 
hi gdr thanks i think it worked you were correct it has to be my hosting provider - do they go in their hypervm control panel area on their end to enable the 2nd level quotas?

gdr 01-20-2014 04:32 AM

I don't know - here at http://massivevps.net/ we do it by SSH, as described in OpenVZ wiki I linked above.

rich211a 01-20-2014 04:56 PM

hi is there a way to setup 2nd level quotas from the ssh session instead of contacting my host? or is the starting ssh command this? >> # vzctl exec 101 rpm -q quota - or this without the # ? >> vzctl exec 101 rpm -q quota - at root? or is the host the only one who can do these ssh prompts on an openvz thru the hypervisor?

http://wiki.openvz.org/User_Guide/Ma..._for_Container

gdr 01-20-2014 04:58 PM

No, it's not possible from within the VPS.

rich211a 01-20-2014 05:02 PM

openvz how to enable 2nd level quotas
 
so my host is the only one who can enable 2nd level quotas on an openvz then thru their hypervisor? correct? since i don't have access to the hypervisor? only solusvm? also what is solusvm ? i can re-install my os with this control panel though?

gdr 01-21-2014 02:58 AM

Yes, correct.

SolusVM is a web panel installed on the hypervisor but it only exposes limited features to VPS owners. If you don't find the option to enable quotas in there, then you can't do it yourself.

rich211a 01-21-2014 09:49 PM

ok thanks gdr sounds good


All times are GMT -5. The time now is 08:25 PM.