Questions tagged [df]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
247 votes
17 answers
482k views

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....
-1 votes
2 answers
243 views

MariaDB Docker lagre db/binlog.* files. Overflows the disk to the point of failure

How to Fix? ls -lh /root/docker/yml/nextcloud/db/binlog.* -rw-rw---- 1 999 999 960M Aug 25 22:55 /root/docker/yml/nextcloud/db/binlog.000043 -rw-rw---- 1 999 999 5.5M Aug 25 23:52 /root/docker/yml/...
0 votes
5 answers
555 views

df output does not change after deletion of a 41G file

Maybe my understanding of what df does is incorrect? I am wondering what is the problem here 1. checking usage $ sudo df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda1 443G ...
0 votes
1 answer
6k views

Linux 'df' command not showing root filesystem?

I'm using Ubuntu 14.04 at Rackspace. What could cause the root fs to not appear here? # df Filesystem 1K-blocks Used Available Use% Mounted on none 4 0 4 0% /sys/...
0 votes
0 answers
62 views

df reports zero used space

On a VM in azure we mount some blob storage via NFS, which generally works good. I now found though, that df reports wrong values for usage of the NFS storage: root@myVM:~# df -h /mnt/blob/ Filesystem ...
0 votes
0 answers
18 views

Centos 7.4, dev/vda1 is 100% [duplicate]

My VPS on DO now has an issue of dev/vda1 is 100% since around 3 months ago, at that time, I did poweroff & reboot then disk spaced freed. But the thing rans into some bigger issue since 1 week ...
0 votes
4 answers
2k views

How to hide tempfs from the df output on CentOS 7 in ssh?

I know this can be done because I've done it before on previous servers but I forgot how and web searches did not come up with the result. I know what tmpfs is and that you should not remove it. What ...
0 votes
1 answer
465 views

Difference between Volume Disk Space and Disk usage returned by ncdu [duplicate]

My server has a 130 GB Volume attached. To check the free disk psace, I run df -h -x tmpfs -x squashfs | grep -v /run/shared and I get : Filesystem Size Used Avail Use% Mounted on udev ...
0 votes
2 answers
2k views

df -h shows / is 100% but du -sh * is not showing where the utulization is [duplicate]

OS: Oracle Linux 7.5 df -h keeps showing that / is 100% full but searching on / with du -sh * is not showing where that utilization could possibly be, any help and suggestions will be appreciated. I ...
0 votes
1 answer
2k views

Find what is using disk space in CentOS 7 (du vs df vs lsof)

I have a server, CentOS 7, that show disk usage on DF way higher than you can see on DU and I trying to understand why DF shows 38GB used DU shows 14GB There is no mount point on any folder Checking ...
1 vote
0 answers
192 views

What accounts for mystery hard drive space gone missing? (Difference between df and du)

To preface: there are lots of other useful questions (e.g. this and this) on possible causes for different sizes reported by df and du. None of the explanations apply to my exceedingly simple case, ...
1 vote
1 answer
435 views

why iostat not showing one of my disk?

Please check the picture below. The df shows /dev/xsda mounted But iostat not showing the device. Why? [admin] /dev]$df -h | grep '/dev' tmpfs 64M 0 64M 0% /dev /dev/nvme1n1 7.0T ...
4 votes
6 answers
24k views

How to view if partitions primary or secondary in Linux

How do I view my partitions if they are primary or secondary in Linux CentOS? I tried df -T but it does not show if partitions are primary or secondary.
0 votes
1 answer
1k views

Can't get disk space back after running out of space (and removing some files) in Ubuntu 18.04

This is driving me crazy! My server run out of space. I cleaned up some files by removing the folders. The amount of free space didn't go up (% wise). This is what I now see: As you can see, it shows ...
0 votes
0 answers
64 views

Why did I suddenly gain 300GB on my server

I've been working on my server all day, doing various things. I know, unquestioningly (found the evidence by scrolling up in one of my terminal sessions) that I had about 900GB of space 4 hours ago. ...
0 votes
0 answers
71 views

df shows negative bytes used.... only during dd

I have begun a dd to copy a partition on one usb drive, to a 2nd usb drive. While I have freshly reformatted the destination partition (/dev/sdc1), and it checks out with fsck normally and shows it is ...
0 votes
1 answer
872 views

Clarification on understanding Linux disk usage with df and how tmpfs should be assessed

I have searched serverfault, SO and other sites but could not find a clear answer. I have done some reading on the basics of Linux storage and filesystems, but I'm still unclear about how to solve my ...
2 votes
1 answer
2k views

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% ...
0 votes
0 answers
336 views

Weird discrepancy in size between fdisk and df

fdisk reports the following info about a partition Device: /dev/sda1 Boot: * Start: 2048 End: 209715166 Sectors: 209713119 Cylinders: 443369 Size: 100G ...
3 votes
3 answers
25k views

gzip "No space left on device"

Using gzip 1.3.12 / ubuntu 64bit I am getting "No space left on device" yet there appears to be plenty of disk space remaining. gunzip 03-05-2012--22-52-01.tar.gz gzip: 03-05-2012--22-52-01.tar: No ...
0 votes
4 answers
4k views

Filesystem full with 'df' but seems actually not

On my AIX 6.1 server, i have a problem on a VIO LPAR. A filesystem seams to be full with the 'df' command, but not with 'du' or 'ls' for example. I searched but I don't understand where the problem ...
2 votes
1 answer
4k views

Why does df say my EFS disk has a capacity of 8 Exabytes?

This is a screenshot from my AWS EC2 instance, which the EFS disk is mounted on: How can this be?
1 vote
2 answers
452 views

raidz1 6x4TB = 16.9t?

I an running Ubuntu server with the latest version of zfs-utils. I installed 6x4TB disks (lsblk -b shows all disks partition 1 size=4000787030016) and created a raidz1 configuration with all 6 disks. ...
0 votes
1 answer
772 views

df shows low disk space. It includes a directory which uses mount --bind for chroot sftp

I've setup a chroot environment for sftp access (sftp only, no shell). The sftp user needs rw access to a host directory. I mounted it via /etc/fstab /var/www/html /home/sftp-user/jail/html none ...
2 votes
0 answers
99 views

df differs from du a lot, nfsd service seems matter

I know there have been a lot of discussion on the df/du discrepancy topic. But here I’d post a special issue and ask for some hints. here is the detail( with a hardware raid5 with 6 sas disks) system ...
0 votes
1 answer
154 views

df command reports that drive is full, even though it is not

When I run df -h (Debian 10, 32-bit), I get this: root@valor:~# df -h Filesystem Size Used Avail Use% Mounted on udev 488M 0 488M 0% /dev tmpfs 100M 5.4M 95M 6% /...
0 votes
1 answer
1k views

tracking down a bash process for a df command

I’m using the tips on this SO thread. ps -awux|grep df root 15826 0.0 0.0 0 0 ? I< May22 0:00 [cifs-dfscache] myuser 3086246 0.0 0.0 216860 3212 ? Ss 16:06 ...
2 votes
2 answers
4k views

increase the space in var partition on Debian GNU/Linux 10 (buster)

I'm running docker containers on my machine which puts it all in /var/. DF shows that /var/ is 6.9G and no free space. The Linux system is running under VMWare and I've given the server extra 100 GB'...
0 votes
0 answers
16 views

Partition at 51% with df while folders are empty? [duplicate]

I need some help on this one. I use a test server which is Debian 10 with Docker's containers (all these inside a XCP-NG server). # df -h Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur /...
6 votes
1 answer
13k views

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 ...
0 votes
1 answer
172 views

Which directories are not consiered by df?

I've used df -h to show me my disk usage: Filesystem Size Used Avail Use% Mounted on /dev/sda2 558G 249G 308G 45% / udev 10M 0 10M 0% /dev tmpfs 6.3G 8....
4 votes
1 answer
2k views

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 ...
1 vote
1 answer
329 views

fdisk -l show 500GB, df -h show 240 gb

after incrase the disk space of my centos vm (in esxi hypervisor) when i execute fdsik [root@sopiqecommerce ~]# fdisk -l Disk /dev/sda: 504.7 GB, 504658657280 bytes, 985661440 sectors Units = ...
1 vote
1 answer
2k views

df requires root to show all disks

I am using CentOS Linux 7 (Core). I have an issue with df command: it do not show all disks without root. Compare: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/...
0 votes
1 answer
803 views

df not showing subdirectories, only "multiple" parent directory

For example, we have directory structure: Root Directory Directory #1 Subdirectory #1 Subdirectory #2 Subdirectory #3 Directory #2 Directory #3 Now I'm using df -h to check disk usage but: ...
2 votes
1 answer
2k views

Mounts happening on boot, but not defined in /etc/fstab

On every boot, my machine (CentOS 7) mounts all these: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 30G 2.6G 28G 9% / devtmpfs 287M 0 287M 0% /dev ...
-3 votes
1 answer
230 views

how do i understand where a directory is mounted?

Ubuntu / DigitalOcean I have a drive that is almost full but I have mounted a storage device. But I can't tell if a particular directory is on the external device or not. I thought I mounted the ...
0 votes
1 answer
446 views

CentOS 7 disk space [duplicate]

I have a Centos7 server in which when executing the command df -h the occupied disk space is of 90GB but if I do a du -sh / * the sum of all directories does not correspond to 90GB, in this case it is ...
1 vote
2 answers
638 views

df shows 2 GB size fdisk shows 60 GB

My newly purchased KVM based VPS (virtual server) running Centos 7 shows a - to my mind - odd result for the df -h command versus fdisk -l and ssm list. I've put the output of various disk related ...
1 vote
0 answers
1k views

Mounted device showing in df and /etc/mtab but missing from /proc/mounts and /proc/self/mounts. Why?

I have an ec2 instance that is booted from an ebs snapshot. The boot device is /dev/sda1. When I call mount, df -h or cat /etc/fstab I can see the device: $ mount /dev/sda1 on / type ext3 (rw) $ df -...
0 votes
1 answer
48 views

df reporting incorrect disk utilization

Why df reporting incorrect disk utilization report $ df -h /shareddata Filesystem Size Used Avail Use% Mounted on /dev/mapper/share_vg-lv_shareddata 886G 830G 11G ...
0 votes
2 answers
2k views

Centos Server no disk space but df says there is plenty [duplicate]

my Centos tells me that I have no disk space left: [root@zff isos]# touch test touch: cannot touch ‘test’: No space left on device But df tells me that I have plenty of space left: [root@zff isos]# ...
-2 votes
1 answer
256 views

df -h says / fs is taking 61G of space but its not [duplicate]

df -h in my redhat 7 is reporting its taking 61G of space. This should be wrong because there shouldn't be anything there which is this big. Other server with the same configuration reports only 11G. ...
0 votes
1 answer
2k views

Ubuntu thinks disk is full, df says disk usage is at 100% but also says 132G/400G is in use [duplicate]

Other applications are saying the disk is full as well, any ideas? Here's the output from df -h Filesystem Size Used Avail Use% Mounted on /dev/simfs 400G 132G 714M 100% / none ...
4 votes
1 answer
9k views

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 ...
7 votes
1 answer
11k views

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 ...
0 votes
2 answers
204 views

df -h show system full even after clearing bloated log folder [duplicate]

I had my php_errors.log file fill up the system, I deleted the error logs, but when I type df -h www/folder_name Filesystem Size Used Avail Use% Mounted on bindfs 7.8G 7.4G 379M 96% ...
-1 votes
1 answer
528 views

Changing the filesystem name in df

Currently in our code we check for disk space usage to stop doing something if the filesystem is above 95% in disk space usage. The way I'm checking for that is : diskusage=$(df -P | grep "/dev/...
0 votes
1 answer
83 views

What is stored on a LVM LogicalVolume

I have setup a LXC container with LVM as backingstore. On the host the command lvs --units m outputs the following: LV VG Attr LSize Pool Origin Data% Move Log Copy% ...
2 votes
1 answer
10k views

Mount updates /proc/mount but not /etc/mtab, making partition not show up in df, mount listing

I'm on RHEL 6. I created some partitions using parted, formatted them using mke2fs, and mounted them using mount. I also added them to /etc/fstab. However, they do not show up in the mount or df ...