Move a virtual disk from a physical disk to another

grobs

Active Member
Apr 1, 2016
56
0
26
37
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!