cancel
Showing results for 
Search instead for 
Did you mean: 

Inodes Status

SOLVED
Go to solution
C_V
Frequent Advisor

Inodes Status

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

Re: Inodes Status

Hi:

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).

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

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

Hi,

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

Suraj
C_V
Frequent Advisor

Re: Inodes Status

Thanks guys,

Also is it possible to determine bad inodes?
Dennis Handly
Acclaimed Contributor

Re: Inodes Status

>is it possible to determine bad inodes?

Use fsck(1m).