|
Customizing JET Boot Image Recovery with TSM
This section describes the steps necessary to include a TSM client as part of the Boot image to enable root filesystem recovery.
1. TSM Client
On a working system, tar up the /opt/tivoli directory. On the JET server un-tar archive to the /jumpstart/solaris/sol9/Solaris_9/Tools/Boot/opt directory.
Certain tasks are required to be performed to allow editing of config files. Change directory to /jumpstart/solaris/sol9/Solaris_9/Tools/Boot/opt/tivoli/tsm/client/ba/bin and rename dsm.sys and dsm.opt to dsm.sys.example and dsm.opt.example. create symbolic links for dsm.opt and dsm.sys to /tmp.
2. JET Boot image
Two files require editing in the /jumpstart/solaris/sol9/Solaris_9/Tools/Boot/sbin directory.
i. rcS
Add the following highlighted entry ;-
set -- ""
set -- ‘/sbin/getbootargs 2>/dev/null‘
if [ $# -gt 0 ] ; then
while [ $# -gt 0 ] ; do
case $1 in
FD=*)
# at end of script, save root dev in /tmp/.preinstall
# this is an unambiguous indication of stub boot
FJS_BOOT="yes"
From=‘(IFS="="; set -- $1; echo "$2 $3 $4 $5" )‘
break
;;
browser)
cat < /dev/null > /tmp/.install_boot
cat < /dev/null > /tmp/.smi_boot
shift
;;
recover)
cat < /dev/null > /tmp/._recover_startup
shift
;;
install)
INSTALL_BOOT="yes"
cat < /dev/null > /tmp/.install_boot
shift
dhcp)
TRY_DHCP="yes"
shift
;;
ii. Add the following highlighted entry to run_install;-
NOWIN_FILE=/tmp/.nowin
date >> /tmp/$LOG_FILE
TMP_ROOT_WEBSTART=/tmp/root/webstart
VOLMGT=volmgt
RECOVER=/tmp/._recover_startup
NAME=`uname -n`
if [ -f ${RECOVER} ];then
echo "You are now entering the recovery mode..."
echo "Adding TSM Backup Servers to the hosts file"
echo "10.14.121.79 backup_server " >> /etc/hosts
echo "10.14.113.114 backup_server2 " >> /etc/hosts
echo "Creating example dsm.opt and dsm.sys files"
cp /opt/tivoli/tsm/client/ba/bin/dsm.opt.example /tmp/dsm.opt
cat /opt/tivoli/tsm/client/ba/bin/dsm.sys.example|sed s/lnjps1m/${NAME}/g > /tmp/dsm.sys
touch /tmp/inclexcl.lst
chmod 777 /tmp/inclexcl.lst
echo ""
echo ""
echo ""
echo "In order to use TSM to recover this system, you must first"
echo "edit the dsm.sys and possibly the dsm.opt files. These are "
echo "located in /tmp. Set your DISPLAY variable. "
echo "Set LD_LIBRARY_PATH=/usr/lib:/usr/share/lib:/usr/dt/lib"
echo "Set DSM_LOG=/tmp"
echo "Run /opt/tivoli/tsm/client/ba/bin/dsm"
exec ksh -o vi -a
shift
fi
3. Booting the Client System
On the client system from the boot prompt;-
{0} ok boot net - recover
Rebooting with command: boot net - recover
Boot device: /pci@1f,4000/network@1,1 File and args: - recover
Timeout waiting for ARP/RARP packet
SunOS Release 5.9 Version Generic_118558-11 64-bit
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
whoami: no domain name
Configuring /dev and /devices
Using RPC Bootparams for network configuration information.
Configured interface hme0
Searching for configuration file(s)...
Using sysid configuration file 10.14.122.23:/opt/SUNWjet/Clients/cap5/sysidcfg
Search complete.
syslog service starting.
savecore: no dump device configured
Running in command line mode
Please wait while the system information is loaded...
Please wait while the system is configured with your settings...
You are now entering the recovery mode...
Adding TSM Backup Servers to the hosts file
Creating example dsm.opt and dsm.sys files
In order to use TSM to recover this system, you must first
edit the dsm.sys and possibly the dsm.opt files. These are
located in /tmp. Set your DISPLAY variable.
Set LD_LIBRARY_PATH=/usr/lib:/usr/share/lib:/usr/dt/lib
Set DSM_LOG=/tmp
Run /opt/tivoli/tsm/client/ba/bin/dsm
Follow the instructions given and the TSM GUI will be displayed which will enable a restore of the root filesystem.
|
© R. Davies. Wolf Consulting Limited