Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Bind stole my /
Date: Mon, 09 Nov 2015 23:32:36
Message-Id: CAJ0EP41LuMTL2BCc4Sj71CacvzLvzh=dU8SQcjat+V3Q6gHLaA@mail.gmail.com
In Reply to: Re: [gentoo-user] Bind stole my / by Jarry
1 On Mon, Nov 9, 2015 at 2:36 PM, Jarry <mr.jarry@×××××.com> wrote:
2 > On 08-Nov-15 17:58, Mike Gilbert wrote:
3 >>
4 >> On Fri, Nov 6, 2015 at 12:19 PM, Jarry <mr.jarry@×××××.com> wrote:
5 >>>
6 >>> Hi Gentoo-users,
7 >>>
8 >>> I noted one strange thing today: It seems one of my servers lost "/"!
9 >>>
10 >>> vs5-dns ~ # df
11 >>> Filesystem 1K-blocks Used Available Use% Mounted on
12 >>> /var/log/named 10138552 2223148 7377344 24% /chroot/dns/var/log/named
13 >>> tmpfs 308196 420 307776 1% /run
14 >>> dev 10240 0 10240 0% /dev
15 >>> shm 1540968 0 1540968 0% /dev/shm
16 >>> cgroup_root 10240 0 10240 0% /sys/fs/cgroup
17 >>> none 1048576 0 1048576 0% /var/tmp/portage
18 >>
19 >>
20 >> Is your /etc/mtab a regular file, or is it a symlink to
21 >> /proc/self/mounts? The latter is recommended.
22 >
23 >
24 > It is regular file. I never changed it...
25 >
26 > vs5-dns ~ # ls -l /etc/mtab
27 > -rw-r--r-- 1 root root 908 Nov 9 19:14 /etc/mtab
28 >
29 >> Anyway, please have a look at the contents of /etc/mtab,
30 >> /proc/self/mounts, and proc/self/mountinfo while named is running and
31 >> when it is stopped. If you pastebin them we can take a look for key
32 >> differences.
33 >
34 >
35 > With bind running:
36 > http://pastebin.com/wkTW6xAY
37 >
38 > without bind:
39 > http://pastebin.com/JG5FPNDW
40 >
41 > While I can see some differences there, I still do not understand
42 > why is "/" missing in "df" output. BTW I can not proove it, but this
43 > was not the case all the time. At least when I was tuning monitoring
44 > software, I'm pretty sure "/" was there...
45
46 It may be a bug.
47
48 Can you try replacing /etc/mtab with a symlink to /proc/self/mounts to
49 see if it makes any difference? That triggers different code paths in
50 several programs.

Replies

Subject Author
Re: [gentoo-user] Bind stole my / Tom H <tomh0665@×××××.com>