Move a virtual disk from a physical disk to another

grobs

Active Member
Apr 1, 2016
56
0
26
38
France
Hi,

Here is my current configuration:
  • 2 x 480Go SSD - RAID 1
    • /dev/md1 (20Go) mounted on "/" for debian/proxmox install
    • /dev/md5 (460Go) -> /dev/mapper/pve-data (LVM) mounted on /var/lib/vz for containers
  • 2 x 4To HDD - RAID 1
    • /dev/md2 (4To) -> /dev/mapper/vg1-dataslow (LVM) mounted on /var/lib/vz/images-slowstorage
Currenty, all my containers are located on /var/lib/vz/images/ (/dev/md5) but I want to migrate some of them to /var/lib/vz/images-slowstorage/.

What is the best way to migrate my container's virtual disks from /var/lib/vz/images/ to /var/lib/vz/images-slowstorage/?

Regards
 
1) Add the new storage
2a) If you only want to use the GUI and a very, very simple procedure: backup & restore
2b) Otherwise you can move the container files (or are they thin-provisioned lvm volumes?) to the other storage and change the path inside the container configuration file