Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.