[one-users] wrong ext4 size reported after qemu-img resize

Antanas Masevicius antanas.masevicius at ntt.lt
Tue Jun 3 00:01:34 PDT 2014


Hello,

not sure if its relative to opennebula in some way, bet i got wired
situation. After expanding raw images with 'qemu-img resize' images
resized properly and they file size looks good, but total free space of
/var/lib/one/datastores did not change. That is:

xen0# ls -lh /var/lib/one/datastores/1
total 44G
-rw-r--r-- 1 oneadmin oneadmin 31G Jun 3 09:56
35f010b48a586f6bb6bf1b438de82472
-rw-r--r-- 1 oneadmin oneadmin 8.1G Apr 23 14:07
5e073e5edebc656bdf5b654be65fb16e
-rw-r--r-- 1 oneadmin oneadmin 10G Jun 2 16:23
5e648bcd9983aa57135387977fdcdb47
-rw-r--r-- 1 oneadmin oneadmin 624 Mar 19 08:49
8a51d463f6c1e056f1606a07611f1c0b
-rw-r--r-- 1 oneadmin oneadmin 9.1G Jun 2 16:23
b7e7e8927d661345e75a30e88fc10203
-rw-r--r-- 1 oneadmin oneadmin 31G Jun 3 09:56
cbc58f159e541be882b3fed619144fe7

xen0# du -hs /var/lib/one/datastores/1
44G /var/lib/one/datastores/1

Thus, total should be around 89G, not 44G. /var/lib/one/datastores is on
separate ext4 file system.
Even tried rebooting hw node. Free space didnt change.

Any suggestions are welcome.

best regards,

-- 
Antanas Masevičius
Technikos direktorius
UAB "Nacionalinis telekomunikaciju tinklas"
Tel.  +370 5 2056000
Tel.  +370 700 00031 (tiesioginis)
Fax.  +370 700 00034
el.p: antanas.masevicius at ntt.lt
www.ntt.lt
www.spykas.com



More information about the Users mailing list