Massive Move

Benjiix

New Member
Mar 31, 2021
6
0
1
26
Hello, actually i have a poxmox installed on my HDD server with lot of CT, and i would like to change HDD to SSD, and move every CT on the SSD, how can make this ?

Thanks you for your answer and have a nide day !
 
Easiest way should be to create a backup of every LXC and import it. While importing you can choose where to store your "new" LXC. There you can select your new SSD.
 
hi,

if you add the SSD disk as a storage device, you should be able to move containers' volumes there.

pct move_volume <vmid> <volume> <storage>

e.g., if you added your SSD as a storage with name my_ssd and want to move a container 123's rootfs there:
pct move_volume 123 rootfs my_ssd should move it.

if you want to move all the containers rootfs, you can put this in a loop:
Code:
CTIDS=$(pct list | awk '{print $1}') # get a list of all containers
for CTID in ${CTIDS}; do pct move_volume ${CTID} rootfs my_ssd; done

if you have other mountpoints attached you'll need to specify them separately
 
Hello, so we put a new server SSD into the cluster, this server is on ZFS and the old server HDD is on LVM, i would like to migrate them but i receive this error ..

1619873322797.png

The old : 1619873358933.png

The new : 1619873371737.png

It's maybe because they don't have the same name, but it's possible to put the same name ?

Can someone tell me why i can't ?

Have a nice day !
 
Hi,
Hello, so we put a new server SSD into the cluster, this server is on ZFS and the old server HDD is on LVM, i would like to migrate them but i receive this error ..

View attachment 25683

The old : View attachment 25684

The new : View attachment 25685

It's maybe because they don't have the same name, but it's possible to put the same name ?

Can someone tell me why i can't ?

Have a nice day !
with live-migration, you should be able to select the target storage in the Web UI. Otherwise, you can use the --targetstorage option in the CLI.
 

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!