How to boot a Solaris Server across the network and Restore root ufs

How to boot a server across the network and restore from DUMP


You will need the mac-address from the client server in order to generate in the server with the media the following files

In the Server with the DVD Rom and Solaris Media add the following


root@client# vi /etc/ethers
0:22:11:77:a4:b8 testing   
  


Add in the /etc/hosts file the IP address

root@client#vi /etc/hosts
##WAN BOOT###
192.168.1.2  testing         

Add the client from server wan boot and architecture

root@server#cd /cdrom/sol_10_509_sparc/Solaris_10/Tools

command: add_install_client client_server architecture

root@server#./add_install_client testing sun4u

This variable need to be blank in the client, you will need to execute it from OK prompt

ok>
ok>set-defaults network-boot-argument

ok>boot net -s  (-s single user)

or

ok>boot net - install   (install server from the media across network)

After server is up and running, you can configure the interface in order to upload the dump file to restore it.

# ifconfig nxge0 plumb
# ifconfig nxge0 <ip address> <Mask> <broadcast> up
# route add default gw <gateway>

Copy the dump to any internal disk or mount a shared disk

#mount /dev/dsk/device-name /a
#mount /dev/dsk/c0t0d0s0 /a

Move to the /a mountpoint

#cd /a

Restore Root File System

#ufsrestore rvf  /dev/rmt/ n (Tape Backup)

#ufsrestore rvf  /share-file-system/<dump-file> (File System or Share File System) 

Install the bootblock on Sparc System 

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

and

Reboot the server
#init 6

Comments