Massive Move

Benjiix

New Member
Mar 31, 2021
5
0
1
23
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 !
 

Dunuin

Famous Member
Jun 30, 2020
1,299
251
83
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.
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
3,163
364
88
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
 

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!