[SOLVED] LXC move disk to another container at Ceph

CvH

New Member
Oct 16, 2020
7
2
3
Germany
Hello,

I have a LXC container that includes several disks (mount points) from different ceph pools.
Now we want to move a disk to another LXC container (disk includes just files from a smb share).
So basically LXC (100) vm-100-disk-3 -> LXC (200) vm-200-disk-3.

Backup Restore is not really a option (size/timewise).

I could edit the /etc/pve/lxc/100.conf and remove the disk.
Additionally add it at 200.conf mp3: pool_hdd:vm-100-disk-3,mp=/somewhere,size=20T.
Adding a different ID-Disk to a LXC sounds rather wrong to me and it might create problems at the future.

Is there a handy way in doing it ? Search didn't find anything reasonable, or I looked for the wrong terms :)
 

Alwin

Proxmox Staff Member
Staff member
Aug 1, 2017
4,617
430
88
Adding a different ID-Disk to a LXC sounds rather wrong to me and it might create problems at the future.
Yup, it will create problems. Best also rename the image to match the VMID as well.
 

CvH

New Member
Oct 16, 2020
7
2
3
Germany
tx for pointer

just for the record, that worked for me
rbd -p my_pool_name mv vm-100-disk-3 vm-200-disk-3
 
  • Like
Reactions: Alwin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!