Since this mail is very useful for people with the same problem that i
had, i'm forwarding it here. Answered inside.
This is a forwaded msg
From: Herbert Poetzl <herbert@13thfloor.at>
To: diego torres <dtorres@coral.dnsalias.org>
Date: sábado, 07 de julio de 2007, 4:28:32
Subject: [Vserver] df -h output incorrect when using quotas
===============================================
> >> #du -sh
> >> 3,9G /home/vservers/services/
>>>> inside the guest:
>>>> # df -h
>>>> Filesystem Size Used Avail Use% Mounted on
>>>> /dev/hdv1 6.0G 407M 5.3G 8% /
>>>> none 1.0G 4.0K 1.0G 1% /tmp
>>> did you configure the start values correctly?
>> yes, at the beginning size was reported correctly, but as time passes,
>> it has been getting worse. We are talking for about a year of time.
>> Running vdlimit againt has fixed the problem:
>>
>> /usr/sbin/vdlimit --xid 50 --set space_total=6291456 --set space_used=`du -s /home/vservers/services/ | awk '{print $1}'` \
>> --set inodes_total=4000000 \
>> --set inodes_used=`ls -1aRi /home/vservers/services/ | awk '/^[0-9]+ / { print $1 }' | sort -u | wc -l` \
>> --set reserved=5 /home/vservers/services/
>>
>> Now the problem is that nowhere is stated that vdlimit has to be
>> re-run to get the size of a guest reported correctly.
>> Should it have an entry in the faq?
>no, actually it shouldn't be necessary to run it
>again, if (and only if) you do not modify the guest
>from outside (and the guest is not restarted)
>if you handle guest files from the host, then the
>accounting will get wrong ...
no, files are always and only modified from inside the host.
>>> what tools do you use (util-vserver version)?
>> util-vserver: 0.30.212; Dec 9 2006, 12:26:51
>0.30.213 should be able to recalculate the 'proper'
>amount for you (in a much better way than the script
>above)
Thanks a lot, i'll upgrade asap
===============================================
-- Saludos, diego mailto:dtorres@coral.dnsalias.org _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserverReceived on Sun Jul 8 15:04:36 2007