You are not logged in.

#1 2010-12-07 22:41:29

dt
Member
Registered: 2009-11-06
Posts: 28

[solved]df showing wrong info for /var

When I had issues invoking "pacman -Syu", I had a look at my df output and it showed me only 12kb were available. It appeared that I had some huge log files, which I removed (3 x 1,8 GB). The df output didnt change though and I still couldnt run the update, so I invoked pacman -Sc and finally the output changed and I could update my system. Now df still shows me that I have 156 MB of 6.6 GB available whereas "du -hs /var" gives me 1.1 GB, so 5.5 GB should be free and I am confused.

I was wondering why from time to time syslog-ng and rtorrent-mod dont always get along too and seem to cause these large log files, but thats another topic.

Last edited by dt (2010-12-08 11:14:08)

Offline

#2 2010-12-07 23:22:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]df showing wrong info for /var

When you write to disk, changes aren't committed until buffers are flushed.  This includes deleting.  See man sync for more info.

Offline

#3 2010-12-07 23:24:08

CountDuckula
Member
Registered: 2010-02-28
Posts: 151

Re: [solved]df showing wrong info for /var

Depending how you removed these files, they could be sitting in your trash can. Try looking at,

~/.local/share/Trash/files

in both your normal user and root folders and see if they are there - if so then you can remove them from there to free up space.

Offline

#4 2010-12-08 09:38:27

dt
Member
Registered: 2009-11-06
Posts: 28

Re: [solved]df showing wrong info for /var

Well I dont have a trash can, so there is nothing there. Oddly df --sync doesnt change a thing either and I am still confused.
e: Well I restarted syslog-ng and that fixed it. The restart itself failed too at first but oh well..

Last edited by dt (2010-12-08 11:15:54)

Offline

Board footer

Powered by FluxBB