HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Showing results for 
Search instead for 
Did you mean: 

Inodes Status

Go to solution
Frequent Advisor

Inodes Status

Is it possible to determine what inode numbers are assigned, being used and not used.
James R. Ferguson
Acclaimed Contributor

Re: Inodes Status


I'm not sure why you care, but:

# ls -il /path | sort -kn1,1

...will show the numbers in use for a filesystem. Remember, inode numbers are only unique within a filesystem. That is, different files in different filesystems can be represented by the same number. The mountpoint for is always two (2).



Re: Inodes Status

You can get counts with "bdf -i".

>JRF: ls -il /path | sort -kn1,1

If you wanted all of them:
# ll -iR /path | sort -n -k1,1
Suraj K Sankari
Honored Contributor

Re: Inodes Status


You can use "sar -v 2 10" which returns only the number of processes & maximum number of processes running on your system, and also open inodes and open files.

sar -v 1 1
08:06:08 text-sz ov proc-sz inod-sz ov file-sz ov
08:06:10 N/A 0 656/1072 0 900/900 656/656 0

Frequent Advisor

Re: Inodes Status

Thanks guys,

Also is it possible to determine bad inodes?

Re: Inodes Status

>is it possible to determine bad inodes?

Use fsck(1m).