vvolas
(Vvolas)
April 23, 2019, 10:14am
1
Hello,
I want to move existing containers to ceph storage pool from existing btrfs pools.
I remember before pools were local I could do this with “rename” something like this
move container1 container2 -p default_ssd
In that case driver was the same = btrfs.
Now I cant figure out how to do it. Is it even possible?
vvolas
(Vvolas)
April 23, 2019, 10:47am
2
lxc copy test3 test4 -p default_ceph
this kinda works, converts file system too, just need to re-set mac hwaddr.
Maybe there is more “elegant” solution?
stgraber
(Stéphane Graber)
April 24, 2019, 2:17am
3
lxc move test3 test3 -s ceph
assuming your ceph pool is called ceph
?
vvolas
(Vvolas)
April 24, 2019, 5:53am
4
I guess LXD LTS 3.0.3 doesnt support this?
Error: unknown shorthand flag: ‘s’ in -s
stgraber
(Stéphane Graber)
April 24, 2019, 1:09pm
5
Ah indeed, cross storage pool move of containers was introduced in a later feature release.
For 3.0.3 you’re indeed stuck with the full migration API which requires lxc copy
and is effectively working the same way it would between two servers.