LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-15-2005, 02:11 AM   #1
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
Question Inode allocation question.


When I read Solaris Test questions, I get this question and unknown which is the correct answer. Please help me:
Quote:
Question:
You use the ufsrestore command to extract the whole content of a file system (stored to tape with ufsdump) onto another file system. Which statement about inode allocation is true?

Answer:
A. The new file systems inodes are allocated successively as the files are restored, independent of the inode numbers recorded to tape.

B. ufsrestore consults the inode map in each cylinder. If an inode to be restored is already allocated, ufsrestore quits with a fail message.

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

D. ufsrestore tries to allocate inode numbers for the restored files as they are recorded on tape and evades to new, unallocated inodes whenever an inode number is already allocated in the file system.
I choose A. Is it correct?
 
Old 11-15-2005, 02:18 AM   #2
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
From LQ Rules (http://www.linuxquestions.org/rules.php):

Do not expect LQ members to do your homework - you will learn much more by doing it yourself.
 
Old 11-15-2005, 02:22 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
That said, A make sense, B & C do not, and D is overkill ...
 
Old 11-15-2005, 03:57 AM   #4
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
It's not my homework, it just a test which I tried on internet. I chose A but the answer of test engine is C so i'm very confused.
 
Old 11-15-2005, 04:36 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
Interesting, we already discussed this question 6 month ago:
http://www.linuxquestions.org/questi...hreadid=325645

Can you point to the Internet test ?

Anyway, C may be correct, a full restore is different from a partial one, and would perhaps explain this part of the manual pages, which still confuses me:
Quote:
A level 0 dump must be done after a full restore. Because
ufsrestore runs in user mode, it has no control over inode
allocation. This means that ufsrestore repositions the
files, although it does not change their contents. Thus, a
full dump must be done to get a new set of directories
reflecting the new file positions, so that later incremental
dumps will be correct.
 
Old 11-15-2005, 07:00 AM   #6
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
Great. I forgot that I had had the same question in the past. At this time, i didn't have Sun, just reading book to study. Now, when I get one, i continue....

I get this question from testking.com

I'm not good at English so that I don't really understand option C. As I understand, it is: "ufsrestore will overwirte the current inode numbers in destination system by the new inode numbers recorded on tape. After restore, we can see the inode numbers of files on new system are the same as files on old system."

I think it possible when we make full restore (as clone disk to disk).

Reading the question carefully and your reply "a full restore is different from a partial one", I remember to "clone disk to disk".

Perhaps, the key words in this question is "the whole content of a file system". If it's just a part of system, the inode number of file on new system will be allocated new, independent of the inode numbers recorded to tape as option A. Am I right?
 
  


Reply



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
Question about RAM allocation and what 'seems' like very odd swap use NoeticRapture Slackware 8 06-25-2005 03:08 PM
Cross-module in-place new allocation question (C++) ta0kira Programming 0 11-14-2004 09:19 AM
about inode eshwar_ind Programming 3 04-24-2004 02:39 PM
question about inode size PTBmilo Linux - General 2 03-02-2003 02:20 PM
Memory allocation question! alexzander Programming 3 01-24-2003 10:26 AM

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

All times are GMT -5. The time now is 03:18 AM.

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