[lxc-users] Question on strange ls -lh
Serge E. Hallyn
serge at hallyn.com
Tue Feb 19 19:57:40 UTC 2019
On Sat, Jan 05, 2019 at 11:20:52PM +0100, Pierre Couderc wrote:
> Strange ls -lh :
>
> On the host :
>
> root at server:/# ls -lh /var/lib/lxd/containers/bind/rootfs/
> total 0
> .......
> drwxr-xr-x 1 231072 231072 0 Oct 4 07:25 opt
> drwxr-xr-x 1 231072 231072 0 Jun 26 2018 proc
> drwx------ 1 231072 231072 102 Jan 5 19:19 root
> ...
>
> The same directory in the "bind" container :
>
> root at bind:/etc/bind/normal# ls -lh /
> total 0
> ....
> drwxr-xr-x 1 root root 0 Oct 4 07:25 opt
> dr-xr-xr-x 250 nobody nogroup 0 Oct 30 09:21 proc
> drwx------ 1 root root 102 Jan 5 19:19 root
> ...
>
> Question :
>
> 1- why /proc is owned by nobody.nogroup inside the container and on the host
> by 231072.231072 , which seems to be root.root ?
>
> 2- how can this occur ?
>
> The container is in bad state as "ps -aux" work no more...
>
> Thanks all,
>
> and Happy new year to all, and particularly the team of brave developers...
Bit late, but
I would take a look at /proc/self/mounts and /proc/$(lxc-info -p -n media -H)/mountinfo.
I'm guessing the mntid will be different for the proc entries.
More information about the lxc-users
mailing list