Monday, December 14, 2009

solaris jumpstart bootserver with veritas netbackup

This is a mini cookbook how you can integrate the Veritas Netbackup Client
into a Solaris Jumpstart Server bootimage, so you can do a "boot net" and restore your files disk.

Step 1 - prepare server
Setup a standard Jumpstart server, using "setup_install_server",
"add_to_install_server" scripts on the Solaris CD-ROM. See Sun documentation for details.
I assume that you created the jumpstart server below
/opt/jumpstart/sol_8_202_sparc.
The boot image is now located in
/opt/jumpstart/sol_8_202_sparc/Solaris_8/Tools/Boot.

Step 2 - install files
On a server with Netbackup installed, go to /usr/openv and create a tarball with
"tar cf /tmp/nbu.tar ./*"
Back to your jumpstart server:
mkdir -p /opt/jumpstart/sol_8_202_sparc/Solaris_8/Tools/Boot/usr/openv
copy your nbu.tar in the newly created directory and "tar xvf" it.

Step 3 - create necessary links
When you boot Solaris over the net, all filesystem except /tmp are read-only.
To make Netbackup usable, some files/dirs must be linked to a writeable location. Go to
/opt/jumpstart/sol_8_202_sparc/Solaris_8/Tools/Boot/usr/openv/netbackup.
do:
cp bp.conf bp.conf.org
ln -s ../../../tmp/bp.conf bp.conf
mv logs logs.org
ln -s ../../../tmp logs

Step 4 - edit system files
Netbackup needs entries in inetd.conf and the services file. Add at the end of

/opt/jumpstart/sol_8_202_sparc/Solaris_8/Tools/Boot/etc/inetd.conf:

bpcd stream tcp nowait root /usr/openv/netbackup/bin/bpcd bpcd
bpjava-msvc stream tcp nowait root /usr/openv/netbackup/bin/bpjava-msvc bpjava-msvc -transient

And at the end of /opt/jumpstart/sol_8_202_sparc/Solaris_8/Tools/Boot/etc/services:

bprd 13720/tcp bprd
bpcd 13782/tcp bpcd

Step 5 - test it

Now you need to add client that you can boot with this modified image. Get the
hardware and run "add_install_client", see sun doc for details. Shutdown the
client and do "boot net -s". Once the box is up and you exited the Installer,
you are ready to go. Edit bp.conf (is
now empty) by adding some servers or just cat bp.conf.org > bp.conf
(Now it's all in its usual location below /usr/openv. You may also want to edit resolv.conf
and nsswitch.conf so you can lookup hostnames in DNS.
After this, mount a disk, run bp or bprestore and hope it works...

2 comments:

  1. I think that you may be also interested in another access data recovery application, it quickly retrieves affected data from damaged files

    ReplyDelete
  2. rom the convenient iStart® to the extreme-duty Rescue® 6000 for commercial and heavy-duty use. Jumpstart Serviced Offices Hong Kong

    ReplyDelete