Replace only root disk for LXC

rwanito

Member
May 25, 2021
14
0
6
25
Hello,

I would to know if it's possible to update only the root disk for LXC container ?
The perfect way for me is to be able to use only tools like ansible proxmox or the proxmox api.

The first deployment can be done easily with mount points.
But, when I want to update my rootfs, it's very tricky to do it the most manually way possible.

I'm searching for a very flexible way to keep alive my data in mount point while replacing the root disk by a new root disk.

Thanks for your work !
 
Hi!
I update this.

I know, it's possible to manually keep the file /etc/pve/lxc..., recreate the CT and replace the new one by the old one.

But, is there a native way ?
Like docker, simply change the image and keep the volume.

Thanks !
 
Hi,
no, this is not possible without manual renaming. There will be a disk reassign feature at some point in the future (you could use that to re-assign the mountpoint from one container to the other), but other settings in the configuration would still need to be copied.

EDIT: update link to more recent version
 
Last edited:
  • Like
Reactions: rwanito

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!