OpenVZ Forum


Home » General » Support » disk size becomes weird after set diskspace many times
Re: disk size becomes weird after set diskspace many times [message #51594 is a reply to message #51593] Mon, 11 August 2014 04:17 Go to previous messageGo to previous message
nethubonline is currently offline  nethubonline
Messages: 26
Registered: October 2007
Junior Member
I just tried compact / balloon discard which do not help.

[root@localhost ~]# vzctl set 101 --diskspace 20G --save
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=204013043712 new_size=193275625472
Successfully truncated balloon from 204013043712 to 193275625472 bytes
CT configuration saved to /etc/vz/conf/101.conf

[root@localhost ~]# vzctl compact 101
Trying to find free extents bigger than 0 bytes
Waiting
Call FITRIM, for minlen=33554432
Call FITRIM, for minlen=16777216
Call FITRIM, for minlen=8388608
Call FITRIM, for minlen=4194304
Call FITRIM, for minlen=2097152
Call FITRIM, for minlen=1048576
0 clusters have been relocated
[root@localhost ~]# vzctl exec 101 df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ploop12021p1 17G 821M 16G 6% /
none 370M 4.0K 370M 1% /dev
none 370M 0 370M 0% /dev/shm

[root@localhost ~]# ploop balloon discard /vz/private/101/root.hdd/DiskDescriptor.xml
Trying to find free extents bigger than 0 bytes
Waiting
Call FITRIM, for minlen=33554432
Call FITRIM, for minlen=16777216
Call FITRIM, for minlen=8388608
Call FITRIM, for minlen=4194304
Call FITRIM, for minlen=2097152
Call FITRIM, for minlen=1048576
0 clusters have been relocated
[root@localhost ~]# vzctl exec 101 df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ploop12021p1 17G 821M 16G 6% /
none 370M 4.0K 370M 1% /dev
none 370M 0 370M 0% /dev/shm


https://www.nethub.com.hk (VPS Hosting Provider in Hong Kong)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Failed ot lookup path /proc, vzctl restore not working
Next Topic: e1000e driver update Openvz/Centos6.5
Goto Forum:
  


Current Time: Wed Oct 16 08:21:26 GMT 2024

Total time taken to generate the page: 0.05010 seconds