I guess I should have mentioned an important change. When I switched from
BTRFS to ZFS I also went from LXD 2.0 to 2.13.

On Wed, May 31, 2017 at 10:27 AM, Joshua Schaeffer <[email protected]
> wrote:

> I've recently switch from using BTRFS to ZFS backend, and my containers on
> the ZFS backend aren't inheriting the root device from my default profile:
>
>     lxduser@raynor:~$ lxc config show fenix
>     architecture: x86_64
>     [snip]
>     devices: {}
>     ephemeral: false
>     profiles:
>     - default
>     - 30_vlan_mgmt_server
>
> The default profile, which the container is using has the root device with
> a pool specified:
>
>     lxduser@raynor:~$ lxc profile show default
>     config: {}
>     description: Default LXD profile
>     devices:
>       root:
>         path: /
>         pool: lxdpool
>         type: disk
>     name: default
>
> But the container isn't showing a root device (or any device for that
> matter), and I get an error when I try to set a size limit on the root
> device for that container:
>
>     lxduser@raynor:~$ lxc config device set fenix root size 50G
>     error: The device doesn't exist
>
> Is there a ZFS property that has to be set to get it to inherit the
> device? I was able to successfully create the root device on another
> container, but I don't want to create the device on each container, I just
> want to set it on the profile. I'm on LXD 2.13. Here is my storage device:
>
>     lxduser@raynor:~$ lxc storage list
>     +---------+--------+---------+---------+
>     |  NAME   | DRIVER | SOURCE  | USED BY |
>     +---------+--------+---------+---------+
>     | lxdpool | zfs    | lxdpool | 15      |
>     +---------+--------+---------+---------+
>
> Thanks,
> Joshua Schaeffer
>
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to