ZFS Local storage migration

Jero

Member
May 20, 2016
33
2
8
44
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)