LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-21-2005, 07:49 AM   #1
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
iNode number, how does it change?


Hi,

I'm learning Solaris. I have this question.

If i use ufsdump to backup my file system to tape. Later, I use ufsrestore command to extract whole content the content of file system onto another file system. Does the inode number change?

It will get new number belong to new file system, independent of inode recorded to tape and old file system. Or the inodes are allocated such that the inode numbers after the restore are identical to the inode numbers recorded on tape, effectively overwriting inodes that had been allocated before the restore.

Please help me to clear this process.

Thanks.
 
Old 05-21-2005, 08:55 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
I think that Inodes are assigned depending on the file's position on the disk, after you restore you will probably need to update any hard links. Try it with a test file and a hard link to that file, if the link is broken after a restore then the Inode has changed.
 
Old 05-21-2005, 11:18 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Inodes numbers stored on the backup are not used when files are restored.
The restored files inodes are created on the fly and are unrelated to the previous ones.
 
Old 05-21-2005, 10:35 PM   #4
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
So the inode number on the new file system is quite different with the old on the old file system and backup tape. I don't have any Solaris machine now (i've just learn about it) so cannot test to see how it change.

Thanks for your help.
 
Old 05-22-2005, 04:38 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There are cases where it must be different, for example if you restore in another directory the old version of a file still present on the file-system, as obviously you cannot have two different files sharing the same inode.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with cpio: truncating inode number abefroman Linux - Software 2 08-30-2006 10:52 AM
System Manager to modify inode number in USB Flash drive asaba Linux - Software 2 03-09-2005 03:12 AM
What can change an inode number? nc101 Linux - General 2 01-03-2005 10:29 AM
Bash script to change a filename associated with an inode index number. Ziv Programming 22 06-19-2004 08:41 AM
why did this inode change? jlangelier Linux - Security 1 08-10-2003 09:49 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration