Advertisements

UXMON: Inode utilization of /var/opt exceeds 90 threshold

root@linux:/var/opt # df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vgroot-lv_var_opt
327680 308929 18751 95% /var/opt

I found a script at this page – How to Free Inode Usage?

Create a file and then run the script to find which directory are holding the most files

#!/bin/bash
# count_em – count files in all subdirectories under current directory.
echo ‘echo $(ls -a “$1” | wc -l) $1’ >/tmp/count_em_$$
chmod 700 /tmp/count_em_$$
find . -mount -type d -print0 | xargs -0 -n1 /tmp/count_em_$$ | sort -n
rm -f /tmp/count_em_$$

Most files are inside /var/opt/OV/log/OpC

root@linux:/var/opt/ # ./inodes.sh

457 ./osit/acf/log
599 ./newid
849 ./osit/linux/log/bdf.statistics
5066 ./erm/save
172726 ./OV/log/OpC

Deleted the files that I saw were unnecessary and it decreased inode consumption

root@linux:/var/opt # df -i .
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vgroot-lv_var_opt
327680 181506 146174 56% /var/opt

Advertisements
%d bloggers like this: