ZFS Local storage migration

Jero

Member
May 20, 2016
33
2
8
42
Hi Guys,

Is there some sort of zfs local storage migration tool?

I have 2 zfs pools as datastore; evopool and wdpool.

My LXC containers are all installed on the evopool like: "evopool/subvol-102-disk-1", ...

If i want to move the vm disks to the new wdpool i need to take a full backup and restore them back to the new pool.

But its all ZFS here, so the logical way would be:

- pct stop 102
- zfs snapshot evopool/subvol-102-disk-1@send
- zfs send evopool/subvol-102-disk-1@send | zfs receive -F wdpool/subvol-102-disk-1
- zfs destroy wdpool/subvol-102-disk-1@send
- edit /etc/pve/lxc/102.conf > change rootfs: EVOPOOL:subvol-102-disk-1,size=8G to rootfs: wdpool:subvol-102-disk-1,size=8G
- pct start 102

it would be awesome if there was GUI integration!
 
there is no such option for a lxc container, or i am i missing something?
not yet. you can manually send/receive the disks and then edit the config files (while the containers are not running)
 

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!