Drive / (root) is 100% full in Security Analytics

book

Article ID: 220555

calendar_today

Updated On:

Products

Security Analytics Security Analytics - VA

Issue/Introduction

Pink banner in the Security Analytics GUI shows:  "Stopping all reports and extractions.  Drive / is 100% full. Metric=bytes, Threshold=90

You may see an "Internal Error" when trying to log in to the web interface.

Cause

The / partition or the root partition must have free space in order for the system to behave properly.  Temporary files are constantly being added and updated.  If root is full, it can cause all sorts of side effects such as not being able to log in. 

Resolution

There are certain directories that should be checked to see if there are large files taking up space.  This exercise is best done when you can compare the command output with a healthy appliance.

First confirm that root is full using the 'df -h' command at the command line while logged in as root.  

You should see something like this (sizes will vary depending on the OS version you are running):

Filesystem             Size  Used Avail Use% Mounted on
/dev/sda4              7.6G  7.6G   0 100% /

You can use this command to check the sizes of each directory beneath ' / ' :

du -h --exclude=/pfs --exclude=/etc/solera/flows --exclude=/var --exclude=/home --exclude=/ds --exclude=/gui --exclude=/run --exclude=/dev --exclude=/proc --exclude=/boot / | sort -h

This will produce a long list of directories sorted with the largest directories at the bottom.  Anything with sizes in the GB range should be checked.

Normal culprits where large files may exist are in the following directories:

/tmp  (look for old csr. files and delete them)

/opt/prelert/prelert_home/logs/elasticsearch  (delete any large files)

/usr/share/jsunpackn/temp/  (delete any large logs)

/root  (look for a file called 'dead letter' and if it is large, delete it)

/ (look for a large file called MegaSAS.log and delete it. Upgrade to SA version 8.1.2 or greater to prevent this file from growing large again)

Once large files have been deleted, the appliance may need to be rebooted for the disk cleanup process to finalize.  If you are nervous about deleting files, contact technical support for guidance.

Additional Information

Related to: /var partition is filling up on Security Analytics and how to clean up disk space