canonical / lxd

Powerful system container and virtual machine manager
https://canonical.com/lxd
GNU Affero General Public License v3.0
4.32k stars 926 forks source link

Can older versions of lxd migrate containers in different storage pools? #11707

Closed ma3252788 closed 1 year ago

ma3252788 commented 1 year ago

Required information

Issue description

How to migrate containers on the old version of lxd? My containers are all in the lxd-zfs storage pool, but I have added a new storage pool my-zfs. How do I copy a container from lxd-zfs into my-zfs?

Because my lxd version is older, 3.0.3, there is no -s option in lxc copy or lxc move

Because it is a production environment, I can't upgrade my lxd version. Is there any other way to achieve it?

Steps to reproduce

  1. Step one
  2. Step two
  3. Step three

Information to attach

stgraber commented 1 year ago

Support requests should go to https://discuss.linuxcontainers.org

In this case, the server-side support for cross-pool migration came with LXD 4.x, so that's missing in your 3.0.3 installation. You may still be able to do it through lxc copy by making use of a profile defining the root device to be in a different storage pool,.