[Bug 690662] New: ntp creates copy of /proc as /var/lib/ntp/proc when started during boot
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c0 Summary: ntp creates copy of /proc as /var/lib/ntp/proc when started during boot Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: linux@hignett.me.uk QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0 I have just done an upgrade from OpenSUSE 11.3 to 11.4. Problem did not exist before upgrade. When ntp is set to start during boot, a complete copy of /proc appears as /var/lib/ntp/proc. It behaves the same as the proc virtual file system. Reports size as 104 Terabytes. It is not a link. When system is closed down it is removed (checked from other OS on same machine). If ntp is started manually after boot this does not happen. Symptoms can be repeated at will. I tried starting ntp from /etc/init.d/boot.local. Above behaviour did not occur, BUT I found a directory /var/lib/ntp/var/lib which contains a link to /var/lib/ntp. This link can be followed recursively until boredom sets in. I also have a problem sometimes when I am unable to either logout or shutdown from KDE. I think this only happens when ntp is running, but I cannot be sure of this. Reproducible: Always Steps to Reproduce: 1. boot without ntp started during boot. 2. Confirm no such dir as /var/lib/ntp/proc 3. Set ntp to start at boot and re-boot 4. Find /var/lib/ntp/proc which is identical to /proc 5. Close down this system and check by other means that this dir does not exist, ie it is virtual. Actual Results: See above Expected Results: It should not have done this at all ! System is basically standard but with some additional software (normal SUSE stuff), with all updates done as they appear. I have looked at the logs but can find nothing that looks relevant. I am no expert on the content of log files -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c1 Ned Ulbricht <nedu@netscape.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nedu@netscape.net --- Comment #1 from Ned Ulbricht <nedu@netscape.net> 2011-04-28 20:33:38 UTC --- This is longstanding, expected behaviour when NTPD_RUN_CHROOTED="yes" in /etc/sysconfig/ntp. Please check that configuration file. In addition, I just took a quick look at /etc/init.d/ntp : From code inspection, I don't expect /proc to be mounted in ntp chroot directory unless NTPD_RUN_CHROOTED="yes" This bug report appears likely to be invalid. But I haven't actually tested whether the reported behaviour occurs when ntpd isn't in a chroot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c2 --- Comment #2 from David Hignett <linux@hignett.me.uk> 2011-04-28 21:22:19 UTC --- checked /etc.sysconfig/ntp - NTPD_RUN_CHROOTED="yes" Went to Yast NTP Config/Security, find "Run in CHroot Jail" is selected (ie yes). This is presumably default, since I have not changed it. Set it to no and configured NTP to start at boot. After re-boot, confirmed ntpd running, no copy of /proc in /var/lib/ntp. Confirmed /etc.sysconfig/ntp - NTPD_RUN_CHROOTED="no" So it seems the "expected" behaviour is happening, so I accept it's not a bug. The question remains of Why ? I checked with a SUSE 11.3 install, Yast default for NTP config is NOT to run CHroot, but in 11.4 it is and help says it should be. So what is a humble user (ie me) to do ? The appearance of this unexpected virtual file system screwed up my full system backup (after install), copying a complete copy of /proc to my backup artition and getting "no space left" errors, which is how I found it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c3 --- Comment #3 from David Hignett <linux@hignett.me.uk> 2011-04-28 21:23:23 UTC --- Sorry, forgot to say thanks for your quick response. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |varkoly@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c4 Per Jessen <per@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |per@opensuse.org --- Comment #4 from Per Jessen <per@opensuse.org> 2011-06-24 07:43:22 UTC --- (In reply to comment #2)
checked /etc.sysconfig/ntp - NTPD_RUN_CHROOTED="yes"
Went to Yast NTP Config/Security, find "Run in CHroot Jail" is selected (ie yes). This is presumably default, since I have not changed it. Set it to no and configured NTP to start at boot.
After re-boot, confirmed ntpd running, no copy of /proc in /var/lib/ntp. Confirmed /etc.sysconfig/ntp - NTPD_RUN_CHROOTED="no"
So it seems the "expected" behaviour is happening, so I accept it's not a bug.
The question remains of Why ?
It's not a _copy_ of /proc, it is /proc mounted with 'bind'. (See /etc/init.d/ntp) One solution might be to change your backup procedure to not go across filesystems. (usually a -x option somewhere). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=690662 https://bugzilla.novell.com/show_bug.cgi?id=690662#c5 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |INVALID --- Comment #5 from Peter Varkoly <varkoly@novell.com> 2011-08-22 09:57:52 UTC --- "It's not a _copy_ of /proc, it is /proc mounted with 'bind'" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=690662 ralph roth <rroth@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rroth@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com