proxmox - migrace

LXC

online / live migrace (aktualne nefunguje)

root@pve3:~# pct migrate 302 pve2 -online
2020-03-29 14:37:09 ERROR: migration aborted (duration 00:00:00): lxc live migration is currently not implemented
migration aborted

offline migrace (pred migraci vypnout kontejner a po migraci pak zase manualne nastartovat)

root@pve2:~# pct migrate 302 pve3
2020-03-29 14:21:19 starting migration of CT 302 to node 'pve3' (x.x.x.x)
2020-03-29 14:21:19 found local volume 'vps:subvol-302-disk-0' (in current VM config)
full send of tank/vps/subvol-302-disk-0@__migration__ estimated size is 1.45G
total estimated size is 1.45G
TIME SENT SNAPSHOT tank/vps/subvol-302-disk-0@__migration__
14:21:33 286K tank/vps/subvol-302-disk-0@__migration__
...
14:22:41 1.43G tank/vps/subvol-302-disk-0@__migration__
14:22:42 1.43G tank/vps/subvol-302-disk-0@__migration__
14:22:43 1.46G tank/vps/subvol-302-disk-0@__migration__
2020-03-29 14:22:52 # /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve3' root@x.x.x.x pvesr set-state 302 \''{}'\'
2020-03-29 14:23:14 start final cleanup
2020-03-29 14:23:15 migration finished successfully (duration 00:01:56)