SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


netbackupsolarisbmr
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

netbackupsolarisbmr [2013/04/09 16:08] (current)
sjoerd created
Line 1: Line 1:
 += NetBackup Solaris BMR Boot Server =
  
 +To use a Solaris server as a NetBackup Bare Metal Server you can simply activate that service, it is installed by default when you install the Netbackup server or client software. I installed the server software for this purpose, but, with hindsight, installing the client is probably a better option and you need the client later on anyway to create the boot media. ​
 +\\
 +That is, by the way, the purpose of this setup. We're not going to use the boot server, we already have a few network boot services, and using the media boot is just as easy (and less work). ​
 +
 += Install NetBackup Server =
 +
 +Upload the server software to the server and unzip and untar the files (read the section right below if you have an old tar version and encounter errors):
 +
 +<​code>​
 +# gunzip NetBackup_7.1_Solaris_x86.tar.gz
 +# tar -xf NetBackup_7.1_Solaris_x86.tar
 +</​code>​
 +
 +Note that on [Install Solaris 10 Update 8] you will get this error when untarring the archive file:
 +<​code>​
 +tar: ./​./​@LongLink:​ typeflag '​L'​ not recognized, converting to regular file
 +</​code>​
 +This is because the tar version shipped with solaris 10 update 8 is too old. Also, the shipped gtar version will give you errors (after unpacking, during installation) like this:
 +<​code>​
 +pkgadd: ERROR: unable to open </​export/​home/​NetBackup_7.1_Solaris_x86/​solaris_x86/​SYMCnetbp/​reloc/​openv/​netbackup/​client/​Solaris/​Solaris_x86_10_64/​install_client>​ for reading: (2) No such file or directory
 +</​code>​
 +
 +These are known errors and explained in [[http://​www.symantec.com/​docs/​TECH154080|this Symantec technote]]. The solution is to download the provided Symantec tar version from their [[http://​www.symantec.com/​business/​support/​resources/​sites/​BUSINESS/​content/​live/​TECHNICAL_SOLUTION/​154000/​TECH154080/​en_US/​Solarisx86tar|website (click for direct file download)]] and replace the original tar file:
 +
 +<​code>​
 +# mv /​usr/​sbin/​tar /​usr/​sbin/​tar_orig
 +# mv /​tmp/​Solarisx86tar /​usr/​sbin/​tar
 +# chmod a+x /​usr/​sbin/​tar
 +</​code>​
 +
 +Now start the installation:​
 +<​code>​
 +# cd NetBackup_7.1_Solaris_x86
 +# ls
 +Doc          LICENSE ​     install ​     solaris_x86
 +# ./install
 +
 +
 +Symantec Installation Script
 +Copyright 1993 - 2011 Symantec Corporation,​ All Rights Reserved.
 +
 +
 +        Installing NetBackup Server Software
 +
 +Do you wish to continue? [y,n] (y)
 +
 +NetBackup installs to the running root environment,​ by default.
 +
 +Are you installing to the running root environment?​ [y,n] (y)
 +
 +The following old package is currently installed on your
 +system and should be removed prior to an upgrade:
 +
 +SYMCnetbp
 +
 +***********************************************************************
 +It is highly recommended that older packages be removed before doing an
 +upgrade.
 +***********************************************************************
 +
 +Do you want to exit this script so you can remove packages now? [y,n] (y) n
 +
 +Processing package instance <​SYMCnetbp>​ from </​export/​home/​NetBackup_7.1_Solaris_x86/​solaris_x86>​
 +
 +NetBackup and Media Manager(i386) 7.1,​REV=2011.02.04.00.26
 +
 +This appears to be an attempt to install the same architecture and
 +version of a package which is already installed. ​ This installation
 +will attempt to overwrite this package.
 +
 +Copyright 1993 - 2011 Symantec Corporation,​ All Rights Reserved.
 +
 +The installation of this package was previously terminated and
 +installation was never successfully completed.
 +
 +Do you want to continue with the installation of <​SYMCnetbp>​ [y,n,?]
 +        ERROR: Input is required.
 +
 +Do you want to continue with the installation of <​SYMCnetbp>​ [y,n,?] y
 +
 +        NetBackup and Media Manager binaries will be installed in
 +        /opt/openv
 +
 +        and a link will be created from /usr/openv
 +        to /opt/openv, if it does not exist.
 +
 +        Is this okay? (y) [y,n,?,q]
 +
 +        NetBackup and Media Manager 7.1 will be installed.
 +
 +Using </​opt>​ as the package base directory.
 +## Processing package information.
 +## Processing system information.
 +   126 package pathnames are already properly installed.
 +## Verifying disk space requirements.
 +## Checking for conflicts with packages already installed.
 +
 +Installing NetBackup and Media Manager as <​SYMCnetbp>​
 +
 +## Executing preinstall script.
 +
 +    Creating /opt/openv.
 +
 +    Creating link from /usr/openv to /opt/openv.
 +
 +## Installing part 1 of 1.
 +/​opt/​openv/​db/​bin/​create_nbdb
 +...<cut the displayed file list>...
 +/​opt/​openv/​volmgr/​misc/​README
 +[ verifying class <​NBclass>​ ]
 +## Executing postinstall script.
 +
 +
 +        The NetBackup and Media Manager binaries are installed.
 +        Read the release notes carefully.
 +
 +        If you ran pkgadd instead of <​cdrom_path>/​install,​ you must
 +        run /​usr/​openv/​netbackup/​bin/​install_bp to initiate NetBackup.
 +
 +
 +Apr 11 16:08:51 bmrtest02 sendmail[2407]:​ [ID 702911 mail.alert] unable to qualify my own domain name (bmrtest02) -- using short name
 +
 +Installation of <​SYMCnetbp>​ was successful.
 +Running /​usr/​openv/​netbackup/​bin/​install_bp
 +
 +Copying Solaris_x86_10_64 Client Binaries
 +
 +Installing PBX...
 +Please wait while installation is in progress...
 +Installation completed Successfully
 +Installation log located here: /​var/​tmp/​installpbx-2455-041112160852.log
 +
 +
 +Unpacking SYMCnbclt package.
 +Checking for pre-existing SYMCnbclt package.
 +Installing SYMCnbclt package.
 +Apr 11 16:10:08 bmrtest02 sendmail[2777]:​ [ID 702911 mail.alert] unable to qualify my own domain name (bmrtest02) -- using short name
 +Installation of SYMCnbclt was successful.
 +More details regarding SYMCnbclt can be found in file
 +/​tmp/​install_cltpkg_trace.2436 on bmrtest02.
 +
 +Terminating NetBackup and/or Media Manager processes.
 +
 +Installing NB-Java.
 +
 +Unpacking SYMCnbjava package.
 +Checking for pre-existing SYMCnbjava package.
 +Installing SYMCnbjava package.
 +Apr 11 16:11:27 bmrtest02 sendmail[3320]:​ [ID 702911 mail.alert] unable to qualify my own domain name (bmrtest02) -- using short name
 +Installation of SYMCnbjava was successful.
 +More details regarding SYMCnbjava can be found in file
 +/​tmp/​install_javapkg_trace.3267 on bmrtest02.
 +
 +Unpacking SYMCnbjre package.
 +Checking for pre-existing SYMCnbjre package.
 +Installing SYMCnbjre package.
 +Apr 11 16:12:35 bmrtest02 sendmail[3368]:​ [ID 702911 mail.alert] unable to qualify my own domain name (bmrtest02) -- using short name
 +Installation of SYMCnbjre was successful.
 +More details regarding SYMCnbjre can be found in file
 +/​tmp/​install_jrepkg_trace.3267 on bmrtest02.
 ++ /bin/cp ./nbj.conf /​usr/​openv/​java
 +
 +Directory /​usr/​openv/​logs does not exist.
 +No log files to migrate.
 +
 +
 +The following automatic startup and shutdown scripts (respectively)
 +have been installed. ​ They will cause the NetBackup daemons to be
 +automatically shut down and restarted each time the system boots.
 +
 +/​etc/​rc2.d/​S77netbackup
 +/​etc/​rc0.d/​K01netbackup
 +/​etc/​rc1.d/​K01netbackup
 +
 +
 +Installation of Java LiveUpdate agent succeeded. ​ Refer to file
 +/​tmp/​JLU-Log/​JavaLiveUpdate-Install.log on bmrtest02
 +for installation details.
 +
 +
 +Checking LiveUpdate registration for the following products: NB
 +This may take a few minutes.
 +
 +Product NB is installed and will be registered.
 +
 +Updating LiveUpdate registration now...this may take some time.
 +
 +A NetBackup Server or Enterprise Server license key is needed
 +for installation to continue.
 +
 +Enter license key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 +
 +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:​
 +        NetBackup Enterprise Server Base product with the following features enabled:
 +            PureDisk Remote Office
 +            PureDisk Option
 +            Flexible Disk Option
 +            OpenStorage Disk Option
 +            NAS SnapVault Option
 +            Virtual Tape Option
 +            Open File Backup
 +            Remote Client Support
 +            Robotic Library Sharing Support
 +            Remote Media Server Support
 +            Microsoft RSM Robotic Libraries
 +            ADIC DAS/SDLC Robotic Libraries
 +            IBM ATL Robotic Libraries
 +            Fujitsu LMF Robotic Libraries
 +            StorageTek ACS Robotic Libraries
 +            Inline Tape Copy
 +            Vault
 +            Library Based Tape Drives
 +            Additional Drives/​Robotics
 +            DataStore
 +            Shared Storage Option
 +            NDMP
 +        has been registered.
 +
 +
 +All additional keys should be added at this time.
 +Do you want to add additional license keys now? [y,n] (y)
 +
 +
 +        License Key Utility
 +        -------------------
 +
 +        A) Add a License Key
 +        D) Delete a License Key
 +        F) List Active License Keys
 +        L) List Registered License Keys
 +        H) Help
 +        q) Quit License Key Utility
 +
 +
 +Enter a letter: a
 +
 +Enter license key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 +
 +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:​
 +        NetBackup features enabled:
 +            Enterprise Vault Agent
 +            Bare Metal Restore
 +            Encryption
 +            Open File Backup
 +            Encryption (Legacy DES 56-bit)
 +            Encryption (Legacy DES 40-bit)
 +            Additional clients
 +        has been registered.
 +
 +
 +
 +        License Key Utility
 +        -------------------
 +
 +        A) Add a License Key
 +        D) Delete a License Key
 +        F) List Active License Keys
 +        L) List Registered License Keys
 +        H) Help
 +        q) Quit License Key Utility
 +
 +
 +Enter a letter: q
 +
 +
 +Installing NetBackup Enterprise Server version: 7.1
 +
 +
 +
 +If this machine will be using a different network interface than the
 +default (bmrtest02),​ the name of the preferred interface should be used
 +as the configured server name.  If this machine will be part of a
 +cluster, the virtual name should be used as the configured server name.
 +
 +Would you like to use "​bmrtest02"​ as the configured
 +NetBackup server name of this machine? [y,n] (y)
 +
 +Is bmrtest02 the master server? [y,n] (y) n
 +
 +What is the fully qualified name of the master server? bckmaster.getshifting.local
 +
 +Checking network connections.
 +bp.conf: IP_ADDRESS_FAMILY = AF_INET: default value, no update needed
 +
 +Sending SIGHUP to inetd process.
 +
 +
 +        Copied files to /​kernel/​drv/​amd64.
 +
 +Doing add_drv of the sg driver
 +Creating /dev/sg.
 +Added entry in /​etc/​devlink.tab file.
 +Made links in /dev/sg
 +
 +
 +Enter the Enterprise Media Manager server (default: bckmaster.warmetal.local):​
 +Converting STREAMS files. ​ This may take a few minutes.
 +
 +STREAMS files conversion is complete.
 +
 +
 +Successfully updated the session cache parameters.
 +Starting the NetBackup network daemon.
 +Starting the NetBackup client daemon.
 +Starting the NetBackup SAN Client Fibre Transport daemon.
 +Creating /​usr/​openv/​tmp/​sqlany
 +
 +Installed SQL Anywhere Version 11.0.1.2475
 +Installation completed successfully
 +
 +
 +Starting the NetBackup Event Manager.
 +
 +Starting the NetBackup compatibility daemon.
 +Starting the Media Manager device daemon processes.
 +
 +Starting the NetBackup Remote Monitoring Management System.
 +Starting the NetBackup Key Management daemon.
 +Starting the NetBackup Service Layer.
 +Starting the NetBackup Service Monitor.
 +Starting the NetBackup Bare Metal Restore Boot Server daemon.
 +
 +
 +NetBackup server installation complete.
 +
 +
 +File /​usr/​openv/​tmp/​install_trace.1620 contains a trace of this install.
 +That file can be deleted after you are sure the install was successful.
 +</​code>​
 +
 +Now the installation is ready. ​
 +
 +== BP.conf Configuration ==
 +
 +The bp.conf file holds the configuration which is required for the communication with the rest of the netbackup environment which is really dependent on DNS.
 +
 +<​code>​
 +# cd /​opt/​openv/​netbackup/​
 +# vi bp.conf
 +
 +CLIENT_NAME = bmrtest02.warmetal.local
 +SERVER = bckmaster.warmetal.local
 +SERVER = bcksrv01
 +SERVER = bckmedia01
 +SERVER = bcksrv02
 +SERVER = bckmedia02
 +</​code>​
 +
 +Now, for easy problem solving and cleaning up, reboot the server.
 +
 +After the reboot test connectivity by trying to add the server as a client on the NetBackup Master server. ​
 +
 += BMR Server Registration =
 +
 +Now that the server has netbackup it's a matter of running a single command to register the server as a BMR boot server:
 +
 +<​code>​
 +# cd /​usr/​openv/​netbackup/​bin/​
 +
 +# ./​bmrsetupboot -register
 +dhcpconfig: Error - failed to read DHCP server parameters.
 +V-128-967 The dhcpd service is not active.
 +Please verify DHCPD server is installed and properly configured.
 +This is required in order to do BMR network boot based client restore.
 +[Warning] V-127-967 [Could not open Unified Logging resource bundles Locale=C; TextId=967; DefaultMsg=]
 +[Info] V-127-76 Setting up BMR boot server completed successfully.
 +</​code>​
 +The error you get about dhcpd is only important when you plan to actually use the network boot modules. We'll boot using the CD/DVD boot procedure so we can ignore the error. ​
 +\\
 +You can check the registration in the NetBackup Master server: \\
 +{{bmrbootserversolaris01.jpg}} \\
 +
 +
 += Creating SRT =
 +
 +Before you can create a bootable media for restores you'll have to create a Shared Resource Trees. To create a shared resource tree for Solaris you'll need the NetBackup Client and the Solaris installation media. ​
 +\\
 +The downloaded client is really big since it holds the installation files for all unix/linux clients. Because of that it is chopped into two. After downloading you can combine and unpack the two files like this:
 +<​code>​
 +# cat NetBackup_7.1_CLIENTS_tar-gz.1of2 NetBackup_7.1_CLIENTS_tar-gz.2of2 > NetBackup_7.1_CLIENTS.tar.gz
 +# gunzip NetBackup_7.1_CLIENTS.tar.gz
 +# tar -xf NetBackup_7.1_CLIENTS.tar
 +</​code>​
 +
 +> Note: On Windows you can combine them like this:
 +<​code>​
 +copy /b "​NetBackup_7.1_CLIENTS_tar-gz.1of2"​+"​NetBackup_7.1_CLIENTS_tar-gz.2of2"​ "​NetBackup_7.1_CLIENTS.tar.gz"​
 +</​code>​
 +
 +The Solaris installation source is mounted through the VMware console:
 +<​code>​
 +# mount
 +...<​cut>​....
 +/​cdrom/​sol_10_1009_x86 on /​vol/​dev/​dsk/​c0t0d0/​sol_10_1009_x86 read only/​nosetuid/​nodevices/​noglobal/​maplcase/​rr/​traildot/​dev=1740002 on Thu Apr 12 16:24:37 2012
 +</​code>​
 +
 +> Note that for the cdrom to mount automatically the vold process has to run (/​etc/​init.d/​volmgt start)
 +
 +The directory where the SRT will be created has to exist:
 +<​code>​
 +# mkdir /​export/​home/​srt
 +</​code>​
 +
 +Then enter the /​usr/​openv/​netbackup/​bin directory and run the SRT administration program:
 +<​code>​
 +# ./bmrsrtadm
 +
 +Select one of the following options:
 +
 +    1.  Create a new Shared Resource Tree.
 +    2.  Create a new CD image based Shared Resource Tree.
 +    3.  Copy an existing Shared Resource Tree to a new location.
 +    4.  Import a Shared Resource Tree.
 +    5.  Modify an existing Shared Resource Tree.
 +    6.  Delete an existing Shared Resource Tree.
 +    7.  List Shared Resource Trees available on this server.
 +    8.  Quit.
 +
 +Enter your selection (1-8) [1] : 1
 +Enter the name of the SRT to create : srtsolaris10u8x86
 +Enter the description of the new SRT : SRT for Solaris 10 update 8 on Intel
 +Enter desired level of Solaris/​SunOS (8/5.8, 9/5.9 or 10/5.10) [5.10] : 10
 +Enter the directory in which to place the new SRT [/​export/​srt] : /​export/​home/​srt
 +Enter a [hostname:/​]pathname containing a suitable Solaris 5.10
 +OS CDROM or OS image location [/​cdrom/​cdrom0] : /​cdrom/​sol_10_1009_x86
 +This step may take considerable time. Please wait...
 +Unpacking miniroot...
 +Removing unneeded packages to limit miniroot size...
 +Creating temporary 64-bit miniroot...
 +Copying 64-bit binaries to x86.miniroot...
 +Preparing boot files - please stand by...
 +Enter a [hostname:​]/​pathname containing Symantec NetBackup Client software : /​export/​home/​NetBackup_7.1_CLIENTS
 +
 +
 +Symantec Installation Script
 +Copyright 1993 - 2011 Symantec Corporation,​ All Rights Reserved.
 +
 +
 +        Installing NetBackup Client Software
 +
 +Do you wish to continue? [y,n] (y) y
 +Do you want to install the NetBackup client software for this client? [y,n] (y) y
 +
 +This package will install Solaris/​Solaris_x86_10_64 client.
 +
 +This package will install NetBackup client 7.1.
 +
 +Enter the name of the NetBackup server : tempname
 +
 +Would you like to use "​bmrtest02"​ as the configured
 +name of the NetBackup client? [y,n] (y)
 +
 +Installing PBX...
 +Please wait while installation is in progress...
 +Installation completed Successfully
 +Installation log located here: /​var/​tmp/​installpbx-10380-041212171854.log
 +
 +
 +Unpacking SYMCnbclt package.
 +Checking for pre-existing SYMCnbclt package.
 +Installing SYMCnbclt package.
 +Installation of SYMCnbclt was successful.
 +More details regarding SYMCnbclt can be found in file
 +/​tmp/​install_cltpkg_trace.10314 on bmrtest02.
 +Checking network connections.
 +DNS Lookup failed for host bmrtest02 error:8!
 +bp.conf: IP_ADDRESS_FAMILY = AF_INET: default value, no update needed
 +
 +No [x]inetd process found.
 +
 +
 +File /​usr/​openv/​tmp/​install_trace.10228 contains a trace of this install.
 +That file can be deleted after you are sure the install was successful.
 +[Info] V-125-668 SRT "​srtsolaris10u8x86"​ has been initialized successfully.
 +
 +------------------------------------------------------------------------------
 +SRT name:      srtsolaris10u8x86
 +Location: ​     /​export/​home/​srt/​srtsolaris10u8x86
 +Description: ​  SRT for Solaris 10 update 8 on Intel
 +Exclusive use: (none)
 +------------------------------------------------------------------------------
 +
 +You may make modifications to this SRT.
 +Select one of the following options:
 +
 +    1.  Install Symantec NetBackup Maintenance Pack.
 +    2.  Install Veritas Volume Manager and Veritas File System.
 +    3.  Update Veritas Volume Manager and Veritas File System.
 +    4.  Install Veritas Security Services.
 +    5.  Install additional packages or patches.
 +    6.  Change SRT description.
 +    7.  Change client exclusive use of this SRT.
 +    8.  Quit.
 +
 +Enter your selection (1-8) [8] :
 +Repacking miniroot...
 +[Info] V-125-669 SRT "​srtsolaris10u8x86"​ has been created successfully.
 +</​code>​
 +
 +The Shared Resource Tree that will function as the source for the bootable media is now created. ​
 +
 += Creating Boot Media =
 +
 +First make sure the vold process is not running:
 +<​code>​
 +# ps -ef | grep vold
 +    root 11510     ​1 ​  0 17:23:21 ?           0:00 /​usr/​sbin/​vold -f /​etc/​vold.conf
 +# eject
 +No default media available
 +# /​etc/​init.d/​volmgt stop
 +# ps -ef | grep vold
 +</​code>​
 +
 +Then run the SRT administration program again:
 +<​code>​
 +# ./bmrsrtadm
 +
 +Select one of the following options:
 +
 +    1.  Create a new Shared Resource Tree.
 +    2.  Create a new CD image based Shared Resource Tree.
 +    3.  Copy an existing Shared Resource Tree to a new location.
 +    4.  Import a Shared Resource Tree.
 +    5.  Modify an existing Shared Resource Tree.
 +    6.  Delete an existing Shared Resource Tree.
 +    7.  List Shared Resource Trees available on this server.
 +    8.  Quit.
 +
 +Enter your selection (1-8) [1] : 2
 +Enter the name of an existing SRT : srtsolaris10u8x86
 +Enter the name of the new SRT to create : sol10u8nb71
 +Enter the description of the new SRT [SRT for Solaris 10 update 8 on Intel] : Boot media for Solaris 10 Update 8 on Intel with Netbackup 7.1 Client
 +Enter the directory in which to place the new SRT CD image [/​export/​home/​srt] :
 +Unpacking/​repacking miniroot to add BMR hooks for CD/DVD booting...
 +Unpacking miniroot...
 +Repacking miniroot...
 +Creating final media image...
 +
 +Cleaning up....
 +[Info] V-125-718 Media image has been successfully created.
 +</​code>​
 +
 +There is now an iso in the SRT directory:
 +<​code>​
 +# pwd
 +/​export/​home/​srt
 +# ls -lrt
 +total 869106
 +drwxr-xr-x ​  5 root     ​root ​        512 Apr 12 17:21 srtsolaris10u8x86
 +-rw-r--r-- ​  1 root     ​root ​    ​444749824 Apr 12 17:30 sol10u8nb71.iso
 +</​code>​
 +
 +You are now ready to restore a server using the bare metal restore option. ​
 +
 +{{tag>​backup solaris}}
netbackupsolarisbmr.txt ยท Last modified: 2013/04/09 16:08 by sjoerd