NOTE: To see a list of files that represent the best candidates for deleting to free up disc space refer to the Knowledge Base article:"Clearing up space when the hard drive is full"http://kb.airwave.com/?sid=50140000000Mf6tThe following command combinations use the UNIX find command to generate a list of the largest files on the server. This can be helpful if you need to free up disc space.This combination generates a sorted list of all files larger than 20 MB:# find / -type f -size +20M | xargs du -h | sort -nrThe output will look something like this:1016M /var/airwave/dbm/async_logger_client721M /var/lib/airwave/cache/fastmmap/trigger_window_history480M /var/lib/airwave/cache/fastmmap/bw_tracker245M /root/AMP-6.1.1-cvs.tar.gz181M /var/lib/airwave/cache/fastmmap/rap_state160M /var/airwave-backup/nightly_data002.tar.gz160M /var/airwave-backup/nightly_data001.tar.gz159M /var/airwave-backup/nightly_data004.tar.gz159M /var/airwave-backup/nightly_data003.tar.gz159M /alternative/databackup.tar.gz155M /var/airwave-backup/pre-upgrade-6.1.1-data.tar.gzNOTE: Files large enough to have a GB designation will appear at or near the bottom of the list.If you'd like more detail in the list, like file ownership, etc., try this combination:# find / -type f -size +20M | xargs ls -lh -SThe output will look something like this:-rw-r--r-- 1 root root 1015M Oct 23 12:19 /var/airwave/dbm/async_logger_client-rw-r----- 1 apache apache 720M Jan 12 15:08 /var/lib/airwave/cache/fastmmap/trigger_window_history-rw-r----- 1 apache apache 480M Jan 12 15:08 /var/lib/airwave/cache/fastmmap/bw_tracker-rw-r--r-- 1 root root 245M Oct 24 14:43 /root/AMP-6.1.1-cvs.tar.gz-rw-r----- 1 apache apache 180M Jan 12 15:08 /var/lib/airwave/cache/fastmmap/rap_state-rwxr-x--- 1 root apache 160M Jan 12 04:19 /var/airwave-backup/nightly_data001.tar.gz-rwxr-x--- 1 root apache 160M Jan 11 04:19 /var/airwave-backup/nightly_data002.tar.gz-rwxr-x--- 1 root apache 159M Jan 9 04:19 /var/airwave-backup/nightly_data004.tar.gz-rwxr-x--- 1 root apache 159M Jan 10 04:19 /var/airwave-backup/nightly_data003.tar.gz-rw-r--r-- 1 root root 159M Oct 28 11:35 /alternative/databackup.tar.gz-rwxr-x--- 1 root apache 155M Oct 24 04:32 /var/airwave-backup/pre-upgrade-6.1.1-data.tar.gzfind / -type f -size +1000000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.