Questions tagged [disk-space-utilization]

For questions related to disk space utilisation.

For questions related to disk space utilisation.

602 questions
20
votes
5 answers

Best way to prevent the root system filling up when a mount fails?

We have an internal web server (virtualized, hosting ReviewBoard, but not super relevant) and we have a relatively consistent failure mode with failed NFS mounts causing / to fill up. Distro is Ubuntu (don't ask) if a solution depends on a different…
Peter
  • 303
  • 2
  • 6
19
votes
4 answers

"No space left on device" error despite having plenty of space, on btrfs

Almost everywhere I'm getting failures in logs complaining about No space left on device Gitlab logs: ==> /var/log/gitlab/nginx/current <== 2016-11-29_20:26:51.61394 2016/11/29 20:26:51 [emerg] 4871#0: open() "/var/opt/gitlab/nginx/nginx.pid" failed…
Austin
  • 295
  • 1
  • 2
  • 7
19
votes
6 answers

How can I move /var/log directory

On our production server there is a small drive for the root mount point /, /var/log is taking too much space and I have to manually delete some files. How can I move /var/log/ to let's say /home/log WITHOUT REBOOTING? Here is the thing I thought: $…
Razique
  • 2,276
  • 1
  • 19
  • 23
19
votes
11 answers

How does one find which files are taking up 80% of the space on a Linux webserver?

The drive is constantly filling up. You've hunted down all the spare and random files you can. grep'd for coredump files and even removed some of the un-needed backups... What would be your next move. The actual server in question has 10GB of…
Gareth
  • 8,573
  • 13
  • 44
  • 44
19
votes
8 answers

Find largest directories/files recursively

I'm looking for a script/program which will display the top x largest directories/files and then descend into those folders and display the x largest directories/files for a configurable depth. 231MB bin - 220MB ls - 190MB dir - 15MB def -…
Robert Munteanu
  • 1,644
  • 5
  • 23
  • 41
17
votes
7 answers

Out of disk space, what's the source?

Filesystem Size Used Avail Use% Mounted on /dev/sda1 220G 220G 0 100% / none 1.9G 168K 1.9G 1% /dev none 1.9G 0 1.9G 0% /dev/shm none 1.9G 52K 1.9G 1%…
Moak
  • 734
  • 3
  • 10
  • 31
16
votes
2 answers

How to 're-balance' data in zfs? (Make sure the data is spread amongst all striped mirrors)

Using a striped mirror (Raid 10) as an example, if two disks are expanded to four, how can the data from the two disks be 're-balanced' (spread out) amongst the two mirrors? That is, how can the files which were written to one mirror be written to…
Greg
  • 1,657
  • 5
  • 27
  • 38
16
votes
5 answers

How do I recover free space on deleted files without restarting the referencing processes?

When big files are deleted on a server, the files might still be referenced by processes, so the file system doesn't have more free space. I tried to use lsof, but it seems it didn't list the deleted files. fuser -c did better work, but the list of…
ujjain
  • 3,983
  • 16
  • 53
  • 91
16
votes
12 answers

Determine Location of Inode Usage

I recently installed Munin on a development web server to keep track of system usage. I've noticted that the system's inode usage is climbing by about 7-8% per day even though the disk usage has barely increased at all. I'm guessing something is…
Dave Forgac
  • 3,546
  • 7
  • 37
  • 48
16
votes
9 answers

Calculating total file size by extension in shell

We have a set of directories containing lucene indexes. Each index is a mix of different file types (differentiated by extension) eg: 0/index/_2z6.frq 0/index/_2z6.fnm .. 1/index/_1sq.frq 1/index/_1sq.fnm .. (it's about 10 different…
barnybug
  • 293
  • 1
  • 2
  • 7
16
votes
3 answers

How to check diskspace on SFTP server

Recently I encountered a lack of diskspace problem on a SFTP server and I realised I have no idea how to check how much is left or even the total amount. Does anyone know how to do this through an application like FileZilla or perhaps there is a…
kjetilh
  • 261
  • 1
  • 2
  • 5
14
votes
1 answer

How do I install Disk Cleanup on Windows 2012 server without installing the Desktop Experience?

The issue is simply that I want to do the best I can to clean-up/compact a VM's .vhdx drive before running the Optimize-VHD cmdlet. It's nice to use Microsoft's Disk Cleanup utility. The problem is that it's not installed by default. The official…
Granger
  • 1,160
  • 2
  • 10
  • 26
14
votes
1 answer

how to set up monit to monitor disk-space

I use monit on my server to monitor apache and mysql running. Now I want to add an alert if the disk gets too full. I added this for testing in /etc/monit/monitrc: check device rootfs with path /dev/md0 if space usage > 10% then alert I have…
rubo77
  • 2,469
  • 4
  • 34
  • 66
14
votes
4 answers

Why after deleting a 110+ GB collection, my /var/lib/mongodb directory still have same size?

I am having some troubles with MongoDB and space usage. In particular, I once used to have a large collection of about 600 million records totaling 110+ GB on disk. Recently I decided to drop it because the data was outdated, to do so I dropped the…
tunnuz
  • 427
  • 2
  • 5
  • 10
14
votes
4 answers

After deleting a large file, how long does it take `df` to pick up the change?

I deleted a 2.3GB log file on my Ubuntu server, and df doesn't seem to be picking up the change. Is there typically a delay before df can detect that a large file has been deleted?
dan
  • 847
  • 2
  • 9
  • 11
1
2
3
40 41