I encourage you to please download the script inodeUsageCheck.sh from GitHub and give it try and don't hesitate to make a comment on this post if you have any issue or some suggestions to improve the script.
You can check the script here:
You should change the email address for your notification in the script and space separated multiple email addresses can defined. If you want to exclude some of the partitions then update the EXCLUDE_LIST variable and "|" (pipe) separated multiple partitions can be defined. Also, the default path to save the CSV file is /tmp/inode_usage_data.csv but if you want to change that then simply update the INODE_USAGE_DATA variable.
In a UFS volume, Inodes are numbered sequentially, starting at 0. The first two inodes are reserved for historical reasons, followed by the inode for the root directory, which is always inode 2. - Wikipedia
Any feedback will be highly appreciated.
- Bash Script: List Last Modified Files on Linux Server
- Crontab: User not allowed to access to (crontab) because of pam configuration
- Network Printer Configuration on Linux via Command Line
- udev: renamed network interface eth0 to eth1
This post appeared on the softlexicon.com by Sumit Goel. Copyright © 2012–2013 – softlexicon.com and Sumit Goel. All rights reserved. Not to be reproduced for commercial purposes without written permission.