# Strange du behavior with /var/lib/ntp/proc/

**URL:** <https://forums.suse.com/t/strange-du-behavior-with-var-lib-ntp-proc/23192>\
**Category:** SLES Configure-Administer\
**Created:** [October 12, 2012, 10:43am UTC](https://forums.suse.com/t/strange-du-behavior-with-var-lib-ntp-proc/23192 "2012-10-12T10:43:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![megadis](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@megadis](https://forums.suse.com/u/megadis)\
**Post date:** [October 12, 2012, 10:43am UTC](https://forums.suse.com/t/strange-du-behavior-with-var-lib-ntp-proc/23192/1 "2012-10-12T10:43:00Z")

</div>

Hello,

I issued the command (SLES 11) from root [FONT=Courier New]du -sh /\*[/FONT] but got some errors.  
Its seems that /var/lib/ntp/proc whichs is mounted provokes this error.  
Any advise on how to avoid/fix that?

Thank U

Andreas

df -a  
…  
none 0 0 0 - /var/lib/ntp/proc  
…

[FONT=Courier New]$ du -sh /\*  
9.1M bin  
43M boot  
9.3G dev  
74M etc  
3.8M home  
146M lib  
19M lib64  
16K lost+found  
4.0K media  
756G mnt  
6.8G opt  
568K oracle\_admin  
58M oracle\_backups  
45G oradata  
263G oradata\_slow  
344K oradiag\_root  
[COLOR="#FF0000"]du: cannot access `proc/6475/task/6475/fd/4': No such file or directory du: cannot access `proc/6475/task/6475/fdinfo/4’: No such file or directory  
du: cannot access `proc/6475/fd/4': No such file or directory du: cannot access `proc/6475/fdinfo/4’: No such file or directory  
[/COLOR]0 proc  
268M root  
13M sbin  
4.0K selinux  
88K srv  
0 sys  
4.4M tmp  
3.8G usr  
207M var  
440K volumes\_usage[/FONT]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 12, 2012, 4:50pm UTC](https://forums.suse.com/t/strange-du-behavior-with-var-lib-ntp-proc/23192/2 "2012-10-12T16:50:54Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Is there a reason it is causing you problems? Trying to find the used  
disk space of a virtual filesystem (/proc, /sys, /dev, etc.) does not  
make a lot of sense. Perhaps add the --exclude option to ‘du’ to  
exclude things that, by definition, are not using disk-users.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.19 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://www.enigmail.net/](http://www.enigmail.net/)

iQIcBAEBAgAGBQJQeCA9AAoJEF+XTK08PnB5lI8P/R7JIsKi+a7qP/tAra13Xq+b  
l5m66ARPhfmsn3AwDiKXspv/hhEzvYzvKsd82lkXxM41y4YIEgv+STWQuQPcfCNN  
TlZgUiLsObSBQ5apf2w2ONborWlnz9YVSKFS+kdaBbrAXJQB282vjUB0vSE80gLu  
4QeV42TX9zpSZ0DPg6tJldkrJQa7zAKYbVTdhqz4fM3hU3bQLaZLfOhOFMTsuKZq  
1ksP7RrnPEVLY5zUAidNnYnF0YTn/aJg373aJniPW9mKIKhn04N0o8ZpFtCFd7Li  
xbILh0ZAsnFiGwQ1KUnqEBA07NiU4r1QM0mAGnb3ZCxQMnvc1k+q2ZFHRqHAFpVI  
ZwSYNgWq+bk3z0h57U67O6FyE0eXaLjsUaXXdpDgBSsIxwuaB0lnSXQqS6jMyjuK  
lvp8TxIAqDnhkP2nsvVtdA/9jYYJCGQkc70FJzEjFvaqqAsFPK9Hyt5UWXk2wfeV  
ytwG3zKGtzW5Ho9Tq9hClVWSyoWqPvWaJR1kdA2VonaByYVc+1ZJKrcrOX2p7vll  
bcF/VflKlKmfR0/9ijlwmCB+6YJSIVp86ivNdCC+AOM/WlXOziWzIw3HeETRapNn  
zAj1AX7XtbBj8SBE3KcE0Ha1iLoE9TcwhzqyMEBlUY8ZJ+WRBKKUN05fi4kj/jwU  
VRb3Yhoaa1/wL0s4Ghde  
=p8wZ  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![megadis](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@megadis](https://forums.suse.com/u/megadis)\
**Post date:** [October 12, 2012, 6:11pm UTC](https://forums.suse.com/t/strange-du-behavior-with-var-lib-ntp-proc/23192/3 "2012-10-12T18:11:27Z")

</div>

I would like from time to time to be able to do du -sh /\* in order to see where diskspace is gone.

As all my previous installations where in SUSE 10 and I never got a similar problem I wonder what is different with SUSE 11.

Do you know why ntp creates such a filesystem?

Thank U  
Andreas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 12, 2012, 8:21pm UTC](https://forums.suse.com/t/strange-du-behavior-with-var-lib-ntp-proc/23192/4 "2012-10-12T20:21:49Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

I believe SLES 10 used xntp (a separate project, using the xntpd  
process) where we now use ntp (and the ntpd process).

I am not sure exactly why, but I’m guessing with the following:

ntp can be chroot’d and if that’s done then it wants access to things  
like /proc. ntp does not create proc, it simply does a “bind mount” so  
that it can access stuff like any other process. In order to do that it  
basically makes the /proc filesystem available within its chroot jail so  
now /proc can be accessed from either location.

Keep in mind that errors about missing /proc/ directories  
are possible anytime you go looking in there since those directories are  
created and destroyed with every process that is started and stopped.  
Looking for things in a “directory” at the time the “directory” goes  
away is just an effort in futility. Looking for disk usage in a  
“directory” that is merely a window into the running kernel’s memory  
(nothing to do with disk) is too.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.19 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://www.enigmail.net/](http://www.enigmail.net/)

iQIcBAEBAgAGBQJQeFGsAAoJEF+XTK08PnB5QXoQAKYZ10NyWN4d0H/bBojU+am4  
r7ravsJoOAF6VUphnKZKAy6OyapG61C5Tv8Ob4Iy7uxbMJwKR4w8ABCZyet8/wkq  
0LEDfPFCf0YHd0RV/eJMPE9ggeGy1yWD8GpM7zaf7hxU6ATiWAU01VhbkqGWAY8O  
sPOQIOZHx6cl6aTTTwg3/ZOJj8SoVTTiAEbXkqhxmOnOG6xcxIyRIqejFQzDu5K9  
PM97NQyrairUSzn1B0pVloggsjBpZvxcAqY39gsPFbsI/X1CWcAyMgzmXTDACSBl  
bRxaVy+1h+jdScyTsJxbSTe9WPLF8Ox4D9RXw3FVVbooWcHmxO52LPnjW7BiwVOs  
xyVumEP0zJDVlW8q14EL+iCUxYnkVUlFEmUPn9nRLNwLGgWCMqaa+WtBeWnrdObp  
vMPDX0klNr58EZxcACyOGCpDh/BJxwAWaRjWpNr44nWxXMc0nEyMqtMcen/NnVCU  
rs5/VFG0pO6XkWx1jeAF46kjGLj2cVzYe2v7IxdBDWLK25Xp4fVTbMMDXgYrSFPr  
8iN5pq6SvYz4TyMqjwwFo/Wj1e03DgAMRpvFc4ckleD/p7cmCUsBMz08OkClMim8  
KFg8XOVToFOV3tIq58pKtxsN0t0bjSkj3J77ErhcJt8e8OimWfVW4wg/w17hXkz8  
rEhKmMrILBw75HaP7kLV  
=EHEo  
-----END PGP SIGNATURE-----
