How to boot a server across the network and restore zfs root from snap
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 snap to any internal disk or mount a shared disk in our case we will mount a share disk
#mount -F nfs server-with-snap:/backup /mnt
Recreate the zpool "rpool"
#zpool create rpool c0t0d0s0
Restore from snapshot previously taken in our case we have the snap located in the /backup file system
#zfs receive -Fv rpool
receiving full stream of rpool@rpool.snapshot1
Set the bootfs property to the rpool and recreate the dump device and swap
#zpool set bootfs=rpool/ROOT/solaris rpool
#zpool create -V 20G rpool/swap
#zpool create -V 20G rpool/dump
Mount the boot environment and install the boot blocks
# beadm mount solaris /tmp/mnt
For SPARC system:
#installboot /tmp/mnt/usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t0d0s0
and
Reboot the server
#init 6
Comments