Questions tagged [df]

107 questions
260
votes
17 answers

df in linux not showing correct free space after file removal

I have file servers which are used to store files. Files might reside there for a week, or for a year. Unfortunately, when I remove files from the server, df command doesn't reflect the freed up space. So eventually, the server gets filled up (df…
user11350
46
votes
7 answers

du vs. df difference

I have a fileserver where df reports 94% of / full. But according to du, much less is used: # df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda3 270G 240G 17G 94% / # du -hxs / 124G / I read that open but…
17
votes
1 answer

Disk space usage doesn't add up with df & du

I'm trying to free up some disk space - if I do a df -h, I have a filesystem called /dev/mapper/vg00-var which says its 4G, 3.8G used, 205M left. That corresponds to my /var directory. If I descend into /var and do du -kscxh *, the total is…
Codecraft
  • 293
16
votes
1 answer

Why does `df` indicate no available space when used is much less than total size, on my VPS?

My VPS display this with df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 100G 46G 0 100% / Does anyone have a idea to fix this ?
9
votes
1 answer

Ubuntu server: hard drive always full

I have a 50GB vps when I run df I get Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 49982172 46580100 863064 99% / none 507212 172 507040 1% /dev none …
Krayons
  • 93
  • 1
  • 4
9
votes
1 answer

Why does df shows only half the size of a RAID10 array?

I've created a RAID10 array using 4 75G drives, to create a storage of 150G. After everything finished (including the initial syncing), everything looked good except the output of df -h which showed only 73G storage on the designated mount…
Doron
  • 553
  • 1
  • 6
  • 14
7
votes
1 answer

df report incorrect free space for a filesystem (ext4)

I am facing an issue with wrong fs space reported by df. We are talking about bare metal Ubuntu 14.04 server, with the / partition managed by LVM. Size reported by df is different from the size reported by fs super-block. Also calculating size from…
Tom Lime
  • 201
7
votes
1 answer

Why does df -h still show 100% full even after deleting files?

The disk space on my Ubuntu web server, running on DigitalOcean, seems to be full. I have already found and deleted the large log file and restarted Nginx. However, it still seems like there is a problem. df shows that it's still full: $ df -h…
Andrew
  • 3,593
6
votes
1 answer

"Write Error: No space left on device" when df displays 60% of free space?

It's been happening for the last few weeks in a small unix server (it doesn't have all standard unix commands, just the basics included in the BusyBox package) that I was configuring to backup files. If we check the free space of the server it…
mickael
  • 163
6
votes
2 answers

inconsistency between du -sh and df -h

I know this is a common occurrence when the result of du -sh is smaller than that returned by the file system with df -h. (Because some files are still open in processes etc..) But in my case I have the opposite. I'm running Ubuntu 12.04 and trying…
D.Mill
  • 379
  • 5
  • 15
6
votes
3 answers

Sort df Output by Mount Point

I need to get the output of df -h sorted alphabetically by its mount point in the Mounted on column. However, df -h currently outputs similar to this: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/nvme0n1p2 228G 14G 203G 7%…
Nyxynyx
  • 1,509
5
votes
8 answers

list linux partition names only in bash

df on linux lists the following stats on partitions. -bash-4.1# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 1918217320 1473337340 347440136 81% / tmpfs 32970328 0 32970328 …
user12145
  • 1,125
5
votes
2 answers

Next-gen filesystems: disk space usage log?

From time to time I run into problems when server hard disks (Linux) fill up quickly with lots of small files. When this happens I have to try to figure out how much space is being taken up and where the files are that are taking up the space. This…
4
votes
1 answer

No more space on FreeNAS 9.3. But only half of space actually in use based on "du -sh" command

This morning I got a warning on my FreeNAS 9.3 machine about "Not enough space" warning: The capacity for the volume 'SeanVolume' is currently at 85%, while the recommended value is below 80%. It's of no use running the scrub command after a period…
4
votes
1 answer

Near 100% disk usage, df and du show very different results, lsof not the answer

The issue is that my CentOS 5.8 machine is telling me that I am nearly out of disk space when I am pretty confident this is not the case. I've done a fair amount of researching on this issue and have been unable to find a solution. 'df -h' shows…
edwaa
  • 49
1
2 3 4 5 6 7 8