CLUSTER & sharing: How do I move (migrate) a VM to a different storage than "local"

dominix

Renowned Member
Jan 10, 2012
52
4
73
GMT +1
I have an experimental cluster of 3 nodes.
they all use a local storage (/var/lib/vz) AND a nfs storage (named SHARED)
I would like to move a VM from node1:local:/VMID to node2:SHARED:/VMID
how is it possible ? (there is no storage destination !)
I am able to move it when shuted down but I have to manualy move files and adapt /etc/pve/nodes/node<X>/qemu-server/<VMID>.conf
is it possible to move it one-shot.
when th VM is already on SHARED: if I move it to another node it place it on local: instead of staying on SHARED ...
is it possible to stay on SHARED ?

other question (same spirit)
could I share the local storage on each machine over nfs, so I could run on node1 a machine located on node3:local: ?
(I know it could be a bad Idea, but it not a recomendation, just a test to see how this works).

How do I do a migration from CLI ?

what exactly mean the option [shared] on the storage définition, what does it do if I check it up on a local storage ? .

thank you all for your time to enlight me, and happy chrismast hollidays.
 
Re: CLUSTER & sharing: How do I move (migrate) a VM to a different storage than "loca

no idea ? anyone ?
 
Re: CLUSTER & sharing: How do I move (migrate) a VM to a different storage than "loca

use the backup/restore feature :)
 
Re: CLUSTER & sharing: How do I move (migrate) a VM to a different storage than "loca

yes it works, that's what I've done, but it's less interesting than migrate. :D
I have also STOP VM, manualy mv /varliv/vz/image/106 to SHARED, then edit /etc/pve/nodes/proxmox30/qemu-server/106.conf "ide0: local -> SHARED" then start
It works too.

is there documentation on /etc/pve/storage.cfg ?
is "dir: local" mandatory ?

thanks for your time.
 
Re: CLUSTER & sharing: How do I move (migrate) a VM to a different storage than "loca

yes it works, that's what I've done, but it's less interesting than migrate. :D
I have also STOP VM, manualy mv /varliv/vz/image/106 to SHARED, then edit /etc/pve/nodes/proxmox30/qemu-server/106.conf "ide0: local -> SHARED" then start
It works too.

is there documentation on /etc/pve/storage.cfg ?
is "dir: local" mandatory ?

thanks for your time.
Hi,
see here: http://pve.proxmox.com/wiki/Storage_Model

About live storage migration - some people whish this function but AFAIK is the base function now implemented inside kvm... and not on the roadmap yet.

Udo