Operating System - HP-UX
1835261 Members
2318 Online
110078 Solutions
New Discussion

How do I determine a file based upon Inode number

 
Dave Szacik
Occasional Contributor

How do I determine a file based upon Inode number

I have an error message that points to an inode. This is on a logical volume
spread over a couple of disks. Is there a way that I can determine which
physical disk this error is pointing at?
1 REPLY 1
Paul Hite_2
Frequent Advisor

Re: How do I determine a file based upon Inode number

Getting the filename from an inode number is easy:
find /mount_point -inum nnn -print

But then tracking down the physical disk adresses occupied by the file is very
hard and only a very knowledgable guru should even attempt it.

Basicly you would use fsdb to display the adresses of the file in the logical
volume and use lvdisplay -v to map the lv addresses to phyiscal disk addresses.

If you're getting disk errors at the hardware level, you should be looking at
the diagnostic logs. You use stm(1m) for this.