if you look at lxc move --help there is an option for storage pool.

I could imagine something along

    lxc move local:[source-container-name] local:[destination-container-name] -s [storage-pool]

may move a container amont sotrage pools

To test this I'd try with 'copy' (which also has the -s option) probably at first

disclaimer: I never did this and just look at the help and draw conclusions from it here



On 5/3/19 9:17 PM, Carmelo Ingrao wrote:
Hello :)

I want to move containers from the default storage pool (the one created when I ran lxd init) to another pool I juste created on a new hard drive :


carmelo@infratest2:~$ lxc storage list
+---------+-------------+--------+--------------------------------------+---------+
|  NAME   | DESCRIPTION | DRIVER | SOURCE                | USED BY |
+---------+-------------+--------+--------------------------------------+---------+
| default |             | btrfs  | /var/lib/lxd/disks/default.img       | 16      |
+---------+-------------+--------+--------------------------------------+---------+
| sdb1    |             | btrfs  | 4349dde2-6aae-4575-a7f2-e6533dbfd007 | 0       |
+---------+-------------+--------+--------------------------------------+---------+

Can you help to move my containers please ?

thanks !

Carmelo

_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

--
Gunnar Wagner | Yongfeng Village Group 12 #5, Pujiang Town, Minhang District, 201112 Shanghai, P.R. CHINA
mob +86.159.0094.1702 | skype: professorgunrad | wechat: 15900941702
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to