Skip to content

Problem keeping DataSet structure #24

Description

@jorpilo

Hello.

I have mounted an arch Root ZFS with zfsbootmenu (which is super nice).

this is part of the structure of my zfs root

zroot/ROOT/lightdm                                  7.86G  93.0G     7.37G  /
zroot/ROOT/lightdm/srv                                 0B  93.0G      208K  /srv
zroot/ROOT/lightdm/usr                               192K  93.0G      192K  /usr
zroot/ROOT/lightdm/usr/local                         192K  93.0G      192K  /usr/local
zroot/ROOT/lightdm/var                              2.98M  93.0G      192K  /var
zroot/ROOT/lightdm/var/games                         192K  93.0G      192K  /var/games
zroot/ROOT/lightdm/var/lib                          2.42M  93.0G      960K  /var/lib
zroot/ROOT/lightdm/var/lib/AccountsService           244K  93.0G      244K  /var/lib/AccountsService
zroot/ROOT/lightdm/var/lib/docker                    696K  93.0G      696K  /var/lib/docker
zroot/ROOT/lightdm/var/lib/libvirt                   192K  93.0G      192K  /var/lib/libvirt
zroot/ROOT/lightdm/var/lib/lxc                       192K  93.0G      192K  /var/lib/lxc
zroot/ROOT/lightdm/var/lib/nfs                       192K  93.0G      192K  /var/lib/nfs
zroot/ROOT/lightdm/var/spool                         192K  93.0G      192K  /var/spool
zroot/ROOT/lightdm/var/www                           192K  93.0G      192K  /var/www

When I create a new environment, the dataset tree becomes flat

jorpilo@legion ~ [1]> sudo zedenv create test1
jorpilo@legion ~> zfs list -r zroot/ROOT/test1
NAME                               USED  AVAIL     REFER  MOUNTPOINT
zroot/ROOT/test1                    24K  93.0G     7.37G  /
zroot/ROOT/test1/AccountsService     0B  93.0G      244K  /AccountsService
zroot/ROOT/test1/docker              8K  93.0G      696K  /docker
zroot/ROOT/test1/games               0B  93.0G      192K  /games
zroot/ROOT/test1/lib                 8K  93.0G      992K  /lib
zroot/ROOT/test1/libvirt             0B  93.0G      192K  /libvirt
zroot/ROOT/test1/local               0B  93.0G      192K  /local
zroot/ROOT/test1/lxc                 0B  93.0G      192K  /lxc
zroot/ROOT/test1/nfs                 0B  93.0G      192K  /nfs
zroot/ROOT/test1/spool               0B  93.0G      192K  /spool
zroot/ROOT/test1/srv                 0B  93.0G      208K  /srv
zroot/ROOT/test1/usr                 0B  93.0G      192K  /usr
zroot/ROOT/test1/var                 0B  93.0G      192K  /var
zroot/ROOT/test1/www                 0B  93.0G      192K  /www
jorpilo@legion ~> zfs list -r zroot/ROOT/lightdm
NAME                                         USED  AVAIL     REFER  MOUNTPOINT
zroot/ROOT/lightdm                          7.86G  93.0G     7.37G  /
zroot/ROOT/lightdm/srv                         0B  93.0G      208K  /srv
zroot/ROOT/lightdm/usr                       192K  93.0G      192K  /usr
zroot/ROOT/lightdm/usr/local                 192K  93.0G      192K  /usr/local
zroot/ROOT/lightdm/var                      3.01M  93.0G      192K  /var
zroot/ROOT/lightdm/var/games                 192K  93.0G      192K  /var/games
zroot/ROOT/lightdm/var/lib                  2.45M  93.0G      992K  /var/lib
zroot/ROOT/lightdm/var/lib/AccountsService   244K  93.0G      244K  /var/lib/AccountsService
zroot/ROOT/lightdm/var/lib/docker            696K  93.0G      696K  /var/lib/docker
zroot/ROOT/lightdm/var/lib/libvirt           192K  93.0G      192K  /var/lib/libvirt
zroot/ROOT/lightdm/var/lib/lxc               192K  93.0G      192K  /var/lib/lxc
zroot/ROOT/lightdm/var/lib/nfs               192K  93.0G      192K  /var/lib/nfs
zroot/ROOT/lightdm/var/spool                 192K  93.0G      192K  /var/spool
zroot/ROOT/lightdm/var/www                   192K  93.0G      192K  /var/www

Why zedenv doesn't keep my folder structure and simply just flat all my file system on root? The datasets that were supposed to mount to /var/lib now get mount on /root

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions