[Users] Skipping quota at start and doing it later?

Matt Ayres matta at tektonic.net
Mon May 12 10:50:09 EDT 2008


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.


More information about the Users mailing list