virtual disk expansion failed

Hi,

we have a problem with the expansion of a virtual disk on a guest system.

Guest system:

Ubuntu 12.10 64bit Installation was performed by using the graphical console. Virtual disk space: 10GB

Contents of fstab:

/ Was on / dev/vda1 during installation

/ dev/vda1 / ext3 errors = remount-ro 0 1

The attempt fails to expand the virtual disk to 20GB.

Updating virtual disk on / kvm / zz.domain.tld.img .................................... .............................................. .................................................. ...................... .. update failed: dd if = \ / dev \ / zero bs = 32768 count = 262144 >> \ / kvm \ / zz \ domain \ tld \ img failed:... 262 144 +0 records in 262144 +0 records out

If I go again on "Resources -> Manage Disks" it shows 20GB .

On the host in the kvm-panel, the file zz.doamain.tld.img is also displayed with 20GB.

A df on the guest is:

/ dev/vda1 10319160 1425584 8369392 15% / udev 1016552 4 1016548 1% / dev tmpfs 410300 248 410052 1% / run none 5120 0 5120 0% / run / lock none 1025748 0 1025748 0% / run / shm none 102400 0 102400 0% / run / user

This also happens if I use one of the images aou offer, e.g. Ubuntu 12.04 KVM instance with base OS.

Do you have any idea what may be causing this?

Thank you very much Thomas Witzel

Status: 
Closed (fixed)

Comments

Check if your system is out of disk space on the filesystem for the /kvm directory.

I checked. there are 32/GB free space

Try doing another expansion, this time to 21 GB. If that doesn't fail, it should also expand the filesystem to use up all 21 GB.

Same problem. Updating virtual disk on /kvm/zz.domain.tld.img .......... .. update failed : dd if=\/dev\/zero bs=32768 count=32768 >>\/kvm\/zz.domain.tld.img failed : 32768+0 records in 32768+0 records out

That is very unusual - the dd command output isn't reporting any error, but Cloudmin still thinks it has failed based on the exit status.

Does this happen for all VMs, or just this one? Also, do you have multiple host systems .. and if so, does this problem happen on other hosts?

Hallo Jamie,

i have this Problems on 2 Hosts with 3 Guests. Host 1 -> OS Ubuntu 12.10 64 bit VM1 on Host 1 -> OS Ubuntu 12.10 64 bit

Host 2 -> OS Ubuntu 12.10 64 bit Both VMs -> OS Ubuntu 12.04 = Image downloaded from "Cloudmin Settings / New System Images"

If it is necessary i can give you access for all servers. There are not productive.

looks like we have a kernel problem, dmesg gives us: snip--- [ 28.696552] vmwrite error: reg 401e value a0344000 (err 12) [ 28.696656] Pid: 1548, comm: kvm Not tainted 3.5.0-17-generic #28-Ubuntu [ 28.696658] Call Trace: [ 28.696672] [] vmwrite_error+0x2c/0x2e [kvm_intel] [ 28.696677] [] vmcs_writel+0x20/0x30 [kvm_intel] [ 28.696681] [] vmx_cpuid_update+0x79/0x170 [kvm_intel] [ 28.696708] [] kvm_vcpu_ioctl_set_cpuid2+0x91/0xa0 [kvm] [ 28.696720] [] kvm_arch_vcpu_ioctl+0xc52/0xfc0 [kvm] [ 28.696726] [] ? lazy_max_pages+0x1a/0x30 [ 28.696729] [] ? free_vmap_area_noflush+0x31/0x60 [ 28.696733] [] ? kfree+0x2c/0x110 [ 28.696738] [] ? vmx_vcpu_load+0x3e/0x1b0 [kvm_intel] [ 28.696749] [] ? kvm_arch_vcpu_load+0x57/0x1b0 [kvm] [ 28.696758] [] kvm_vcpu_ioctl+0xb9/0x610 [kvm] [ 28.696769] [] ? kvm_arch_dev_ioctl+0x6e/0x1b0 [kvm] [ 28.696773] [] do_vfs_ioctl+0x99/0x590 [ 28.696775] [] ? do_munmap+0x338/0x410 [ 28.696778] [] sys_ioctl+0x99/0xa0 [ 28.696783] [] system_call_fastpath+0x16/0x1b snap--- snip--- tom@vh4:~$ uname -r 3.5.0-17-generic snap---

? are there known issues with different kernel version. ? any idea how to solve this problem.

greets

Luigi Monaco

hi jamie,

i setup a new server today. the risizing for the vm works here fine. i will checkout the difference.

greetings tom