Moving VM Storage

Just a brief note to remind myself next time that this is very easy and just 3 commands…

All my VMs run on Logical Volumes (LV) created on the VM host. Every once in a while I want to move the storage for a VM from a particular Volume Group (VG) to another and doing so is very straightforward:

Create a new LV in the destination VG

lvcreate -L <requied size> -n <lv name> <path to vg>

Copy the original LV to the new LV

dd if=<path to original lv> of=<path to new lv> bs=4k

Note the use of 4k blocksize acheter cialis 20mg en france. The default is 512 bytes.

Update the VM configuration

virsh edit <vm name>

Leave a Reply

Your email address will not be published. Required fields are marked *