Score:0

libvirt live storage migration but keep vm on same host

lr flag

Is libvirt capable of doing a live storage migration but keep the VM on the same host?

I have two NFS Network filesystem pools on one host. I would like to live migrate the underlying qcow2 disk files from one pool to the other.

I am unable to find any related documentation regarding live storage migration only. All examples and documentation seem to require a live VM migration at the same time.

Score:0
vn flag

Don't think of this as related to live migration. This is really just storage backing file replacement. It can be done with the virsh blockcopy command. This can copy contents of an image to an arbitrary new location and live update QEMU to point to the new location at the right point in time. You're not limited to qcow2 -> qcow2, you can do fancy things qcow2 -> rbd, or qcow2 -> lvm, etc. This command can do other things too, such as flattening a chain of qcow2 files, or taking snapshots for backup purposes.

The main problem is that docs for this are pretty sparse, so its hard for people to understand its power. This old blog post might get you going in the right direction though https://kashyapc.wordpress.com/2014/07/06/live-disk-migration-with-libvirt-blockcopy/ Experiment with a non-important VM first :-)

eKKiM avatar
lr flag
This is indeed what i am looking for. The reason i was unable to find any related information because i was stuck on searching for a migration instead of block copy.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.