Sunday, April 20, 2008

Solaris/Veritas how to recover server quickly

1. Add MAC address to /etc/ethers

2. Add IP Address to /etc/hosts

3. cd /jumpstart/Solaris_8/Tools

4. ./add_install_client -s jumpstart:/jumpstart -c jumpstart:/jumpstart -p jumpstart:/jumpstart machine_name sun4u

Then tarred the Veritas Netbackup Client Software from the jumpstart server (it gets backed up), to the mini-root of boot area.

5. cd /usr

6. tar cvf openv.tar openv

Next copy your /etc/shadow, /etc/inet/services, /etc/inetd.conf, and /etc/default/login with the CONSOLE line commented out.

7. cp /etc/shadow /jumpstart/Solaris_8/Tools/Boot/etc
8. cp /etc/inet/services /jumpstart/Solaris_8/Tools/Boot/etc/inet
9. cp /etc/inet/inetd.conf /jumpstart/Solaris_8/Tools/Boot/etc/inet
10. cp /etc/default/login /jumpstart/Solaris_8/Tools/Boot/etc/default

Move the openv.tar file to the mini-root user location

11. mv /usr/openv.tar /jumpstart/Solaris_8/Tools/Boot/usr

12. cd /jumpstart/Solaris_8/Tools/Boot/usr && tar xvf openv.tar

Netbackup uses a Java GUI that is why you need to copy the services and inetd.conf files. The shadow and edited /etc/default/login file will allow you to telnet into the remote server as root.

Now we are ready to rebuild the server
At the ok> prompt type:

13. boot net

14. On mine it loaded OpenWindows and then stopped, since there was no CD Media.

Open a command tool and start the inetd daemon.

15. /usr/sbin/inetd -s

Now you should be able to connect using your Veritas Netbackup Client Software I have copy locally on my box.

16. Login

17. Restore whatever you need. If you have separate partitions (/,/opt, /var, /usr, etc...), then you probably want to mount those separately after each successfull restore. You can do this by telneting in remotely.

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...