Something is consuming space on my server

I just upgraded my server from Sierra to High Sierra this past weekend. Right now, something is consuming all of mine hard drive space. The only services I am using on the server is mail. When I go to the finder it states that the drive is almost completely full but when I look at the items within the finder from the root of the drive very little of the consumed space is accounted for. Is there a UNIX command I can use to discover what is taking up all that space? The finder does not appear to be of much help.

MacBook Pro, macOS High Sierra (10.13.6)

Posted on Nov 14, 2018 5:16 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 15, 2018 6:16 AM

Do you have a complete and current backup? If not, I’d shut down, boot from a bootable installer on USB, boot from the recovery partition, or would use another Mac if you have the right combination of hardware for Target Disk Mode with this Mac, and I’d get a complete backup. Disk Utility to an external disk. Sometimes that’s the recovery path, too.


As I mentioned, sometimes the usage display is skewed, and rebuilding Spotlight can sometimes clear that. To poke around at usage with different tools, see below.

https://support.apple.com/en-us/HT201716

If this is a full disk, all sorts of bits of server can start failing, which writes more stuff, which fills more disk, and things get ugly.


So... start by turning off Spotlight. Off. Don’t restart it right now. I’d then reboot through Safe Mode, as that cleans up boot caches and temporary files, and sometimes that’s enough to clear up usage. (Once you’ve gotten some free space, turn Spotlight back on.)

https://support.apple.com/en-us/HT201262


For poking around at usage, df and du are the command line commands to go looking at storage usage. The following two will show the full disk, then a summary of the usage across all directories in the root directory.

df -h /

sudo du -shx /

The man pages will provide a few more details.


If you have add-on anti-malware, add-on anti-virus, add-on cleaners, optimizers, or network-monitoring and security tools, disable those for now (remove them if you can manage it and continue working to resolve this. (Add-on tools have a long history of not doing what they claim or not doing it well, or introducing interesting new and strange behaviors or corruptions, unfortunately.

6 replies
Question marked as Top-ranking reply

Nov 15, 2018 6:16 AM in response to Paul Kleeberg

Do you have a complete and current backup? If not, I’d shut down, boot from a bootable installer on USB, boot from the recovery partition, or would use another Mac if you have the right combination of hardware for Target Disk Mode with this Mac, and I’d get a complete backup. Disk Utility to an external disk. Sometimes that’s the recovery path, too.


As I mentioned, sometimes the usage display is skewed, and rebuilding Spotlight can sometimes clear that. To poke around at usage with different tools, see below.

https://support.apple.com/en-us/HT201716

If this is a full disk, all sorts of bits of server can start failing, which writes more stuff, which fills more disk, and things get ugly.


So... start by turning off Spotlight. Off. Don’t restart it right now. I’d then reboot through Safe Mode, as that cleans up boot caches and temporary files, and sometimes that’s enough to clear up usage. (Once you’ve gotten some free space, turn Spotlight back on.)

https://support.apple.com/en-us/HT201262


For poking around at usage, df and du are the command line commands to go looking at storage usage. The following two will show the full disk, then a summary of the usage across all directories in the root directory.

df -h /

sudo du -shx /

The man pages will provide a few more details.


If you have add-on anti-malware, add-on anti-virus, add-on cleaners, optimizers, or network-monitoring and security tools, disable those for now (remove them if you can manage it and continue working to resolve this. (Add-on tools have a long history of not doing what they claim or not doing it well, or introducing interesting new and strange behaviors or corruptions, unfortunately.

Nov 14, 2018 6:52 AM in response to Paul Kleeberg

Use the storage usage setting under the system information under the about this Mac (there’s a very useful display buried under some button like “advanced” or “manage” or some such), or load the Grand Perspective tool and have a look around.


http://grandperspectiv.sourceforge.net/


Lots of potential causes for a server to fill its storage. Misconfiguration, breach, corruption, etc.


Console.app can sometimes point to a culprit, though that display tends to be cryptic and ominous even when everything is working correctly. Look for rapidly repeating blocks, most commonly.


(I’ve seen reports that the storage tab can occasionally misreport, though I’ve not encountered that case. If that happens, a Spotlight rebuild might help.)

Nov 17, 2018 11:27 AM in response to MrHoffman

Thank you all for your help. As it turns out, this is an older issue with Spam assassin when you upgrade from one operating system to another. https://discussions.apple.com/thread/8102260 It appears that bayes_toks starts consuming massive amounts of disk space. Some have reported that they would see it use a gigabyte within minutes. I discovered this too late. I'm now setting up the server from scratch and hoping I can import all of my old email that is on one of my clients.

Nov 14, 2018 8:36 PM in response to MrHoffman

I am not sure if this is a repeat. I just uploaded a reply and it seemed to disappear. Still no luck


Tried what you suggested

Use the storage usage setting under the system information under the about this Mac (there’s a very useful display buried under some button like “advanced” or “manage” or some such)

This is what I got:


User uploaded file


Had an alias to the photos library on an attached USB and deleted it. No change.


Could not find "advenced" so I selected Manage... and got tihis:


User uploaded file


Note that the photos library is larger than my SSD.


Cannot attach photos to a new library,. No space. Detaching the drive with the photos library does not help as well.


Could not download Grand Perspective. No space and have removed all I could, but as soon as I do, it is consumed.


Cannot use TimeMachine to back it up. No space on source to allow for backup to start.


In the server error log, I get the message that Volume VM is full (whatever that is) and Volime MiniServer SSD is full.


Poked around in terminal but did not have any clues as to where to look.


I guess the only thing left to do is put it in target mode when I get home and see if gives me better info. Until then, no email.


Any ideas?


Paul

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Something is consuming space on my server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.