Monday, 5 March 2012

Restore a Solaris OS

Procedure 1 using ufsrestore:

Follow the following steps if you already have the OS backup taken using ufsdump

Step 1: Boot the OS into single user mod

               ok> boot cdrom -s
step 2: Create the same partition as original disk and create the filesystem
 
             #newfs /dev/rdsk/c1t0d0s0
step 3: Mount the filesystem
            
            # mount /dev/dsk/c1t1d0s0 /a

step 4: Verify whether the tape is configured

           # mt status or mt -f /dev/rmt/0 status 

Note : If the tape is not recognized by the OS run the following commands
 # devfsadm -C

or
# devfsadm -c tape
or
# drvconfig; tapes; devlinks

Step 5:Rewind the tape
  #mt rewind

Step 6:

cd to the directory which needs to be restored

cd /a
ufsrestore /dev/rmt/0n

Step 7 :

Install the bootloader

#installboot /a/usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0

You are good to reboot your machine

No comments:

Post a Comment