Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 2009 19:34:20 -0700 (PDT)
From:      jaymax <jaymax36@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Inconsistency in root partition size
Message-ID:  <25314145.post@talk.nabble.com>

next in thread | raw e-mail | index | archive | help

I apparently have open file handles in my / partitions.
It was partitioned at 512 Mb size, used about 150Mb
df shows
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a    496M    492M    -36M   108%    /

alert condition output
/: write failed, filesystem is full

and a constant stream of error messages to console
______

I ran lsof which  produced a list of 2083 files
Randomly selected portions produced the composite below

COMMAND    PID  USER   FD   TYPE DEVICE SIZE/OFF NLINK NODE NAME
init          1   root  cwd     VDIR       0,96       1024       2 /
init          1   root  txt     VREG       0,96     474576   41282
/sbin/init
adjkerntz   147   root  cwd     VDIR       0,96       1024       2 /
adjkerntz   147   root  rtd     VDIR       0,96       1024       2 /
adjkerntz   147   root    0u    VBAD                               (revoked)
adjkerntz   147   root    1u    VBAD                               (revoked)
devd        254   root  txt     VREG       0,96     262516   41258
/sbin/devd
devd        254   root    0u    VCHR       0,24        0t0      24 /dev/null
syslogd     292   root  txt     VREG       0,96      41908     231
/lib/libutil.so.5
syslogd     292   root  txt     VREG       0,96     877604     236
/lib/libc.so.6
amd         413   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
amd         413   root  txt     VREG       0,96     877604     236
/lib/libc.so.6
amd         413   root    0u    VCHR       0,24        0t0      24 /dev/null
nfsd        457   root  txt     VREG       0,96     877604     236
/lib/libc.so.6
nfsd        457   root    0u    VCHR       0,24        0t0      24 /dev/null
usbd        484   root  txt     VREG      0,101      14964 3653493
/usr/sbin/usbd
smbd        500   root  txt     VREG      0,101     121414 1941471
/usr/local/lib/libcups.so.2
smbd        500   root  txt     VREG      0,101     445658 3535409
/usr/local/lib/compat/pkg/libgnutls.so.12
nmbd        502   root  txt     VREG      0,101     445658 3535409
/usr/local/lib/compat/pkg/libgnutls.so.12
nmbd        502   root  txt     VREG      0,101     340795 1941251
/usr/local/lib/libgcrypt.so.13
httpd       504   root  txt     VREG       0,96      28676     225
/lib/libcrypt.so.3
httpd       504   root  txt     VREG       0,96     877604     236
/lib/libc.so.6
httpd       508 nobody   15w    VREG      0,101    1272700 2340767
/usr/local/apache/logs/error_log
httpd       512   root  txt     VREG      0,101     952544  966860
/usr/local/apache2/bin/httpd
httpd       512   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
httpd       512   root  txt     VREG       0,96      98120     227
/lib/libm.so.4
httpd       512   root  txt     VREG      0,101     280725  966866
/usr/local/apache2/lib/libaprutil-1.so.3
httpd       512   root  txt     VREG      0,101     157398 1942626
/usr/local/lib/libexpat.so.6
httpd       512   root  txt     VREG      0,101     423490  966861
/usr/local/apache2/lib/libapr-1.so.3
httpd       512   root  txt     VREG       0,96      28676     225
/lib/libcrypt.so.3
httpd       512   root  txt     VREG      0,101     140112 3653763
/usr/lib/libpthread.so.2
httpd       512   root  txt     VREG       0,96     877604     236
/lib/libc.so.6
httpd       512   root  txt     VREG      0,101     355787 1941402
/usr/local/lib/libapr-1.so.0
httpd       512   root  txt     VREG      0,101      22323  966665
/usr/local/apache2/modules/mod_authn_file.so
httpd       512   root  txt     VREG      0,101      22612  966666
/usr/local/apache2/modules/mod_authn_dbm.so
httpd       512   root   20w    VREG      0,101     274254  966466
/usr/local/apache2/logs/error_log
rwhod       548 daemon  txt     VREG      0,101      10912 3653467
/usr/sbin/rwhod
rwhod       548 daemon  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
httpd       570 nobody  txt     VREG      0,101      23956  966670
/usr/local/apache2/modules/mod_authz_host.so
httpd       570 nobody  txt     VREG      0,101      26206  966671
/usr/local/apache2/modules/mod_authz_groupfile.so
httpd       570 nobody  txt     VREG      0,101      20770  966672
/usr/local/apache2/modules/mod_authz_user.so
sshd        586   root  txt     VREG      0,101     168488 3651348
/usr/sbin/sshd
sshd        586   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
sendmail    591   root  txt     VREG      0,101      27812 3653790
/usr/lib/libwrap.so.4
sendmail    591   root  txt     VREG      0,101     184752 3653852
/usr/lib/libssl.so.4
cron        614   root  txt     VREG      0,101      30748 3653316
/usr/sbin/cron
cron        614   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
moused      717   root  txt     VREG      0,101      32480 3653390
/usr/sbin/moused
moused      717   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
inetd       739   root  rtd     VDIR       0,96       1024       2 /
inetd       739   root  txt     VREG      0,101      37744 3653353
/usr/sbin/inetd
login       755   root  rtd     VDIR       0,96       1024       2 /
login       755   root  txt     VREG      0,101      17616 3654261
/usr/bin/login
login       755   root    1u    VCHR       0,57   0t142402      57
/dev/ttyv0
login       755   root    2u    VCHR       0,57   0t142402      57
/dev/ttyv0
getty       759   root  rtd     VDIR       0,96       1024       2 /
getty       759   root  txt     VREG      0,101      20160 3653523
/usr/libexec/getty
csh         769   root  txt     VREG       0,96     280512     263 /bin/tcsh
csh         769   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
httpd     18932 nobody    2w    VREG      0,101    1272700 2340767
/usr/local/apache/logs/error_log
httpd     18932 nobody    3                                       
0xc27cd1f8 file struct, ty=0, op=0xc08bfbe0
httpd     18932 nobody   15w    VREG      0,101    1272700 2340767
/usr/local/apache/logs/error_log
sshd      19204   root  txt     VREG       0,96      60672     247
/lib/libz.so.3
sshd      19204   root  txt     VREG      0,101      27812 3653790
/usr/lib/libwrap.so.4
csh       19206   root  txt     VREG       0,96     280512     263 /bin/tcsh
csh       19206   root  txt     VREG       0,96     136984     808
/libexec/ld-elf.so.1
httpd     19551 nobody    1w    VCHR       0,24        0t0      24 /dev/null
httpd     19551 nobody    2w    VREG      0,101    1272700 2340767
/usr/local/apache/logs/error_log
httpd     19551 nobody    3                                       
0xc2823af8 file struct, ty=0, op=0xc08bfbe0
httpd     19551 nobody   15w    VREG      0,101    1272700 2340767
/usr/local/apache/logs/error_log
sendmail  31437   root  cwd     VDIR       0,96        512    3439
/var/spool/mqueue
sendmail  31437   root  rtd     VDIR       0,96       1024       2 /
lsof      32545   root  txt     VREG       0,96     877604     236
/lib/libc.so.6
lsof      32545   root    0u    VCHR       0,90   0t173796      90
/dev/ttyp0
lsof      32545   root    1u    VCHR       0,90   0t173796      90
/dev/ttyp0
lsof      32545   root    2u    VCHR       0,90   0t173796      90
/dev/ttyp0
lsof      32545   root    3r    VCHR       0,22        0t0      22 /dev/mem
lsof      32545   root    6u    PIPE 0xc25b18b0          0        
->0xc25b17f8
lsof      32545   root    7u    PIPE 0xc25b14c8      16384        
->0xc25b1580

Can't really identify lines I can say does not belong so I don't have any
rational basis to kill any process. All seems legit!

Rebooting does not correct the descrepancy

What should I do to proceed

cron is set to rotatate log files


# lsof +L1 =>
COMMAND    PID  USER   FD   TYPE DEVICE SIZE/OFF NLINK NODE NAME
syslogd    290  root   13w  VREG   0,96       61     0 3491 / (/dev/ad0s1a)
syslogd    290  root   14w  VREG   0,96     1487     0 3482 / (/dev/ad0s1a)
syslogd    290  root   16w  VREG   0,96       61     0 3487 / (/dev/ad0s1a)
syslogd    290  root   17w  VREG   0,96       61     0 3493 / (/dev/ad0s1a)
syslogd    290  root   19w  VREG   0,96       61     0 3486 / (/dev/ad0s1a)
syslogd    290  root   20w  VREG   0,96       61     0 3492 / (/dev/ad0s1a)
syslogd    290  root   21w  VREG   0,96       61     0 3490 / (/dev/ad0s1a)
smbd       498  root  txt-r VREG   0,96      696     0 3511 / (/dev/ad0s1a)
smbd       498  root    6ww VREG   0,96       20     0 3505 / (/dev/ad0s1a)
smbd       498  root    7ur VREG   0,96      696     0 3511 / (/dev/ad0s1a)
smbd       498  root    8ur VREG   0,96      696     0 3512 / (/dev/ad0s1a)
nmbd       500  root  txt-r VREG   0,96      696     0 3511 / (/dev/ad0s1a)
nmbd       500  root    3w  VREG   0,96     4092     0 3513 / (/dev/ad0s1a)
nmbd       500  root    4ww VREG   0,96       20     0 3506 / (/dev/ad0s1a)
nmbd       500  root    5ur VREG   0,96      696     0 3511 / (/dev/ad0s1a)
nmbd       500  root   12ur VREG   0,96      696     0 3515 / (/dev/ad0s1a)
sendmail   589  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail   589  root    7wW VREG   0,96       43     0 3518 / (/dev/ad0s1a)
sendmail   593 smmsp  cwd   VDIR   0,96        0     0 3442 / (/dev/ad0s1a)
sendmail   593 smmsp    4wW VREG   0,96        0     0 3538 / (/dev/ad0s1a)
sendmail 22547  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 22771  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 23316  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 28813  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 29319  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 30746  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 31123  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 32645  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 34334  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 35676  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 36103  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 36618  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 37766  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 37963  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 38061  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 38390  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 38407  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 38472  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 38542  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 38689  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 39727  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)
sendmail 39738  root  cwd   VDIR   0,96        0     0 3439 / (/dev/ad0s1a)

var is a soft link to /usr/var, /tmp has it own partition
I am at wits end in knowing what to remove to solve this problem

Thanks for any suggestions

-- 
View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25314145.html
Sent from the freebsd-questions mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25314145.post>