<div dir="ltr">I do the same thing altho I call it backups, moving containers from one pool (local) to another (remote, bk server). Simplest way is to do it with snapshots + send/reveice. because my pools are named the same I don't need to change anything in my configuration, but in your case you'd have to update the profiles that are referring "lxd" to refer "lxdpool" and any other reference (can't think of another off the top of my head, other than maybe containers you configured individually). That's it as far as I know. Of course containers will need to be stopped during the operation or at least restarted to pick up the new pool. So basically something like (assuming you have a dataset called lxd.img) :<div><br></div><div>- stop containers</div><div>- zfs snapshot -r pool/lxd.img@movinglxd</div><div>- zfs send -R lxd.img@movinglxd | zfs receive pool/lxdpool</div><div>- lxd profile edit default (change reference to lxdpool)</div><div>- start containers<br><div><br></div><div>Hope that helps,<br></div><div><div><br></div><div>Spike</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 8, 2017 at 10:43 AM Torben Janssen <torben@torben.cc> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I started using containers with a ZFS image file for storage on the root<br>
partition.<br>
<br>
Now I want to move the containers to another storage pool I just added<br>
as the partition is nearly full.<br>
<br>
$ lxc storage list<br>
+---------+--------+----------------------------+---------+<br>
|  NAME   | DRIVER |           SOURCE           | USED BY |<br>
+---------+--------+----------------------------+---------+<br>
| lxd     | zfs    | /var/lib/lxd/disks/lxd.img | 19      |<br>
+---------+--------+----------------------------+---------+<br>
| lxdpool | zfs    | pool/volume_lxd            | 0       |<br>
+---------+--------+----------------------------+---------+<br>
<br>
I want to move some containers from the image (lxd.img) to the new ZFS<br>
volume (volume_lxd) but I cannot find any information how to do this.<br>
<br>
How can I move a container from one storage pool to another?<br>
<br>
thanks,<br>
Torben<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></blockquote></div>