1 |
On Fri, Nov 6, 2015 at 12:19 PM, Jarry <mr.jarry@×××××.com> wrote: |
2 |
> Hi Gentoo-users, |
3 |
> |
4 |
> I noted one strange thing today: It seems one of my servers lost "/"! |
5 |
> |
6 |
> vs5-dns ~ # df |
7 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
8 |
> /var/log/named 10138552 2223148 7377344 24% /chroot/dns/var/log/named |
9 |
> tmpfs 308196 420 307776 1% /run |
10 |
> dev 10240 0 10240 0% /dev |
11 |
> shm 1540968 0 1540968 0% /dev/shm |
12 |
> cgroup_root 10240 0 10240 0% /sys/fs/cgroup |
13 |
> none 1048576 0 1048576 0% /var/tmp/portage |
14 |
> |
15 |
> And it seems I found the thief who stole it: |
16 |
> |
17 |
> vs5-dns ~ # /etc/init.d/named stop |
18 |
> * Caching service dependencies ... [ ok ] |
19 |
> * Stopping chrooted named ... |
20 |
> * Umounting chroot dirs ... |
21 |
> * umounting /chroot/dns/etc/bind ... [ ok ] |
22 |
> * umounting /chroot/dns/var/log/named ... [ ok ] |
23 |
> * umounting /chroot/dns/var/bind ... [ ok ] |
24 |
> vs5-dns ~ # df |
25 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
26 |
> /dev/sda2 10138552 2223140 7377352 24% / |
27 |
> tmpfs 308196 416 307780 1% /run |
28 |
> dev 10240 0 10240 0% /dev |
29 |
> shm 1540968 0 1540968 0% /dev/shm |
30 |
> cgroup_root 10240 0 10240 0% /sys/fs/cgroup |
31 |
> none 1048576 0 1048576 0% /var/tmp/portage |
32 |
> vs5-dns ~ # /etc/init.d/named start |
33 |
> * Starting chrooted named ... |
34 |
> * Mounting chroot dirs |
35 |
> * mounting /etc/bind to /chroot/dns/etc/bind [ ok ] |
36 |
> * mounting /var/bind to /chroot/dns/var/bind [ ok ] |
37 |
> * mounting /var/log/named to /chroot/dns/var/log/named [ ok ] |
38 |
> * Checking named configuration ... [ ok ] |
39 |
> vs5-dns ~ # df |
40 |
> Filesystem 1K-blocks Used Available Use% Mounted on |
41 |
> /var/log/named 10138552 2223160 7377332 24% /chroot/dns/var/log/named |
42 |
> tmpfs 308196 420 307776 1% /run |
43 |
> dev 10240 0 10240 0% /dev |
44 |
> shm 1540968 0 1540968 0% /dev/shm |
45 |
> cgroup_root 10240 0 10240 0% /sys/fs/cgroup |
46 |
> none 1048576 0 1048576 0% /var/tmp/portage |
47 |
> vs5-dns ~ # |
48 |
> |
49 |
> So it seems whenever chrooted bind/named is running, "/" simply |
50 |
> dissapeares from the list of mounted filesystem. Instead of it, |
51 |
> chrooted /var/log/named is listed. Is this correct behaviour??? |
52 |
> |
53 |
> This is a little problem for me, as I run monitoring software |
54 |
> which (appart from other things) check filesystems if they are |
55 |
> not close to being full. With bind/named running it complains |
56 |
> it can not find "/" in df output. I'd like to get my "/" back, |
57 |
> but I do not know how to do it... |
58 |
|
59 |
Is your /etc/mtab a regular file, or is it a symlink to |
60 |
/proc/self/mounts? The latter is recommended. |
61 |
|
62 |
Anyway, please have a look at the contents of /etc/mtab, |
63 |
/proc/self/mounts, and proc/self/mountinfo while named is running and |
64 |
when it is stopped. If you pastebin them we can take a look for key |
65 |
differences. |