Move LXC from zfs to ceph storage

past

Member
Jun 4, 2010
20
1
23
Moscow, Russia, Russia
Hello!
I have made one host installation with few LXC containers on top of ZFS storage. Now i have add two more hosts with ceph on it.
Is it possible to move LXC from ZFS toceph with minimum downtime?

I'm getting:
Code:
()
Task viewer: CT 106 - Migrate
Output
Status
Stop
Jul 27 19:55:39 starting migration of CT 106 to node 'node1' (192.168.4.1)
Jul 27 19:55:39 found local volume 'pvedata:subvol-106-disk-1' (in current VM config)
send from @ to rpool/pvedata/subvol-106-disk-1@__migration__ estimated size is 30.3G
total estimated size is 30.3G
TIME        SENT   SNAPSHOT
cannot open 'rpool/pvedata/subvol-106-disk-1': dataset does not exist
cannot receive new filesystem stream: dataset does not exist
warning: cannot send 'rpool/pvedata/subvol-106-disk-1@__migration__': Broken pipe
Jul 27 19:55:42 ERROR: command 'set -o pipefail && zfs send -Rpv rpool/pvedata/subvol-106-disk-1@__migration__ | ssh root@192.168.4.1 zfs recv rpool/pvedata/subvol-106-disk-1' failed: exit code 1
Jul 27 19:55:42 aborting phase 1 - cleanup resources
Jul 27 19:55:42 ERROR: found stale volume copy 'pvedata:subvol-106-disk-1' on node 'node1'
Jul 27 19:55:42 start final cleanup
Jul 27 19:55:42 ERROR: migration aborted (duration 00:00:03): command 'set -o pipefail && zfs send -Rpv rpool/pvedata/subvol-106-disk-1@__migration__ | ssh root@192.168.4.1 zfs recv rpool/pvedata/subvol-106-disk-1' failed: exit code 1
TASK ERROR: migration aborted
 
No, there is no "Move Disk" functionality for LXC containers (yet). A simple backup/restore works though, and you can select the target storage when restoring. You could backup the old container on ZFS and leave it running while restoring on Ceph, then shut down the old one, "pct mount" both containers and sync the delta using rsync to minimize downtime.
 

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!