Move partitions after backup on lxc

libussa

New Member
Sep 17, 2016
5
0
1
Hello, I'm moving server soon. I'm currently running 3 LXC containers. All have separated / and /home partitions, mounted under /var/lib/vz (everything is on a RAID of 2 HDD)
On the new server, I have 1 SSD, and a lvm of 2 HDD. What I want to do is:
- put the 3 / partitions on the SSD
- put the 3 /home partitions on the HDDs

Is it possible? Can I do it at the time of restore? Can I do it after?

Thank you!
 
You don't seem to have a lvm-thin pool on your SSD. I mention this because without this, you won't be able to backup your containers without downtime because snapshot mode in backup is only possible when your container rootfs is stored this way. If you somehow get the lvm-thin pool on your SSD, you can even restore from the webgui a backup (of course you need to create a lvm-thin storage for containers previously). This way, your rootfs will be on your SSD, and you can can create mount points wherever you want.
 
You don't seem to have a lvm-thin pool on your SSD. I mention this because without this, you won't be able to backup your containers without downtime because snapshot mode in backup is only possible when your container rootfs is stored this way. If you somehow get the lvm-thin pool on your SSD, you can even restore from the webgui a backup (of course you need to create a lvm-thin storage for containers previously). This way, your rootfs will be on your SSD, and you can can create mount points wherever you want.

Thank you for the answer. The new server is not up yet, so I can do what I need to. I'll be using this https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Jessie . Is the thin pool something I need to do during the initial partitioning? The host will also be on the SSD, is that a problem?
 
In partition terms, you just need to provide a partition on the SSD for lvm as usual, i.e., don't need to do anything different. Then, look in the docs about creating a lvm-thin pool (and a lvm-thin storage in proxmox linked to that pool for proxmox to be aware of the pool).
 

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!