Questions tagged [du]

72 questions
2
votes
0 answers

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 info of nfs server/client: [root@ndio06 ~]# cat…
Guangyu wu
  • 21
  • 2
1
vote
2 answers

logrotate status files extremely large

Apache2 on an Ubuntu 16.04 box was showing issues on the websites it's hosting. It was at 100% capacity. Looking further with du, The majority of the ~100gb hard drive was filled by two files in /var/lib/logrotate/. logrotate has files in there…
Angelo
  • 111
  • 1
  • 4
1
vote
1 answer

Dir size increases after rsyncing to a different machine with same configuration

Have a MySQL (percona, 14.14 Distrib 5.6.28-76.1) machine with a 1TB SSD hosting around 712Gb of mysql data. MySQL has 4 databases, with, say database1, taking major space, 656Gb. Lets call this machine machine1. Want to rebuild another MySQL DB…
Gautam Somani
  • 296
  • 3
  • 14
1
vote
3 answers

How to find which folder is eating space fast?

I am running Linux server, we using this server as a samba share drive. From yesterday suddenly, one of the share drive size getting increasing (~ 100 MB every ten min). There are too many folders and sub folders are there in this share drive. Now…
sridhar raj
  • 41
  • 1
  • 1
  • 3
1
vote
0 answers

finding directory size on linux with du reports errors when files are deleted during command

I'm trying to find out the directory size of a folder to determine if a user has rights to keep writing to the folder (i.e. they are within the given limits I've imposed). I'm doing: du -sb which is fine and all, but the problem is if whilst…
TheStoneFox
  • 141
  • 1
  • 7
1
vote
2 answers

How to limit du output to a specific user?

I need to help a specific user, say alice, free up some disk space; but not all the user's files are in his home directory; many are in directories shared with other users. I'd like to have something like the output of du -sh * but limited to the…
Antonis Christofides
  • 2,598
  • 2
  • 23
  • 35
1
vote
1 answer

Different output by df and du

I have an old RHEL 5.5 Box, When I fire df -kh I see that /var is of 49 GB with 100 % usage. But then I go inside the /var cd /var and I fire du -kh I see that only total 300 MBs are used. I am not able to get it. Is is possible that this…
user1263746
  • 189
  • 3
  • 8
1
vote
1 answer

I can't find the ghosts taking up space on my hard drive

Possible Duplicate: How do I find out what is using up all the space on my / partition? No Free disk space $df -h returns /dev/sda1 16G 16G 0 100% / tmpfs 502M 0 502M 0% /lib/init/rw udev …
David Vasandani
  • 256
  • 3
  • 13
1
vote
4 answers

Cross-platform, human-readable, du on root partition that truly ignores other filesystems

Edit 09/20/2012 I made this way too complicated before. I believe that these commands are actually the simpler way, while still formatting everything nicely. RHEL 5 du -x / | sort -n |cut -d\/ -f1-2|sort -k2 -k1,1nr|uniq -f1|sort -n|tail…
nice_line
  • 149
  • 2
  • 7
1
vote
1 answer

Server was ok for space on /, ran du -s, now server is at 100% usage on /

Our server running RHEL 4 apparently ran out of space today. It was working fine and I decided to run a du -s on an unused directory of files to see how much space we would free deleting it. Upon returning from the break room, the server was…
Lucas
  • 11
  • 1
1
vote
1 answer

why are du -b and du -k different so much

I am using Ubuntu 16.04.5 LTS, and the version of du is 8.25. Now I have a question: $ du -b /var/log/lastlog 69788251412 /var/log/lastlog the size matches command ls -al. While I use du -k, it has another result: $ du -k /var/log/lastlog 80…
gyd
  • 11
  • 1
1
vote
0 answers

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, however, hence this new question. I have a very…
crazygringo
  • 111
  • 2
1
vote
1 answer

(rsync on) mounted volume: hard links seem to be preserved, but space calculated as full files

I'm trying to set up a space-efficient rotating backup scheme with rsnapshot / rsync from a server to a Hetzner storagebox. I'm having a hard time understanding how hard links on the destination are affecting the disk usage being reported. In short:…
rvdb
  • 319
  • 1
  • 5
  • 14
1
vote
1 answer

speeding up du (maybe use ncdu) for backups with hard links

du -hc --max-depth=1 /home/back/tvppclientarea/ | sort -k2 To show the size of backup directories that use rsync and hard links. The command lists each directory and shows the amount added to the previous directory, i.e. how big each backup…
Ben Edwards
  • 341
  • 4
  • 13
1
vote
0 answers

Why does `du` on CentOS 7 show 1 value, but it shows a different value on CentOS 8?

I just finished migrating a mail server from CentOS 7 over to CentOS 8. The mail store was in /var/vmail. The data was migrated with rsync: rsync -rltDPH /var/vmail/* root@new-hostname:/var/vmail/ I ran du -skh inside /var/vmail on the old (CentOS 7…
David W
  • 3,453
  • 5
  • 36
  • 62