- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Same inode numbers?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:28 PM
05-02-2006 06:28 PM
I am printing the inode numbers of directories which are mounted under /mnt/
bash-2.02# ls -i /mnt/
136712 vol 2 vset1 2 vset2 2 vset3 2 vset4
As can be seen all vset1 to vset4 have same inode numbers.
Can any one explain?
Thanks a lot.
Prasad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:53 PM
05-02-2006 06:53 PM
Re: Same inode numbers?
it can happen if the file are hard link.
# cd /test
# touch hehe
# ln hehe haha
# ls -i
21 ren 21 war
GOOD LUCK!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 06:59 PM
05-02-2006 06:59 PM
Re: Same inode numbers?
It happens only when you have hard links on /mnt. Check ll /mnt to find it out.
Also, take a look at http://en.wikipedia.org/wiki/Inode for a detailed explanation about inode.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 07:51 PM
05-02-2006 07:51 PM
SolutionIn the following case, it is a special case not a hard link per say. If you notice though the inodes are identical , the value is 2. It means, it is a directory on which a filesystem is mounted. Thats because the root inode of any filesystem is "2". If you unmount the filesystems on these vset* directories and run the same command again, you will notice that the inodes will not be identical anymore.
To know more about this internal concept I recommend you to go through a book titled...
The design of the UNIX operating system - Maurice J. Bach
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 08:07 PM
05-02-2006 08:07 PM
Re: Same inode numbers?
As you can see from this output
bash-2.02# ls -li
total 8
136712 drwxr-xr-x 2 root root 96 Apr 27 17:28 vol
2 drwxrwxrwx 6 root root 1024 May 3 13:23 vset1
2 drwxrwxrwx 5 root root 1024 Apr 27 17:34 vset2
2 drwxrwxrwx 5 root root 1024 Apr 27 17:34 vset3
2 drwxrwxrwx 5 root root 1024 Apr 27 17:34 vset4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 08:17 PM
05-02-2006 08:17 PM
Re: Same inode numbers?
Just for confirmation, can you see the output of the command, "bdf" or "df -k" and see whether thay are mountpoints or not ?
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2006 09:27 PM
05-02-2006 09:27 PM
Re: Same inode numbers?
I checked with the BACH. It is a valid behavior.
Thanks a lot for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2006 08:16 PM
05-03-2006 08:16 PM
Re: Same inode numbers?
Andrew