OpenVZ Forum


Home » Mailing lists » Users » Skipping quota at start and doing it later?
Re: Skipping quota at start and doing it later? [message #30110 is a reply to message #30108] Mon, 12 May 2008 14:50 Go to previous messageGo to previous message
TheWiseOne is currently offline  TheWiseOne
Messages: 66
Registered: September 2005
Location: Pennsylvania
Member
Gregor Mosheh wrote:
> Matt Ayres wrote:
>> All you have to do is set VZFASTBOOT=yes in /etc/vz/vz.conf and VPS's 
>> will be started without quota and then will be restarted to calculate 
>> the quota after all have been started.
>
> Interesting. I saw FASTBOOT in the /etc/init.d/vz script and that's 
> not what I saw. I'll give it a try, though. Thanks for the note.
>
Which version of the vzctl RPM do you have installed?  On my 
vzctl-3.0.22-1 I see the following in /etc/init.d/vz:

                if [ "x${VZFASTBOOT}" = "xyes" -a "x${DISK_QUOTA}" = 
"xyes" ];
                then
                        $VZQUOTA stat ${veid} >/dev/null 2>&1
                        if [ $? -eq 6 ]; then
                                if $VZQUOTA show ${veid} 2>&1 | grep 
"vzquota : (warning) Quota is running" >/dev/null 2>&1; then
                                        $VZQUOTA on ${veid} --nocheck 
 >/dev/null 2>&1
                                        need_restart="${need_restart} 
${veid}"
                                fi
                        fi
                fi


There is further code down to process the need_restart VPS's.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: linux vlan + ipv6 tunnel
Next Topic: 2.6.24-ovz004 kernel BUG at net/8021q/vlan.c:182 with 'modprobe -r 8021q'
Goto Forum:
  


Current Time: Tue Sep 17 09:22:45 GMT 2024

Total time taken to generate the page: 0.06959 seconds