Improve company productivity with a Business Account.Sign Up

x
?
Solved

Copy the dump file onto another disk in Solaris 10

Posted on 2016-11-01
15
Medium Priority
?
124 Views
Last Modified: 2016-11-06
I have a Solaris 10 machine, with that I have created a back up dump file in export/home. Now I have connected another hard drive to the same machine for restore. I have used Ufsdump to create dump file.

What are the next steps once I connect another empty hard drive?
Do I need to configure or mount or what needs to be done so that I copy the dump file into this hard drive and ufsrestore?
0
Comment
Question by:Puneeth MH
  • 8
  • 7
15 Comments
 
LVL 17

Accepted Solution

by:
Hanno P.S. earned 2000 total points
ID: 41869715
In the following, let's assume your boot disk is c0t0d0 and the new (second) disk is c0t1d0
a) Add the new disk (assumed you did boot with "reconfigure" already)
    Either partition the disk for filesystems using "format" program
    or (if the disk is the same as your original disk) copy the vtoc
    prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2

Open in new window

   This defines how the filesystems on the disk will be laid out
b) Create the desired filesystem(s) on you disk with newfs, e.g.
     newfs -f ufs /dev/rdsk/c0t1d0s0

Open in new window

c) mount the new filesystem (let's use /mnt here):
    mount /dev/dsk/c0t1d0s2 /mnt

Open in new window

d) Go into mount pount and extract ufsdump
    cd /mnt
    ufsrectore xf /export/home/dump-file

Open in new window

0
 
LVL 17

Expert Comment

by:Hanno P.S.
ID: 41869717
Sorry for the typo in last line: "ufsrestore"
0
 

Assisted Solution

by:Puneeth MH
Puneeth MH earned 0 total points
ID: 41869986
newfs /dev/rdsk/c0t1d0s0 showing I/O error:
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 

Author Comment

by:Puneeth MH
ID: 41870046
Ok The above I/o error got cleared, but ufsrestore asking to specify the next volume#;
What to specify is it 1/0?
0
 
LVL 17

Assisted Solution

by:Hanno P.S.
Hanno P.S. earned 2000 total points
ID: 41870070
the first volume is 1 -- if you have only a single volume, it's always 1
0
 

Author Comment

by:Puneeth MH
ID: 41870077
The output for ufsrestore is as below,

# ufsrestore xf /export/home/root.dump
Warning: ./lost+found: File exists
You have not read any volumes yet.
Unless you know which volume your files are on you should start with last volume and work towards the first.
Specify the next volume #:
0
 
LVL 17

Assisted Solution

by:Hanno P.S.
Hanno P.S. earned 2000 total points
ID: 41870082
if you put in
  1
and press return it should start extracting the files.
0
 

Author Comment

by:Puneeth MH
ID: 41870169
I did installgrub because installboot was obsolete, it worked fine. stage1 and stage2 got written to partition.

What are next steps?
0
 
LVL 17

Assisted Solution

by:Hanno P.S.
Hanno P.S. earned 2000 total points
ID: 41870183
create a reconfigure file on the new root fs:
touch /mnt/reconfigure

Open in new window

shut down, put the new disk into target machine and reboot.
Note: This works only if the machines are not too much different from each other!
0
 

Author Comment

by:Puneeth MH
ID: 41871647
Thanks a ton Hanno, I got it working with similar hardware configuration.
You have been a constant support in getting this done. I am grateful to you.

Under what hardware differences this would work?
If there are differences in hardware what to use to clone?
0
 

Author Comment

by:Puneeth MH
ID: 41871708
This particular task I did as a mock drill, which was just a raw machine with some files. But if it were to be a full fledged machine with various application running on it then, will the applications work after cloning in target machine by this procedure?
0
 
LVL 17

Assisted Solution

by:Hanno P.S.
Hanno P.S. earned 2000 total points
ID: 41871867
The problem arises when the hardware is very much different which may create problems with certain drivers upon booting the new machine.
Once the machine is up and runnind all applications will work fine.
0
 

Author Comment

by:Puneeth MH
ID: 41873825
What is the alternate command for fssnap in Solaris sun OS 4.1.3? Or In the procedure from the two posts what that could change for 4.1.3? I have asked this in another post you can reply there if you wish to.
0
 
LVL 17

Assisted Solution

by:Hanno P.S.
Hanno P.S. earned 2000 total points
ID: 41873836
I did reply there already ;-)
0
 

Author Closing Comment

by:Puneeth MH
ID: 41876692
Thanks for the untiring support.
0

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Microsoft Jet database engine errors can crop up out of nowhere to disrupt the working of the Exchange server. Decoding why a particular error occurs goes a long way in determining the right solution for it.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question