Hi all,
I have a very big problem and I'have urgently to solve it before monday morning. I have (had XD) a vm (WIN2008) with two disks and I had a mistake because I convert it to template..I mistake on click I don't know why.
So, the problem is that I cannot reconvert to vm this machine...if clone the template the error is that:
-----------------------------------------------------------------------------
create full clone of drive ide0 (lun3:vm-303-disk-2)
Logical volume "vm-289-disk-1" created
transferred: 0 bytes remaining: 107374182400 bytes total: 107374182400 bytes progression: 0.00 %
qemu-img: output file is smaller than input file
Logical volume "vm-289-disk-1" successfully removed
TASK ERROR: clone failed: copy failed: command '/usr/bin/qemu-img convert -t writeback -p -n -f raw -O raw /dev/lun3/vm-303-disk-2 /dev/lun3/vm-289-disk-1' failed: exit code 1
-----------------------------------------------------------------------------
The system is with a 4 nodes cluster with iscsi LUNs on a synology san with multipath and is ok.
This VM had two disk one of 110 Gb and one of 150Gbb.
Ther first problem I had is when a convert to template and the disk-1 became UNUSED DISK..so I check under /dev/mapper/ and I see a logical volume of 150Gb that refer to thath machine vm-303-disk-1 so reactivate it with lvchange and I change the vm.conf like that:
-----------------------------------------------------------------------------
cat 303.conf
bootdisk: ide0
cores: 2
ide0: lun3:vm-303-disk-2,size=110G
ide1: lun3:vm-303-disk-1,size=150G --->add this
ide2: none,media=cdrom
memory: 8190
name: rfsges01
net0: e1000=C2:F5:C1:71F:6B,bridge=vmbr0,tag=101
numa: 0
ostype: win8
smbios1: uuid=84bad39c-a406-4c0c-8647-4db409565f56
sockets: 1
template: 1
-----------------------------------------------------------------------------
so proxmox see it now again like disk1.
I don't remeber what is the os disk...so this is one problem..
I do now this command to copy the disk on a share:
qemu-img convert -f raw -O qcow2 /dev/lun3/vm-303-disk-2 /mnt/stock/vm-303-disk-2.qcow2
and at the moment is about 60Gb on 100GB copy (is realistic)..the first disk i convert to qcow2 (disk-1) is only 8Gb so I hope is the second hard drive for data..
I almost feel bad for this error and don't know how to repair that VM before monday.
Thanks in advance
Emanuele
I have a very big problem and I'have urgently to solve it before monday morning. I have (had XD) a vm (WIN2008) with two disks and I had a mistake because I convert it to template..I mistake on click I don't know why.
So, the problem is that I cannot reconvert to vm this machine...if clone the template the error is that:
-----------------------------------------------------------------------------
create full clone of drive ide0 (lun3:vm-303-disk-2)
Logical volume "vm-289-disk-1" created
transferred: 0 bytes remaining: 107374182400 bytes total: 107374182400 bytes progression: 0.00 %
qemu-img: output file is smaller than input file
Logical volume "vm-289-disk-1" successfully removed
TASK ERROR: clone failed: copy failed: command '/usr/bin/qemu-img convert -t writeback -p -n -f raw -O raw /dev/lun3/vm-303-disk-2 /dev/lun3/vm-289-disk-1' failed: exit code 1
-----------------------------------------------------------------------------
The system is with a 4 nodes cluster with iscsi LUNs on a synology san with multipath and is ok.
This VM had two disk one of 110 Gb and one of 150Gbb.
Ther first problem I had is when a convert to template and the disk-1 became UNUSED DISK..so I check under /dev/mapper/ and I see a logical volume of 150Gb that refer to thath machine vm-303-disk-1 so reactivate it with lvchange and I change the vm.conf like that:
-----------------------------------------------------------------------------
cat 303.conf
bootdisk: ide0
cores: 2
ide0: lun3:vm-303-disk-2,size=110G
ide1: lun3:vm-303-disk-1,size=150G --->add this
ide2: none,media=cdrom
memory: 8190
name: rfsges01
net0: e1000=C2:F5:C1:71F:6B,bridge=vmbr0,tag=101
numa: 0
ostype: win8
smbios1: uuid=84bad39c-a406-4c0c-8647-4db409565f56
sockets: 1
template: 1
-----------------------------------------------------------------------------
so proxmox see it now again like disk1.
I don't remeber what is the os disk...so this is one problem..
I do now this command to copy the disk on a share:
qemu-img convert -f raw -O qcow2 /dev/lun3/vm-303-disk-2 /mnt/stock/vm-303-disk-2.qcow2
and at the moment is about 60Gb on 100GB copy (is realistic)..the first disk i convert to qcow2 (disk-1) is only 8Gb so I hope is the second hard drive for data..
I almost feel bad for this error and don't know how to repair that VM before monday.
Thanks in advance
Emanuele