Solved: How do you move VM's to other locations on local storage

greavette

Renowned Member
Apr 13, 2012
163
9
83
Hello,

I have 3 Raid arrays on my server. We don't use network attached storage for our VM's...we save all VM's locally.

I have created a VM (KVM) on Raid 2 for example. Turns out this is not the right location. How can I move this to my Raid 1? Would I do a backup and restore to the location I need it to live then remove the files on the original location?

Thank you.
 
Last edited:
Re: How do you move VM's to other locations on local storage

Hello,

I have 3 Raid arrays on my server. We don't use network attached storage for our VM's...we save all VM's locally.
Hi,
you should think about shared storage - thereby you will have much more fun.
I have created a VM (KVM) on Raid 2 for example. Turns out this is not the right location. How can I move this to my Raid 1? Would I do a backup and restore to the location I need it to live then remove the files on the original location?

Thank you.
The official way is to use backup and restore (with a new VMID and other storage). But you can simply stop the VM, move the rawfile, change the config (e.g. "virtio0: raid2:111/vm-111-disk-1.raw" to "virtio0: raid1:111/vm-111-disk-1.raw)" and start again.
Naming and so on depends on your storage-definition (/etc/pve/storage.cfg) and VMID.

Udo
 
Re: How do you move VM's to other locations on local storage

Network attached storage would be our next big purchase...but we'll have to wait a bit before I can get the okay for that purchase.

I'll give the backup- restore a try.

Thank you.
 
Re: How do you move VM's to other locations on local storage

Looks like it worked. The only thing left behind is the folder name for 101 (in images). Nicely done and easy too. Thank you.