OpenVZ Forum


Home » General » Support » disk size becomes weird after set diskspace many times
disk size becomes weird after set diskspace many times [message #51589] Fri, 08 August 2014 05:10 Go to next message
nethubonline is currently offline  nethubonline
Messages: 26
Registered: October 2007
Junior Member
Hi all,

We just started to use ploop, and testing on "diskspace". We found that the disk size will become smaller after setting diskspace for many times.

Versions:
vzctl-4.7.2-1.x86_64
e2fsprogs-resize2fs-static-1.42.11-1.ovz.x86_64
vzquota-3.1-1.x86_64
ploop-lib-1.11-1.x86_64
vzstats-0.5.3-1.noarch
ploop-1.11-1.x86_64
vzctl-core-4.7.2-1.x86_64
vzkernel-2.6.32-042stab092.3.x86_64
Container is CentOS 6.5 x64


Below are the commands and outputs that after a new ploop container created. The initial diskspace is 50GB. You can see the first several try that setting to 20GB/30GB/40GB are successful, and then at last setting to 20GB/10GB, "Size", "Used" are not correct. Restart container won't help.

Is it bug of OpenVZ/vzctl/ploop or OS related?




[root@openvz ~]# vzctl exec 101 df -h
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 50G 813M 46G 2% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 10G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=0 new_size=42951770112
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 0 to 42951770112 bytes
No unused cluster blocks found
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 131020
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 9.3G 813M 8.0G 10% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 20G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=42951770112 new_size=32214351872
Successfully truncated balloon from 42951770112 to 32214351872 bytes
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 262092
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 20G 813M 18G 5% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 30G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=32214351872 new_size=21476933632
Successfully truncated balloon from 32214351872 to 21476933632 bytes
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 393164
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 30G 813M 27G 3% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 40G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=21476933632 new_size=10739515392
Successfully truncated balloon from 21476933632 to 10739515392 bytes
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 524236
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 40G 813M 37G 3% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 10G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=10739515392 new_size=42951770112
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 10739515392 to 42951770112 bytes
No unused cluster blocks found
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 131020
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 9.3G 813M 8.0G 10% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 100G --save && vzctl exec 101 df -h
Changing balloon size old_size=42951770112 new_size=0
Successfully truncated balloon from 42951770112 to 0 bytes
Storing /vz/private/101/root.hdd/DiskDescriptor.xml.tmp
Growing dev=/dev/ploop40700 size=104857600 sectors (new size=209715200)
resize2fs 1.42.11 (09-Jul-2014)
Filesystem at /dev/ploop40700p1 is mounted on /vz/root/101; on-line resizing required
old_desc_blocks = 4, new_desc_blocks = 7
The filesystem on /dev/ploop40700p1 is now 26213888 blocks long.

CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 99G 821M 98G 1% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 50G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=0 new_size=53689188352
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 0 to 53689188352 bytes
TRUNCATED: 1 cluster-blocks (1048576 bytes)
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 655308
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 49G 821M 46G 2% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 10G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=53689188352 new_size=96638861312
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 53689188352 to 96638861312 bytes
No unused cluster blocks found
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 131020
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 8.5G 821M 7.2G 11% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 30G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=96638861312 new_size=75164024832
Successfully truncated balloon from 96638861312 to 75164024832 bytes
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 393164
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 29G 821M 27G 3% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 50G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=75164024832 new_size=53689188352
Successfully truncated balloon from 75164024832 to 53689188352 bytes
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 655308
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 49G 821M 46G 2% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 10G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=53689188352 new_size=96638861312
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 53689188352 to 96638861312 bytes
No unused cluster blocks found
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 131020
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 8.5G 821M 7.2G 11% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 150G --save && vzctl exec 101 df -h
Changing balloon size old_size=96638861312 new_size=0
Successfully truncated balloon from 96638861312 to 0 bytes
Storing /vz/private/101/root.hdd/DiskDescriptor.xml.tmp
Growing dev=/dev/ploop40700 size=209715200 sectors (new size=314572800)
resize2fs 1.42.11 (09-Jul-2014)
Filesystem at /dev/ploop40700p1 is mounted on /vz/root/101; on-line resizing required
old_desc_blocks = 7, new_desc_blocks = 10
The filesystem on /dev/ploop40700p1 is now 39321088 blocks long.

CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 148G 821M 147G 1% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 20G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=0 new_size=139588534272
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 0 to 139588534272 bytes
TRUNCATED: 3 cluster-blocks (3145728 bytes)
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 262092
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 18G 821M 16G 5% /
none 512M 4.0K 512M 1% /dev
none 512M 0 512M 0% /dev/shm

[root@openvz ~]# vzctl set 101 --diskspace 10G --save && vzctl exec 101 df -h
dumpe2fs 1.41.12 (17-May-2010)
Changing balloon size old_size=139588534272 new_size=150325952512
Opening delta /vz/private/101/root.hdd/root.hdd
Successfully inflated balloon from 139588534272 to 150325952512 bytes
No unused cluster blocks found
tune2fs 1.41.12 (17-May-2010)
Setting reserved blocks count to 131020
CT configuration saved to /etc/vz/conf/101.conf
Filesystem Size Used Avail Use% Mounted on
/dev/ploop40700p1 7.7G 821M 6.4G 12% /
none 512M 4.0K 512M 1
...



https://www.nethub.com.hk (VPS Hosting Provider in Hong Kong)
Re: disk size becomes weird after set diskspace many times [message #51591 is a reply to message #51589] Fri, 08 August 2014 07:38 Go to previous messageGo to next message
nethubonline is currently offline  nethubonline
Messages: 26
Registered: October 2007
Junior Member
Just tested with most updated version of ploop and the problem still exists


Versions:
ploop-lib-1.12-1.x86_64
vzquota-3.1-1.x86_64
vzstats-0.5.3-1.noarch
vzctl-core-4.7.2-1.x86_64
vzctl-4.7.2-1.x86_64
e2fsprogs-resize2fs-static-1.42.11-1.ovz.x86_64
vzkernel-2.6.32-042stab092.3.x86_64
ploop-1.12-1.x86_64


https://www.nethub.com.hk (VPS Hosting Provider in Hong Kong)
Re: disk size becomes weird after set diskspace many times [message #51593 is a reply to message #51589] Fri, 08 August 2014 23:48 Go to previous messageGo to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
Did you try running compact?

vzctl compact VEID


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
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 next 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)
Re: disk size becomes weird after set diskspace many times [message #51597 is a reply to message #51594] Tue, 12 August 2014 03:33 Go to previous messageGo to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
Yeah, it was a long shot. I suggest you open a report on the bugzilla in the ploop section. Include all the details. It'll usually take a couple weeks to get a response but they are pretty helpful.

http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Re: disk size becomes weird after set diskspace many times [message #51598 is a reply to message #51597] Tue, 12 August 2014 08:02 Go to previous message
nethubonline is currently offline  nethubonline
Messages: 26
Registered: October 2007
Junior Member
Thanks for your suggestion. Surprised

Bug 3044 Submitted
https://bugzilla.openvz.org/show_bug.cgi?id=3044


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


Current Time: Tue Apr 23 12:09:41 GMT 2024

Total time taken to generate the page: 0.01253 seconds