Date: Thu, 6 Jan 2011 15:06:18 +0300 From: c0re <nr1c0re@gmail.com> To: FreeBSD <freebsd-questions@freebsd.org> Cc: Ryan Coleman <ryan.coleman@cwis.biz> Subject: Re: / file system is full, but du does not show that it's full Message-ID: <AANLkTimR5iAgzFiYfQGVrAfWsmmS5u7wA_ABdy6XbZ_t@mail.gmail.com> In-Reply-To: <C4ACC2D7-0531-4DF7-A0E9-FEB030F9977F@cwis.biz> References: <AANLkTi=VPzjgviv2fkqv-JonQh24Cz20%2BiHxvQ5at4G4@mail.gmail.com> <C4ACC2D7-0531-4DF7-A0E9-FEB030F9977F@cwis.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/1/6 Ryan Coleman <ryan.coleman@cwis.biz>: > What about filehandlers? > > On Jan 6, 2011, at 5:26 AM, c0re wrote: > >> # df -h >> Filesystem =A0 =A0 Size =A0 =A0Used =A0 Avail Capacity =A0Mounted on >> /dev/ad0s1a =A0 =A0496M =A0 =A0466M =A0 -9.8M =A0 102% =A0 =A0/ >> >> So it's full. >> >> But by du it's not appeared to be full >> >> >> # du -hxd 1 / >> 2.0K =A0 =A0/.snap >> 512B =A0 =A0/dev >> 2.0K =A0 =A0/tmp >> 2.0K =A0 =A0/usr >> 2.0K =A0 =A0/var >> 1.9M =A0 =A0/etc >> 2.0K =A0 =A0/cdrom >> 2.0K =A0 =A0/dist >> 1.0M =A0 =A0/bin >> 131M =A0 =A0/boot >> 10M =A0 =A0/lib >> 356K =A0 =A0/libexec >> 2.0K =A0 =A0/media >> 12K =A0 =A0/mnt >> 2.0K =A0 =A0/proc >> 7.2M =A0 =A0/rescue >> 296K =A0 =A0/root >> 4.7M =A0 =A0/sbin >> 4.0K =A0 =A0/lost+found >> 157M =A0 =A0/ >> >> >> I know that something (like running process) can hold file so it's >> actually are not deleted. I rebooted server. But this not helped, so >> it's not a process holding file. >> >> Checked with fsck >> >> # fsck / >> ** /dev/ad0s1a (NO WRITE) >> ** Last Mounted on / >> ** Root file system >> ** Phase 1 - Check Blocks and Sizes >> ** Phase 2 - Check Pathnames >> ** Phase 3 - Check Connectivity >> ** Phase 4 - Check Reference Counts >> ** Phase 5 - Check Cyl groups >> 47268 files, 238539 used, 15276 free (6684 frags, 1074 blocks, 2.6% >> fragmentation) >> >> No problems here. >> >> >> # uname -a >> FreeBSD host.domain.com 7.3-RELEASE-p4 FreeBSD 7.3-RELEASE-p4 #0: Tue >> Dec 28 13:55:47 MSK 2010 >> root@host.domain.com:/usr/obj/usr/src/sys/MYKERNEL =A0i386 >> >> What's the problem here? Why df says that filesystem is full? Other >> command may also say that can't write because file system is full. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" > > fstat does not show full filepath so I uses lsof from ports lsof does not show anything criminal # lsof / COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 root cwd VDIR 0,81 512 2 / init 1 root rtd VDIR 0,81 512 2 / init 1 root txt VREG 0,81 632348 33074 /sbin/init firmware 5 root cwd VDIR 0,81 512 2 / firmware 5 root rtd VDIR 0,81 512 2 / adjkerntz 145 root cwd VDIR 0,81 512 2 / adjkerntz 145 root rtd VDIR 0,81 512 2 / adjkerntz 145 root txt VREG 0,81 7448 16481 /sbin/adjkerntz adjkerntz 145 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 adjkerntz 145 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 devd 487 root cwd VDIR 0,81 512 2 / devd 487 root rtd VDIR 0,81 512 2 / devd 487 root txt VREG 0,81 369684 32969 /sbin/devd syslogd 564 root cwd VDIR 0,81 512 2 / syslogd 564 root rtd VDIR 0,81 512 2 / syslogd 564 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 syslogd 564 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 syslogd 564 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 rpcbind 650 root cwd VDIR 0,81 512 2 / rpcbind 650 root rtd VDIR 0,81 512 2 / rpcbind 650 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 rpcbind 650 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 rpcbind 650 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 snmpd 690 root cwd VDIR 0,81 512 2 / snmpd 690 root rtd VDIR 0,81 512 2 / snmpd 690 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 snmpd 690 root txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 snmpd 690 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 snmpd 690 root txt VREG 0,81 92720 50743 /lib/libm.so.5 snmpd 690 root txt VREG 0,81 29916 50741 /lib/libkvm.so.4 snmpd 690 root txt VREG 0,81 18788 50761 /lib/libdevstat.so.= 6 snmpd 690 root txt VREG 0,81 1417668 50595 /lib/libcrypto.so.5 snmpd 690 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 sh 751 mysql cwd VDIR 0,81 512 2 / sh 751 mysql rtd VDIR 0,81 512 2 / sh 751 mysql txt VREG 0,81 115388 33069 /bin/sh sh 751 mysql txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sh 751 mysql txt VREG 0,81 88492 50751 /lib/libedit.so.6 sh 751 mysql txt VREG 0,81 261484 50738 /lib/libncurses.so.= 7 sh 751 mysql txt VREG 0,81 1067248 50739 /lib/libc.so.7 mysqld 800 mysql rtd VDIR 0,81 512 2 / mysqld 800 mysql txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 mysqld 800 mysql txt VREG 0,81 64300 49385 /lib/libz.so.3 mysqld 800 mysql txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 mysqld 800 mysql txt VREG 0,81 95120 49378 /lib/libm.so.4 mysqld 800 mysql txt VREG 0,81 140320 49370 /lib/libpthread.so.= 2 mysqld 800 mysql txt VREG 0,81 937368 57075 /lib/libc.so.6 mysqld 800 mysql rtd VDIR 0,81 512 2 / mysqld 800 mysql txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 mysqld 800 mysql txt VREG 0,81 64300 49385 /lib/libz.so.3 mysqld 800 mysql txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 mysqld 800 mysql txt VREG 0,81 95120 49378 /lib/libm.so.4 mysqld 800 mysql txt VREG 0,81 140320 49370 /lib/libpthread.so.= 2 mysqld 800 mysql txt VREG 0,81 937368 57075 /lib/libc.so.6 mysqld 800 mysql rtd VDIR 0,81 512 2 / mysqld 800 mysql txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 mysqld 800 mysql txt VREG 0,81 64300 49385 /lib/libz.so.3 mysqld 800 mysql txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 mysqld 800 mysql txt VREG 0,81 95120 49378 /lib/libm.so.4 mysqld 800 mysql txt VREG 0,81 140320 49370 /lib/libpthread.so.= 2 mysqld 800 mysql txt VREG 0,81 937368 57075 /lib/libc.so.6 mysqld 800 mysql rtd VDIR 0,81 512 2 / mysqld 800 mysql txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 mysqld 800 mysql txt VREG 0,81 64300 49385 /lib/libz.so.3 mysqld 800 mysql txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 mysqld 800 mysql txt VREG 0,81 95120 49378 /lib/libm.so.4 mysqld 800 mysql txt VREG 0,81 140320 49370 /lib/libpthread.so.= 2 mysqld 800 mysql txt VREG 0,81 937368 57075 /lib/libc.so.6 arpwatch 813 root rtd VDIR 0,81 512 2 / arpwatch 813 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 arpwatch 813 root txt VREG 0,81 146508 49381 /lib/libpcap.so.4 arpwatch 813 root txt VREG 0,81 937368 57075 /lib/libc.so.6 httpd 820 root cwd VDIR 0,81 512 2 / httpd 820 root rtd VDIR 0,81 512 2 / httpd 820 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 httpd 820 root txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 httpd 820 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 820 root txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 httpd 820 root txt VREG 0,81 95120 49378 /lib/libm.so.4 httpd 820 root txt VREG 0,81 64300 49385 /lib/libz.so.3 httpd 820 root txt VREG 0,81 996912 49367 /lib/libcrypto.so.4 httpd 820 root txt VREG 0,81 25596 49377 /lib/libkvm.so.3 httpd 820 root txt VREG 0,81 18560 49369 /lib/libdevstat.so.= 5 sshd 844 root cwd VDIR 0,81 512 2 / sshd 844 root rtd VDIR 0,81 512 2 / sshd 844 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sshd 844 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 sshd 844 root txt VREG 0,81 70804 50768 /lib/libz.so.4 sshd 844 root txt VREG 0,81 1417668 50595 /lib/libcrypto.so.5 sshd 844 root txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 sshd 844 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 sshd 844 root txt VREG 0,81 60060 50745 /lib/libmd.so.4 sendmail 850 root rtd VDIR 0,81 512 2 / sendmail 850 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sendmail 850 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 sendmail 850 root txt VREG 0,81 1417668 50595 /lib/libcrypto.so.5 sendmail 850 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 sendmail 854 smmsp rtd VDIR 0,81 512 2 / sendmail 854 smmsp txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sendmail 854 smmsp txt VREG 0,81 55240 50747 /lib/libutil.so.7 sendmail 854 smmsp txt VREG 0,81 1417668 50595 /lib/libcrypto.so.5 sendmail 854 smmsp txt VREG 0,81 1067248 50739 /lib/libc.so.7 cron 860 root rtd VDIR 0,81 512 2 / cron 860 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 cron 860 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 cron 860 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 900 root cwd VDIR 0,81 512 2 / getty 900 root rtd VDIR 0,81 512 2 / getty 900 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 900 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 900 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 901 root cwd VDIR 0,81 512 2 / getty 901 root rtd VDIR 0,81 512 2 / getty 901 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 901 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 901 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 902 root cwd VDIR 0,81 512 2 / getty 902 root rtd VDIR 0,81 512 2 / getty 902 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 902 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 902 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 903 root cwd VDIR 0,81 512 2 / getty 903 root rtd VDIR 0,81 512 2 / getty 903 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 903 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 903 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 904 root cwd VDIR 0,81 512 2 / getty 904 root rtd VDIR 0,81 512 2 / getty 904 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 904 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 904 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 905 root cwd VDIR 0,81 512 2 / getty 905 root rtd VDIR 0,81 512 2 / getty 905 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 905 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 905 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 906 root cwd VDIR 0,81 512 2 / getty 906 root rtd VDIR 0,81 512 2 / getty 906 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 906 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 906 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 getty 907 root cwd VDIR 0,81 512 2 / getty 907 root rtd VDIR 0,81 512 2 / getty 907 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 getty 907 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 getty 907 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 908 www cwd VDIR 0,81 512 2 / httpd 908 www rtd VDIR 0,81 512 2 / httpd 908 www txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 httpd 908 www txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 httpd 908 www txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 908 www txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 httpd 908 www txt VREG 0,81 95120 49378 /lib/libm.so.4 httpd 908 www txt VREG 0,81 64300 49385 /lib/libz.so.3 httpd 908 www txt VREG 0,81 996912 49367 /lib/libcrypto.so.4 httpd 908 www txt VREG 0,81 25596 49377 /lib/libkvm.so.3 httpd 908 www txt VREG 0,81 18560 49369 /lib/libdevstat.so.= 5 httpd 909 www cwd VDIR 0,81 512 2 / httpd 909 www rtd VDIR 0,81 512 2 / httpd 909 www txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 httpd 909 www txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 httpd 909 www txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 909 www txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 httpd 909 www txt VREG 0,81 95120 49378 /lib/libm.so.4 httpd 909 www txt VREG 0,81 64300 49385 /lib/libz.so.3 httpd 909 www txt VREG 0,81 996912 49367 /lib/libcrypto.so.4 httpd 909 www txt VREG 0,81 25596 49377 /lib/libkvm.so.3 httpd 909 www txt VREG 0,81 18560 49369 /lib/libdevstat.so.= 5 httpd 910 www cwd VDIR 0,81 512 2 / httpd 910 www rtd VDIR 0,81 512 2 / httpd 910 www txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 httpd 910 www txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 httpd 910 www txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 910 www txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 httpd 910 www txt VREG 0,81 95120 49378 /lib/libm.so.4 httpd 910 www txt VREG 0,81 64300 49385 /lib/libz.so.3 httpd 910 www txt VREG 0,81 996912 49367 /lib/libcrypto.so.4 httpd 910 www txt VREG 0,81 25596 49377 /lib/libkvm.so.3 httpd 910 www txt VREG 0,81 18560 49369 /lib/libdevstat.so.= 5 httpd 911 www cwd VDIR 0,81 512 2 / httpd 911 www rtd VDIR 0,81 512 2 / httpd 911 www txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 httpd 911 www txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 httpd 911 www txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 911 www txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 httpd 911 www txt VREG 0,81 95120 49378 /lib/libm.so.4 httpd 911 www txt VREG 0,81 64300 49385 /lib/libz.so.3 httpd 911 www txt VREG 0,81 996912 49367 /lib/libcrypto.so.4 httpd 911 www txt VREG 0,81 25596 49377 /lib/libkvm.so.3 httpd 911 www txt VREG 0,81 18560 49369 /lib/libdevstat.so.= 5 httpd 912 www cwd VDIR 0,81 512 2 / httpd 912 www rtd VDIR 0,81 512 2 / httpd 912 www txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 httpd 912 www txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 httpd 912 www txt VREG 0,81 1067248 50739 /lib/libc.so.7 httpd 912 www txt VREG 0,81 28768 58494 /lib/libcrypt.so.3 httpd 912 www txt VREG 0,81 95120 49378 /lib/libm.so.4 httpd 912 www txt VREG 0,81 64300 49385 /lib/libz.so.3 httpd 912 www txt VREG 0,81 996912 49367 /lib/libcrypto.so.4 httpd 912 www txt VREG 0,81 25596 49377 /lib/libkvm.so.3 httpd 912 www txt VREG 0,81 18560 49369 /lib/libdevstat.so.= 5 sshd 1424 root cwd VDIR 0,81 512 2 / sshd 1424 root rtd VDIR 0,81 512 2 / sshd 1424 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sshd 1424 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 sshd 1424 root txt VREG 0,81 70804 50768 /lib/libz.so.4 sshd 1424 root txt VREG 0,81 1417668 50595 /lib/libcrypto.so.5 sshd 1424 root txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 sshd 1424 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 sshd 1424 root txt VREG 0,81 60060 50745 /lib/libmd.so.4 sshd 1427 milyar cwd VDIR 0,81 512 2 / sshd 1427 milyar rtd VDIR 0,81 512 2 / sshd 1427 milyar txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sshd 1427 milyar txt VREG 0,81 55240 50747 /lib/libutil.so.7 sshd 1427 milyar txt VREG 0,81 70804 50768 /lib/libz.so.4 sshd 1427 milyar txt VREG 0,81 1417668 50595 /lib/libcrypto.so.5 sshd 1427 milyar txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 sshd 1427 milyar txt VREG 0,81 1067248 50739 /lib/libc.so.7 sshd 1427 milyar txt VREG 0,81 60060 50745 /lib/libmd.so.4 sh 1429 milyar rtd VDIR 0,81 512 2 / sh 1429 milyar txt VREG 0,81 115388 33069 /bin/sh sh 1429 milyar txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 sh 1429 milyar txt VREG 0,81 88492 50751 /lib/libedit.so.6 sh 1429 milyar txt VREG 0,81 261484 50738 /lib/libncurses.so.= 7 sh 1429 milyar txt VREG 0,81 1067248 50739 /lib/libc.so.7 su 1433 root rtd VDIR 0,81 512 2 / su 1433 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 su 1433 root txt VREG 0,81 55240 50747 /lib/libutil.so.7 su 1433 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 su 1433 root txt VREG 0,81 60060 50745 /lib/libmd.so.4 su 1433 root txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 csh 1434 root rtd VDIR 0,81 512 2 / csh 1434 root txt VREG 0,81 319604 33030 /bin/csh csh 1434 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 csh 1434 root txt VREG 0,81 261484 50738 /lib/libncurses.so.= 7 csh 1434 root txt VREG 0,81 32024 50740 /lib/libcrypt.so.4 csh 1434 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 lsof 7330 root rtd VDIR 0,81 512 2 / lsof 7330 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 lsof 7330 root txt VREG 0,81 29916 50741 /lib/libkvm.so.4 lsof 7330 root txt VREG 0,81 1067248 50739 /lib/libc.so.7 lsof 7331 root rtd VDIR 0,81 512 2 / lsof 7331 root txt VREG 0,81 189172 50770 /libexec/ld-elf.so.= 1 lsof 7331 root txt VREG 0,81 29916 50741 /lib/libkvm.so.4 lsof 7331 root txt VREG 0,81 1067248 50739 /lib/libc.so.7
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimR5iAgzFiYfQGVrAfWsmmS5u7wA_ABdy6XbZ_t>