[gentoo-user] Re: Bind stole my /

2015-11-18 Thread Jörg Schaible
Jarry wrote:

[snip]
 
> vs5-dns ~ # df -a
> Filesystem1K-blocksUsed Available Use% Mounted on
> /dev/sda2 -   - -- /
> proc  0   0 0- /proc
> tmpfs308188 420307768   1% /run
> dev   10240   0 10240   0% /dev
> mqueue0   0 0- /dev/mqueue
> devpts0   0 0- /dev/pts
> shm 1540940   0   1540940   0% /dev/shm
> sysfs 0   0 0- /sys
> cgroup_root   10240   0 10240   0% /sys/fs/cgroup
> openrc0   0 0- /sys/fs/cgroup/openrc
> none1048576   0   1048576   0% /var/tmp/portage
> /etc/bind -   - -- /chroot/dns/etc/bind
> /var/bind -   - -- /chroot/dns/var/bind
> /var/log/named 10138552 2300032   7300460  24% /chroot/dns/var/log/named
> 
> So there *is* /, but strangely it has no size. But it suddenly does
> have its proper size as soon as I stop bind running:
> 
> vs5-dns ~ # df -a
> Filesystem 1K-blocksUsed Available Use% Mounted on
> /dev/sda2  10138552 2300024   7300468  24% /
> proc  0   0 0- /proc
> tmpfs308188 416307772   1% /run
> dev   10240   0 10240   0% /dev
> mqueue0   0 0- /dev/mqueue
> devpts0   0 0- /dev/pts
> shm 1540940   0   1540940   0% /dev/shm
> sysfs 0   0 0- /sys
> cgroup_root   10240   0 10240   0% /sys/fs/cgroup
> openrc0   0 0- /sys/fs/cgroup/openrc
> none1048576   0   1048576   0% /var/tmp/portage
> 
> Jarry

As said, I have the same issue, I also use bind for my nfs4 exports. A 
downgrade to 8.21 or an upgrade to 8.24 solved the issue for me.

Cheers,
Jörg





[gentoo-user] Re: Bind stole my /

2015-11-09 Thread Jörg Schaible
Hi Jarry,

Jarry wrote:

> On 08-Nov-15 17:58, Mike Gilbert wrote:
>> On Fri, Nov 6, 2015 at 12:19 PM, Jarry  wrote:
>>> Hi Gentoo-users,
>>>
>>> I noted one strange thing today: It seems one of my servers lost "/"!
>>>
>>> vs5-dns ~ # df
>>> Filesystem1K-blocksUsed Available Use% Mounted on
>>> /var/log/named 10138552 2223148   7377344  24% /chroot/dns/var/log/named
>>> tmpfs308196 420307776   1% /run
>>> dev   10240   0 10240   0% /dev
>>> shm 1540968   0   1540968   0% /dev/shm
>>> cgroup_root   10240   0 10240   0% /sys/fs/cgroup
>>> none1048576   0   1048576   0% /var/tmp/portage
>>
>> Is your /etc/mtab a regular file, or is it a symlink to
>> /proc/self/mounts? The latter is recommended.
> 
> It is regular file. I never changed it...
> 
> vs5-dns ~ # ls -l /etc/mtab
> -rw-r--r-- 1 root root 908 Nov  9 19:14 /etc/mtab
> 
>> Anyway, please have a look at the contents of /etc/mtab,
>> /proc/self/mounts, and proc/self/mountinfo while named is running and
>> when it is stopped. If you pastebin them we can take a look for key
>> differences.
> 
> With bind running:
> http://pastebin.com/wkTW6xAY
> 
> without bind:
> http://pastebin.com/JG5FPNDW
> 
> While I can see some differences there, I still do not understand
> why is "/" missing in "df" output. BTW I can not proove it, but this
> was not the case all the time. At least when I was tuning monitoring
> software, I'm pretty sure "/" was there...

Actually I have the same problem, but I do not run named. /etc/mtab is a 
regular file on my system, too (since years). I am actually missing two 
entries:

 /
 /var/share/storage

Compare with contents of mtab. Both entries were originally there.

Do you have also nfs exports?

=== %< =
joehni@bobbel ~ $ df -hl
Filesystem Size  Used Avail Use% Mounted on
udev10M 0   10M   0% /dev
/var/spool/cups-pdf892G  261G  586G  31% /export/cups-pdf
tmpfs  396M  572K  395M   1% /run
none   2.0G 0  2.0G   0% /dev/shm
cgroup_root 10M 0   10M   0% /sys/fs/cgroup
/dev/sda6  926M  269M  594M  32% /var/log
/var/share/storage/Video/Film  3.6T  2.3T  1.2T  65% 
/export/storage/Video/Film
joehni@bobbel ~ $ cat /etc/mtab
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=505255,mode=755 
0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda5 / ext4 rw,relatime,data=ordered 0 0
tmpfs /run tmpfs rw,nodev,relatime,size=404508k,mode=755 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=2097152k 0 0
cgroup_root /sys/fs/cgroup tmpfs 
rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
openrc /sys/fs/cgroup/openrc cgroup 
rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-
agent.sh,name=openrc 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 
0
cpu /sys/fs/cgroup/cpu cgroup rw,nosuid,nodev,noexec,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup 
rw,nosuid,nodev,noexec,relatime,cpuacct 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
memory /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 
0
devices /sys/fs/cgroup/devices cgroup 
rw,nosuid,nodev,noexec,relatime,devices 0 0
freezer /sys/fs/cgroup/freezer cgroup 
rw,nosuid,nodev,noexec,relatime,freezer 0 0 
  
net_cls /sys/fs/cgroup/net_cls cgroup 
rw,nosuid,nodev,noexec,relatime,net_cls 0 0 
  
perf_event /sys/fs/cgroup/perf_event cgroup 
rw,nosuid,nodev,noexec,relatime,perf_event 0 0  
net_prio /sys/fs/cgroup/net_prio cgroup 
rw,nosuid,nodev,noexec,relatime,net_prio 0 0
debug /sys/fs/cgroup/debug cgroup rw,nosuid,nodev,noexec,relatime,debug 0 0 

/dev/sda6 /var/log ext4 rw 0 2  

/dev/sdb1 /var/share/storage/Video/Film ext4 rw 0 2 

/var/db/portage /export/portage none rw,bind 0 0

/var/share/storage /export/storage none rw,bind 0 0 

/var/spool/cups-pdf /export/cups-pdf none rw,bind 0 0   

/var/share/storage/Video/Film /export/storage/Video/Film none