Best way to migrate storage from one Proxmox host to another?

nick793

New Member
Apr 28, 2021
11
1
3
31
Hi everyone, hoping for some advice on this. I've never run Proxmox on a cluster before. Until now, I've run a single Proxmox server with 2 zpools: an SSD-based "rpool" zpool & an HDD-based "rust" zpool. Most of my VM zvols are stored on one or the other, but one VM (my NAS) has zvols on both.

Soon, I want to add a second server with more cores/threads and operate the pair as a cluster (no HA needed yet). To this end, I want to re-arrange my storage so the physically larger case holds my large HDD pool.

Effectively I want to go from:
Server 1: 6xSSD rpool zpool + 9xHDD rust zpool

To:
Server 1: 6xSSD rpool zpool (existing install)
Server 2: 2xSSD rpool zpool (fresh install) + 9xHDD rust zpool (from Server 1 existing install)

What would be the best way to make this migration? Is there any way to do this while preserving this VM/data?
 
1. migrate the "Nas" disk the resides on "rpool" to "rust"
2. copy the configuration files (/etc/pve/qemu-server/*) to server 2.
3. turn off server 1.
4. move the disks for "rust" into server 2.
5. import the rust pool onto server 2- zpool import -f rust
6. start your vms.

you can move the boot disk for your nas back to another pool now if you still want to. Also, remember to remove all the vm config files from server 1 as they wont work after you migrate the pool...

edit forgot a step- step 5.5 create a storage entry for the new pool. you can copy it from server 1 (look in /etc/pve/storage.cfg)
 
Last edited:
  • Like
Reactions: nick793
1. migrate the "Nas" disk the resides on "rpool" to "rust"
2. copy the configuration files (/etc/pve/qemu-server/*) to server 2.
3. turn off server 1.
4. move the disks for "rust" into server 2.
5. import the rust pool onto server 2- zpool import -f rust
6. start your vms.

you can move the boot disk for your nas back to another pool now if you still want to. Also, remember to remove all the vm config files from server 1 as they wont work after you migrate the pool...

edit forgot a step- step 5.5 create a storage entry for the new pool. you can copy it from server 1 (look in /etc/pve/storage.cfg)
Perfect, thank you!

I'll give this a shot tonight :)
 

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!