Jumpstart server setup for Netbackup 5.x client recovery


1. Copy an existing Solaris boot image for use as a recovery image :
/export/install/media# mkdir 9_0904-recover
/export/install/media# cd 9_0904
/export/install/media/9_0904# tar cf - .|(cd ../9_0904-recover;tar xf -)
2. Copy the Netbackup client software from a client machine to the jumpstart
server :
# cd /usr
:/usr# tar cf ./openenv /tmp/nb-client.tar
:/usr# ftp jumpstart-server
Connected to jumpstart-server
220 jumpstart-server FTP server ready.
Name (jumpstart-server:root):
331 Password required for root
Password:
ftp> cd /var/tmp
ftp> put /tmp/nb-client.tar
3. Install the Netbackup client software into the boot image on the jumpstart server:
9_0904-recover/Tools/Boot/usr# tar xvf /var/tmp/nb-client.tar
4. Create the link to the temporary directory required for the netbackup log files
and the 'bp.conf' file :
9_0904-recover/Solaris_9/Tools/Boot# cd usr/openv/netbackup
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup# ls -l
total 12
drwxr-xr-x 3 root other 1024 Feb 16 14:20 bin
-rw-r--r-- 1 root other 76 Feb 16 14:19 bp.conf
drwxr-xr-x 2 root other 512 Feb 16 14:19 dbext
drwxr-xr-x 4 root other 512 Feb 16 14:19 help
drwxr-xr-x 1 root other 16 Feb 16 15:23 logs
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup# mv logs logsorig
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup# ln -s
/tmp/_openv_logs logs
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup# cp bp.conf
9_0904-recover/Solaris_9/Tools/Boot/.tmp_proto
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup# rm bp.conf
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup# ln -s
/tmp/bp.conf bp.conf
9_0904-recover/Solaris_9/Tools/Boot/usr/openv/netbackup> ls -l
total 12
drwxr-xr-x 3 root other 1024 Feb 16 14:20 bin
lrwxrwxrwx 1 root other 76 Feb 16 14:19 bp.conf ->
/tmp/bp.conf
drwxr-xr-x 2 root other 512 Feb 16 14:19 dbext
drwxr-xr-x 4 root other 512 Feb 16 14:19 help
lrwxrwxrwx 1 root other 16 Feb 16 15:23 logs ->
/tmp/_openv_logs
drwxr-xr-x 3 root other 512 Feb 16 14:19 logs-orig
5. Create the temporary log file directory in the .tmp_proto directory in the root of
the boot image. Any files in this directory are created in /tmp when the system
boots from the network.
9_0904-recover/Solaris_9/Tools/Boot# cd .tmp_proto
9_0904-recover/Solaris_9/Tools/Boot/.tmp_proto# mkdir -p
_openv_logs/user_ops
9_0904-recover/Solaris_9/Tools/Boot/.tmp_proto# ls -l
total 6
drwxrwxrwx 3 root other 512 Feb 16 15:22 _openv_logs
-rw-r--r-- 1 root other 76 Feb 16 14:19 bp.conf
lrwxrwxrwx 1 root other 18 Feb 16 14:36 kernel ->
../tmp/root/kernel
drwxr-xr-x 5 root sys 512 Jun 29 2004 root
6. In order to setup the recover mode we need to edit the rcS file in /etc within the
boot image. This file needs to be modified to include the 'recover' option with the
boot options 'case' statement :
<----- previous lines from rcS omitted ----- >
nowin|w)
cat < /dev/null > /tmp/.nowin
shift
;;
wizard_debug)
cat < /dev/null > /tmp/.wizard_debug
shift
;;
recover)
cat < /dev/null > /tmp/.recover_mode
shift
;;
#
# Private flags
#
mansysid)
cat < /dev/null > /tmp/.manual-sysid
shift
;;
*)
shift
;;
esac
done
fi
<----- remaining lines from rcS omitted ----- >
7. Finally you need to edit the sysconfig file held in /sbin on the boot image to
include the following lines at the end of the file :
<----- previous lines from /sbin/sysconfig omitted ----- >
if [ -f /tmp/.recover_mode ]
then
/usr/sbin/inetd -s
echo "Staring up in recovery mode, with inetd -s ..."
TERM=vt100
EDITOR=vi
PS1='recovery mode #'
PATH=$PATH:/usr/openv/netbackup/bin
export PATH TERM PS1 EDITOR
exec ksh -o vi
fi
exec /sbin/suninstall
<----- End Of File ----- >
8. The client that needs restoring must have it's /etc/bootparams entry setup
without the install_config field :
E.g. The following entry should be modified from this :
conntest root=bladeqfe1:/export/install/media/9_0904-
recover/Solaris_9/Tools/Boot install=172.24.16.136:/export/in
stall/media/9_0904-recover boottype=:in
sysid_config=172.24.16.136:/opt/SUNWjet/Clients/conntest
install_config=172.24.16.136:/opt/SUNWjet rootopts=:rsize=32768
term=:vt100
to look like this :
conntest root=bladeqfe1:/export/install/media/9_0904-
recover/Solaris_9/Tools/Boot install=172.24.16.136:/export/in
stall/media/9_0904-recover boottype=:in
sysid_config=172.24.16.136:/opt/SUNWjet/Clients/conntest
rootopts=:rsize=32768 term=:vt100
9. The client can now be recovered using the following boot command :
ok? boot net – recover
..
..
..
recover mode# bp

© Thanks to James Oakes for this.