Questions tagged [disk-space-utilization]

590 questions
380
votes
27 answers

How can I get the size of an Amazon S3 bucket?

I'd like to graph the size (in bytes, and # of items) of an Amazon S3 bucket and am looking for an efficient way to get the data. The s3cmd tools provide a way to get the total file size using s3cmd du s3://bucket_name, but I'm worried about its…
221
votes
15 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
165
votes
18 answers

Disk full, du tells different. How to further investigate?

I have a SCSI disk in a server (hardware Raid 1), 32G, ext3 filesytem. df tells me that the disk is 100% full. If I delete 1G this is correctly shown. However, if I run a du -h -x / then du tells me that only 12G are used (I use -x because of some…
initall
  • 2,205
  • 3
  • 18
  • 19
119
votes
14 answers

How do you increase a KVM guest's disk space?

I setup an Ubuntu guest on a CentOS KVM host with initially 6GB of disk space. How do I go about increasing the Ubuntu guest's disk space from the command line? EDIT #1: I'm using a disk image file (qemu).
slm
  • 7,355
  • 16
  • 54
  • 72
37
votes
7 answers

How can I determine what is taking up so much space?

I was using df -h to print out human readable disk usage. I would like to figure out what is taking up so much space. For instance, is there a way to pipe this command so that it prints out files that are larger than 1GB in size? Other ideas? Thanks
syn4k
  • 569
  • 1
  • 6
  • 12
36
votes
5 answers

Centos 7 Extend partition with unallocated space

I have centos 7 server (CentOS Linux release 7.3.1611 (Core)) When I was updated my server I saw error you need extra space. But I had 20GB disk on server when I check disk spaces I saw only 4.5GB partition created and 16GB partition is free space…
kibar
  • 463
  • 1
  • 5
  • 8
31
votes
6 answers

Linux server out of space

I have been asked this question in two consecutive interviews, but after some research and checking with various systems administrators I haven't received a good answer. I am wondering if somebody can help me out here. A server is out of disk space.…
Abhijeet Jahagirdar
31
votes
7 answers

Setting Low Disk Space Alerts on Windows Server 2008

I was wondering if there is an easy way to trigger an e-mail alert on Windows Server 2008 when any logical disk partitions become low on space. I have 2 SQL servers that have come close to running out of disk space because of the DB log…
29
votes
8 answers

Email hoarder intervention and education - (Exchange environment)

Throughout my career, I've encountered quite a few users who were email hoarders... I'm managing a 100-user environment where users previously had 100mb quotas and a basic Cyrus IMAP/Postfix solution. That led to lots of locally-stored mail and the…
ewwhite
  • 194,921
  • 91
  • 434
  • 799
29
votes
4 answers

Windows 2019: can't figure out why my drive is full

On a Windows 2019 Server the drive D: is 100% full (500 Gb used): I'm trying to understand why the disk is full but I can't because both File Explorer and Total Commander reports no more than 33 Gb used: It's also strange that WinDirStat reports…
Mat
  • 1,783
  • 4
  • 22
  • 39
27
votes
7 answers

Easiest way to automatically check EC2 disk space and be alerted if it is running low?

Running the Amazon Linux AMI. It seems that CloudWatch does not check for free disk space. I have a number of servers and ideally don't want to have to configure each one with a mail server, script to check disk space etc. Is there a simpler way to…
DaBeeeenster
  • 411
  • 1
  • 4
  • 7
25
votes
6 answers

Disk usage treemap software for headless Linux

There are some programs which can display used disk space using a treemap, such as WinDirStat for Windows and KDirStat for KDE/Linux: I'm looking for something similar, but for a headless Linux box. (E.g. run console data collection program on the…
Vladimir Panteleev
  • 1,705
  • 4
  • 20
  • 34
25
votes
9 answers

How much space should you leave free on a hard disk?

Is there a rule of thumb for how much space to leave free on a hard disk? I used to hear you should leave at least 5% free to avoid fragmentation. [I know the answer depends on usage (eg: video files vs text), size of disk, RAID level, disk format,…
username
  • 4,725
  • 18
  • 54
  • 78
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
20
votes
5 answers

how to use du to see files greater than a threshold size

I am having a few situations to which I do not see any thing in du man pages. I want to see files in a sub directory which are larger than a particular size only. I use du -sh > du_output.txt I see the output as described for options -s and…
Bond
  • 741
  • 4
  • 11
  • 22
1
2 3
39 40