[lxc-users] Trouble locating rootfs

Caleb Everett caleb at calebeverett.io
Tue Mar 14 19:20:15 UTC 2017


That did the trick - thank you

On Tue, Mar 14, 2017 at 11:56 AM, Benoit GEORGELIN - Association Web4all <
benoit.georgelin at web4all.fr> wrote:

> It looks ok.
> You should try to stop the container, umount , mount and check the
> directory.
> I have no ideas if that does not work .
>
>
> > here is the output from: zfs get mountpoint
> top/lxd/containers/<container>
>
> > NAME PROPERTY VALUE SOURCE
> > top/lxd/containers/<container> mountpoint
> > /var/lib/lxd/storage-pools/default/containers/<container> local
>
> > and from: zfs get mounted top/lxd/containers/<container>
>
> > NAME PROPERTY VALUE SOURCE
> > top/lxd/containers<container> mounted no -
>
> > On Tue, Mar 14, 2017 at 11:30 AM, Benoit GEORGELIN - Association Web4all
> < [
> > mailto:benoit.georgelin at web4all.fr | benoit.georgelin at web4all.fr ] >
> wrote:
>
> >> ----- Mail original -----
> >> > De: "Caleb Everett" < [ mailto:caleb at calebeverett.io |
> caleb at calebeverett.io ] >
> >>> À: "lxc-users" < [ mailto:lxc-users at lists.linuxcontainers.org |
> >> > lxc-users at lists.linuxcontainers.org ] >
> >> > Envoyé: Mardi 14 Mars 2017 14:17:52
> >> > Objet: Re: [lxc-users] Trouble locating rootfs
>
> >> > Thank you - I had done that and it was showing a mount point of:
>
> >> > /var/lib/lxd/storage-pools/default/containers/<container>
>
> >> > but there doesn't appear to be anything there.
>
> >> > On Tue, Mar 14, 2017 at 9:51 AM, Benoit GEORGELIN - Association
> Web4all < [
> >>> mailto: [ mailto:benoit.georgelin at web4all.fr |
> benoit.georgelin at web4all.fr ] | [
> >> > mailto:benoit.georgelin at web4all.fr | benoit.georgelin at web4all.fr ] ]
> > wrote:
>
> >> >> ----- Mail original -----
> >>>> > De: "Caleb Everett" < [ mailto: [ mailto:caleb at calebeverett.io |
> >>>> > caleb at calebeverett.io ] | [ mailto:caleb at calebeverett.io |
> >> >> > caleb at calebeverett.io ] ] >
> >>>>> À: "lxc-users" < [ mailto: [ mailto:lxc-users at lists.
> linuxcontainers.org |
> >> >>> lxc-users at lists.linuxcontainers.org ] |
> >>>> > [ mailto:lxc-users at lists.linuxcontainers.org |
> >> >> > lxc-users at lists.linuxcontainers.org ] ] >
> >> >> > Envoyé: Mardi 14 Mars 2017 12:32:11
> >> >> > Objet: [lxc-users] Trouble locating rootfs
>
> >> >> > I'm trying to set acl permissions on some files in the root file
> system from the
> >> >> > host, but can't seem to find the root file systems for the
> containers.
> >> >> > I'm using zfs for storage. Both /var/lib/lxd/containers/<container>
> and
> >> >> > /var/lib/lxd/storage-pools/default/containers/<container> are
> empty.
>
> >> >> > Does anyone have any ideas on how I can locate the root file
> systems?
>
> >> >> With ZFS, you can do : zfs list
> >> >> You will see your ZFS datasets , and their mount points.
>
> >> >> If you need to mount a specific dataset you can do : zfs mount
> <DATASET>
>
> >> >> That should help.
>
> >> >> Regards
>
> >> So ZFS show the mount point as mounted ?
> >> What's the result of :
> >> - zfs get mountpoint <your-zfs-lxd-zpool>
> >> - zfs get mounted <your-zfs-lxd-zpool>
>
> >> You should be able to do the same with you container.
> >> _______________________________________________
> >> lxc-users mailing list
> >> [ mailto:lxc-users at lists.linuxcontainers.org |
> >> lxc-users at lists.linuxcontainers.org ]
> >> [ http://lists.linuxcontainers.org/listinfo/lxc-users |
> >> http://lists.linuxcontainers.org/listinfo/lxc-users ]
>
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170314/62d9da3a/attachment.html>


More information about the lxc-users mailing list