How to find the largest 10 files or directories in On-Premises (SecureSphere)_
How to find the largest 10 files or directories in On-Premises (SecureSphere)_
Knowledgebase On-Premises WAF Database Activity Monitoring File Activity Monitoring Security for SharePoint
Customer
Explanation:
When a partition approaches full capacity in On-Premises (SecureSphere), it can lead to many issues. For example, a gateway may
receive the message “Minimum disk space reached, data is lost.”
Minimum disk space is defined by default to either 30% of the partition left (or minimum 24GB). When this happens, auditing will stop
and data may be lost.
Solution:
The CLI command df -kh will give you details on the partitions in On-Premises (SecureSphere) as shown below.
If you need to find which files or directories that are consuming the most space, you can use the following commands:
10 Largest Files
find . -type f -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
10 Largest Directories
find . -type d -print0 | xargs -0 du | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
Once the files that are consuming the space are identified, you can remove files that are not needed to free up disk space.