Proxmox 1.4 beta1: migrade to shared storage?

Hallo,

how can i migrade/copy a KVM to a shared storaged?

Regards, Valle

make a backup with vzdump and restore with qmrestore. qmrestore has an option for the storage destination.

see the man pages.

Code:
man qmrestore
this is very cool feature! but it is a brand new feature pls report your results and all issues.
 
make a backup with vzdump and restore with qmrestore. qmrestore has an option for the storage destination.

see the man pages.

Code:
man qmrestore
this is very cool feature! but it is a brand new feature pls report your results and all issues.


Hi,

i am to stupid ...

Firstly i have created a backup:

Code:
vzdump --quiet --node 2 --snapshot --compress --dumpdir /backup1 107

backup created succesful. Then i used qmrestore

Code:
proxmox02:/var/lib/vz/images# qmrestore --storage pve_01_shared /backup1/vzdump-qemu-107.tgz 999
INFO: restore QemuServer backup '/backup1/vzdump-qemu-107.tgz' using ID 999
INFO: extracting 'qemu-server.conf' from archive
INFO: extracting 'vm-disk-ide0.vmdk' from archive
INFO: unable to restore 'vm-disk-ide0.vmdk' to storage 'pve_01_shared'
INFO: storage type 'lvm' does not support format 'vmdk
INFO: tar: vm-disk-ide0.vmdk: Cannot write: Broken pipe
INFO: tar: 32220: Child returned status 255
INFO: tar: Error exit delayed from previous errors
INFO: starting cleanup
ERROR: restore QemuServer backup '/backup1/vzdump-qemu-107.tgz' failed - command 'tar xf '/backup1/vzdump-qemu-107.tgz' '--to-command=/usr/sbin/qmrestore --storage pve_01_shared /backup1/vzdump-qemu-107.tgz 999 --extract'' failed with exit code 2


Must i first convert the vmdk to raw?

Regards, Valle
 
Hi,

i am to stupid ...

Firstly i have created a backup:

Code:
vzdump --quiet --node 2 --snapshot --compress --dumpdir /backup1 107
backup created succesful. Then i used qmrestore

Code:
proxmox02:/var/lib/vz/images# qmrestore --storage pve_01_shared /backup1/vzdump-qemu-107.tgz 999
INFO: restore QemuServer backup '/backup1/vzdump-qemu-107.tgz' using ID 999
INFO: extracting 'qemu-server.conf' from archive
INFO: extracting 'vm-disk-ide0.vmdk' from archive
INFO: unable to restore 'vm-disk-ide0.vmdk' to storage 'pve_01_shared'
INFO: storage type 'lvm' does not support format 'vmdk
INFO: tar: vm-disk-ide0.vmdk: Cannot write: Broken pipe
INFO: tar: 32220: Child returned status 255
INFO: tar: Error exit delayed from previous errors
INFO: starting cleanup
ERROR: restore QemuServer backup '/backup1/vzdump-qemu-107.tgz' failed - command 'tar xf '/backup1/vzdump-qemu-107.tgz' '--to-command=/usr/sbin/qmrestore --storage pve_01_shared /backup1/vzdump-qemu-107.tgz 999 --extract'' failed with exit code 2
Must i first convert the vmdk to raw?

Regards, Valle

yes.
 
make a backup with vzdump and restore with qmrestore. qmrestore has an option for the storage destination.

see the man pages.

Code:
man qmrestore
this is very cool feature! but it is a brand new feature pls report your results and all issues.

So, now i will report the results an all issues

Firstly, backup the machine, convert the container to raw, tar the machine confused me a little ;-) What is the best way to migrate all machines from vmdk/qcow2 format to raw and restore it to a shared storage?

Migrate the first machine on our test envoirment look good:

Code:
proxmox02:/backup1# qmrestore --storage pve_01_shared /backup1/vzdump-qemu-999.tgz 998
INFO: restore QemuServer backup '/backup1/vzdump-qemu-999.tgz' using ID 998
INFO: extracting 'qemu-server.conf' from archive
INFO: extracting 'vm-disk-ide0.raw' from archive
INFO:   Rounding up size to full physical extent 8.00 GB
INFO:   Logical volume "vm-998-disk-1" created
INFO: new volume ID is 'pve_01_shared:vm-998-disk-1'
INFO: restore data to '/dev/pve-i4500r/vm-998-disk-1' (8589934592 bytes)
INFO: 16777216+0 records in
INFO: 16777216+0 records out
INFO: 8589934592 bytes (8.6 GB) copied, 836.069 s, 10.3 MB/s
INFO: restore QemuServer backup '/backup1/vzdump-qemu-999.tgz' successful
proxmox02:/backup1#

Live!Migrate from Server02 to Server01 are in "realtime" with the shared storage. No breaks are on the machine.

Code:
/usr/bin/ssh -t -t -n -o BatchMode=yes 192.168.1.3 /usr/sbin/qmigrate --online 192.168.1.2 998
Sep 13 00:42:09 starting migration of VM 998 to host '192.168.1.2' 
Sep 13 00:42:09 copying disk images 
Sep 13 00:42:09 starting VM on remote host '192.168.1.2' 
Sep 13 00:42:10 starting migration tunnel 
Sep 13 00:42:10 starting online/live migration 
Sep 13 00:42:12 migration status: active 
Sep 13 00:42:20 migration status: completed 
Sep 13 00:42:20 migration speed: 102.40 MB/s 
Sep 13 00:42:21 migration finished successfuly (duration 00:00:12) 
Connection to 192.168.1.3 closed. 
VM 998 migration done

Migrate from Server01 to Server03, anything goes wrong(?).

Code:
/usr/sbin/qmigrate --online 192.168.1.4 998
Sep 13 00:48:30 starting migration of VM 998 to host '192.168.1.4'
Sep 13 00:48:30 copying disk images
Sep 13 00:48:31 starting VM on remote host '192.168.1.4'
iscsiadm: No active sessions.
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 34359672832: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 34359730176: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 4096: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 107374116864: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 107374174208: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 4096: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-5: read failed after 0 of 4096 at 0: Input/output error
/dev/dm-6: read failed after 0 of 4096 at 0: Input/output error
Sep 13 00:48:36 starting migration tunnel
Sep 13 00:48:36 starting online/live migration
Sep 13 00:48:38 migration status: active
Sep 13 00:48:47 migration status: completed
Sep 13 00:48:47 migration speed: 93.09 MB/s
Sep 13 00:48:48 migration finished successfuly (duration 00:00:18)
VM 998 migration done



Regards, Valle
 
Last edited: