[lxc-users] Trouble locating rootfs

Benoit GEORGELIN - Association Web4all benoit.georgelin at web4all.fr
Tue Mar 14 18:30:57 UTC 2017


----- Mail original -----
> De: "Caleb Everett" <caleb at calebeverett.io>
> À: "lxc-users" <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: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 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. 


More information about the lxc-users mailing list