Netbackup Upgrade 6.5.4 To 7.0.1 v1.0
Netbackup Upgrade 6.5.4 To 7.0.1 v1.0
1 INTRODUCTION
1.1 Purpose
The purpose of this document is to provide a step-by-step procedure for an upgrade of a NetBackup 6.5.4
Master/Media Server to version 7.0.1.
1.2 Scope
The scope of this document is limited to the standard CREDIT SUISSE data center and branch offices backup
environment running on NetBackup version 6.5.4.
1.3 Assumptions
This document is written for backup administrators well experienced in NetBackup and Solaris. Commands not
specified with their full absolute pathname are to be found either under '/usr/bin' or '/usr/sbin'.
2 PREPARATION
# cat /usr/openv/netbackup/version
HARDWARE SOLARIS
VERSION NetBackup 6.5.4
RELEASEDATE Fri May 01 06:32:40 CDT 2009
BUILDNUMBER 20090430
# cat /usr/openv/netbackup/bin/version
NetBackup-Solaris10 6.5.4
The NetBackup Options for NDMP and Vault are on version 6.5.4 1
The pack summary shows all the NetBackup options properly patched with version 6.5.4 1
# cat /usr/openv/pack/pack.summary
# DO NOT EDIT THIS FILE !
# * means installed patch was preceded by this patch.
# + means that the installed patch installed this patch as a dependency.
NB_CLT_6.5.4 installed. +NB_6.5.4 +NB_JAV_6.5.4
NB_6.5.4 installed. *NB_CLT_6.5.4
NB_JAV_6.5.4 installed. *NB_CLT_6.5.4
NB_VLT_6.5.4 installed.
NB_DMP_6.5.4 installed. *NB_6.5.4
Check the revisions of the ORACLE Solaris 10 patches required for Netbackup 7.0 (139555-08 and
119963-21).
1 NDMP Option is only valid for non-Swiss Media Servers and Vault Option is only valid for non-Swiss Master Servers
3. Run the NetBackup Catalog Consistency Check in upgrade mode and deliver the resulting support
package under "/root/output/nbcc/…" to Symantec support for analysis.
# cd /root
# /usr/openv/netbackup/bin/support/NBCC -upgrade
1.0 Gathering initial NBCC information
1.1 Querying configured network interfaces
1.2 Building hostname services information
1.3 Obtaining initial NetBackup configuration information
NBCC is being run on NetBackup master server
su83sr26
4. Order the necessary changes for adding the NBU Master Server to your regional OpsCenter
(replacement for Aptare in terms of backup reporting), if not already included and have Ramazan
Cakir, GG CH Backup Central Server (KIDK remove it from Aptare.
43)
(GB)
/cs/saubernbu7xy/up701/nbu701GA/NB_update.install
/cs/saubernbu7xy/up701/nbu701GA/VrtsNB_7.0.1.*
/cs/saubernbu7xy/up701/nbu701GA/VrtsNB_CLT_7.0.1.*
/cs/saubernbu7xy/up701/nbu701GA/VrtsNB_JAV_7.0.1.*
Table 1 Solaris SystemV Packages for NetBackup 7.0.1 Master/Media Server (SDSS NET 2.0.0_8_0)
6. Check existing NBU Client versions in order to decide on the handling of versions older than 6.x.
7. Order a Shadow Image of your NBU Master Server's SAN storage (i.e. if any) at your local
Storage
RDO team in order to prepare for a potential fallback needed on a failing NBU upgrade.
10. Inform the stakeholders of the NetBackup domain to be upgraded, about the actions planned and
the expected impact as well as who to contact in case of urgency.
1. If the NBU Server to be upgraded is a Master Server, check if a current full Catalog backup is
available, else go to step 2.
2. Check if a recent full file system backup of the NBU Server is available
# df -h /cs
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d15 27G 6.0G 21G 23% /cs
/cs shall have enough space for the 2.66GB (1.6GB+1.06GB) of the packages to be installed, plus an
additional temporary space of 1.06GB for the CS_NET_701_CODEP.pkg package under /cs/gsds/ep/pkg
during either the SDSS deployment to PB and IB Switzerland systems or the HTTP-download to IB
internatio nal or AM systems (i.e. 3.72GB in total under /cs).
# cd /cs/gsds/ep/pkg
100%
[======================================================================================>]
1,717,969,408 11.71M/s ETA 00:00
# pkgadd -d CS_NET_700_CODEP.pkg
# rm CS_NET_700_CODEP.pkg
2 NOTE: If the NBU Server to be upgraded is located behind a firewall, it might be necessary to download the packages
to
another server in your location and transfer them to the NBU Server to be upgraded using SCP (Secure Copy based on SSH)
# pkgadd -d CS_NET_701_CODEP.pkg
# rm CS_NET_701_CODEP.pkg
# /usr/openv/netbackup/bin/admincmd/bprdreq –terminate
# /usr/openv/netbackup/bin/admincmd/nbpemreq -suspend_scheduling
# cd /usr/openv/netbackup
# ./set_policy_active_flag.sh inactive
number of policies found: 117
deactivating policy Hot_Catalog_Backup.
deactivating policy OneCMS_ET_File_Backup.
deactivating policy OneCMS_ET_Flash_Backup.
deactivating policy OneCMS_ET_Flash_Backup2.
deactivating policy U_SMR_hg_marimba.
deactivating policy U_SMR_uh_gsds.
deactivating policy W_SMR_uh_ev_index.
deactivating policy exc_smr_uh_00_bz.
policy "flash_smr_uh_00_bz" is already inactive => adding to list of inactive policies.
deactivating policy ora_smr_hg_00_bz.
.
.
.
policy "win_smr_uh_00_bz_quorum" is already inactive => adding to list of inactive policies.
deactivating policy win_smr_uh_00_tesz.
deactivating policy win_smr_uh_00_tesz_sql.
deactivating policy win_smr_uh_01_bz.
deactivating policy win_smr_uh_01_tesz.
deactivating policy win_sqr_hg_00_bz.
# cd /root
# /usr/openv/netbackup/bin/support/NBCC -batch –idar -upgrade
1.0 Gathering initial NBCC information
1.1 Querying configured network interfaces
1.2 Building hostname services information
1.3 Obtaining initial NetBackup configuration information
NBCC is being run on NetBackup master server
.
.
.
NBCC did not detect any NetBackup catalog inconsistencies.
6. Check for the remaining active jobs and cancel them if possible
# /usr/openv/netbackup/bin/admincmd/bpdbjobs -cancel_all
2. Put the NBU Server to be upgraded into maintenance mode via the Global Blackout Facility
(Monitoring shall be switched off during the upgrade)
https://gbf.csintra.net:8000
Click < Search
>
Node Name search criteria
[ bkpuh10en1.csintra.ne ] # hostname of the NBU Server to be upgraded
Clickt < OK
Click < >Maintenance
Change> to Maintenance
[ Upgrade to NetBackup
Click7.0.1<] OK
>
3. Start logging of the SSH session with the NBU Server to be upgraded
# /etc/init.d/netbackup stop
stopping the NetBackup Service Monitor
stopping the NetBackup Service Layer
stopping the NetBackup Remote Monitoring Management System
stopping the NetBackup Storage Service Manager
stopping the NetBackup Policy Execution Manager
stopping the NetBackup Job Manager
stopping nbproxy...
stopping the NetBackup compatibility daemon
stopping the NetBackup database daemon
stopping the Media Manager volume daemon
stopping the NetBackup Resource Broker
stopping the NetBackup Enterprise Media Manager
stopping the NetBackup Event Manager
stopping the NetBackup Database Server
# /usr/openv/netbackup/bin/bpps -x
NB Processes
------------
root 9021 1 0 Nov 01 ? 1693:27 /usr/openv/netbackup/bin/nbsl
MM Processes
------------
# /usr/openv/netbackup/bin/bp.kill_all
Stop PBX
# /opt/VRTSpbx/bin/vxpbx_exchanged stop
Make a backup copy of the existing start up script (starting NBU in its own project, see section
III "Addendum – Customized NetBackup Start up") as it will be overwritten during the upgrade
# cp /etc/init.d/netbackup /etc/init.d/netbackup_proj
1. Have your UNIX system administrator split the local disk's mirror.
Verify that the root disk and root mirror aliases are correctly set
# metastat -p
d15 -m d16 d17 1
d16 1 1 c1t0d0s6
d17 1 1 c1t1d0s6
d9 -m d10 d11 1
d10 1 1 c1t0d0s4
d11 1 1 c1t1d0s4
d6 -m d7 d8 1
d7 1 1 c1t0d0s3
d8 1 1 c1t1d0s3
d3 -m d4 d5 1
d4 1 1 c1t0d0s1
d5 1 1 c1t1d0s1
d0 -m d1 d2 1
d1 1 1 c1t0d0s0
d2 1 1 c1t1d0s0
d12 -m d13 d14 1
d13 1 1 c1t0d0s5
d14 1 1 c1t1d0s5
# metastat -p
d15 -m d16 1
d16 1 1 c1t0d0s6
d9 -m d10 1
d10 1 1 c1t0d0s4
d6 -m d7 1
d7 1 1 c1t0d0s3
d3 -m d4 1
d4 1 1 c1t0d0s1
d0 -m d1 1
d1 1 1 c1t0d0s0
d12 -m d13 1
d13 1 1 c1t0d0s5
d17 1 1 c1t1d0s6
d14 1 1 c1t1d0s5
d11 1 1 c1t1d0s4
d8 1 1 c1t1d0s3
d5 1 1 c1t1d0s1
d2 1 1 c1t1d0s0
Verify that the system is currently booted from the root disk
# eeprom nvramrc|grep `prtconf -vp | grep bootpath | cut -d"'" -f2,3,4,5,6|cut -d":" -f1`|awk
'{print $2,$3}'
rootdisk /pci@0/pci@0/pci@2/scsi@0/disk@0,0
# umask 022
# umask
0022
# /cs/saubernbu7xy/nbu700/nbu70GA/NB_7.0_Solaris_Sparc64_GA/install
SYMCnbdmp
SYMCnbvlt
Starting with NetBackup 7.0, the previously listed addon products have
been folded into the NetBackup server or NetBackup client package. These
Removing these packages after the NetBackup server has been upgraded
to 7.0 or later will destroy part of your NetBackup installation.
Do you want this script to attempt to run pkgrm on these packages? [y,n] (y) y
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) y
Do the requested manual removal of the NetBackup and Media Manager package
# pkgrm SYMCnetbp
Do you want to stop the NetBackup and Media Manager processes? (y) [y,n,?,q] y
# /cs/saubernbu7xy/nbu700/nbu70GA/NB_7.0_Solaris_Sparc64_GA/install
The following files are already installed on the system and are being
used by another package:
* /cs/openv/db/bin/dbadm
* /cs/openv/man/man1m/NBCC.1m
* /cs/openv/man/man1m/NBCCR.1m
* /cs/openv/man/man1m/bpclimagelist.1m
* /cs/openv/man/man1m/bpclusterutil.1m
* /cs/openv/man/man1m/nbkmsutil.1m
* /cs/openv/netbackup/bin/admincmd/nbkmsutil
* /cs/openv/netbackup/bin/bpclusterkill
* /cs/openv/netbackup/bin/goodies/man/NBCC.1m
* /cs/openv/netbackup/bin/goodies/man/NBCCR.1m
* /cs/openv/netbackup/bin/goodies/man/bpclimagelist.1m
* /cs/openv/netbackup/bin/goodies/man/bpclusterutil.1m
* /cs/openv/netbackup/bin/goodies/man/nbkmsutil.1m
* /cs/openv/netbackup/bin/goodies/streamsfile_update
* /cs/openv/netbackup/bin/nbkms
* /cs/openv/netbackup/bin/support/NBCC
* /cs/openv/netbackup/bin/support/NBCCR
* /cs/openv/resources/nbkms_root.res
## Installing part 1 of 1.
/cs/openv/NB-Java.tar.gz
/cs/openv/db/bin/create_nbdb
.
.
## Executing postinstall script.
Installing NB-Java.
+ /bin/cp ./nbj.conf /usr/openv/java
Copying /usr/openv/netbackup/nblog.conf to
/usr/openv/netbackup/nblog.conf.09-08-10.15:55:18
for future reference. Any local modifications to
/usr/openv/netbackup/nblog.conf should be re-evaluated.
Installing PBX...
+ Extracting PDDE agent package
(/cs/openv/netbackup/client/Solaris/Solaris10/pddeagent.tar.gz)...
Creating /etc/pdregistry.cfg.
Copying pdregistry.cfg file to /usr/openv/pdde/pdconfigure/cfg/userconfigs/pdregistry.cfg.
Starting setup for PDDE script
Done setup for PDDE script
/etc/rc2.d/S77netbackup
/etc/rc0.d/K01netbackup
/etc/rc1.d/K01netbackup
Use /usr/openv/netbackup/bin/admincmd/get_license_key
to add, delete or list license keys at a later time.
# /opt/VRTSpbx/bin/vxpbx_exchanged status
Symantec Private Branch Exchange is not running
# /opt/VRTSpbx/bin/vxpbx_exchanged start
Started Symantec Private Branch Exchange
# /opt/VRTSpbx/bin/vxpbx_exchanged status
Symantec Private Branch Exchange is running
# cd /cs/netbackup/nbu701FA/
# ./NB_update.install
NB_7.0.1
NB_CLT_7.0.1
NB_JAV_7.0.1
Install pack NB_CLT_7.0.1 Thu Sep 9 08:48:49 MEST 2010 Rev. 1.39.2.3
Can not install pack when NetBackup daemons are running.
Do you want to kill all NetBackup daemons? [y,n] (y) y
NB_7.0.1 *
NB_CLT_7.0.1 *
NB_JAV_7.0.1 *
# cat /usr/openv/netbackup/version
HARDWARE SOLARIS
VERSION NetBackup 7.0.1
RELEASEDATE Thu Jul 08 00:13:47 CDT 2010
BUILDNUMBER 20100707
# cat /usr/openv/netbackup/bin/version
NetBackup-Solaris10 7.0.1
The pack summary shows all the NetBackup options properly patched with 7.0.1 4
# cat /usr/openv/pack/pack.summary
# DO NOT EDIT THIS FILE !
# * means installed patch was preceded by this patch.
# + means that the installed patch installed this patch as a dependency.
NB_CLT_7.0.1 installed. +NB_7.0.1 +NB_JAV_7.0.1
NB_7.0.1 installed. *NB_CLT_7.0.1
NB_JAV_7.0.1 installed. *NB_CLT_7.0.1
8. If the NBU Server just upgraded is a NBU Master Server, start DBMS Server, verify the
NetBackup
databse and check the EMM DB server, else go to step 9.
# /usr/openv/db/bin/nbdbms_start_server
# /usr/openv/db/bin/create_nbdb
Database server is NB_bkpuh10
NetBackup database already exists in /usr/openv/db/data/NBDB.db
Creating the NetBackup database files.
Verifying the running version of NBDB ...
NBDB version 7.0.1.0 verified.
Nothing to upgrade. Version unchanged.
Database [NBDB] validation successful.
Database [NBDB] is alive and well on server [NB_bkpuh10].
# /usr/openv/netbackup/bin/nbemm
# /usr/openv/netbackup/bin/bprd
# /usr/openv/netbackup/bin/admincmd/nbemmcmd -getemmserver
NBEMMCMD, Version:7.0.1
These hosts were found in this domain: bkpuh10en1.csintra.net
9. Decision: if upgrade and verification were successful go to step 10. else go to 4 "Fallback
Procedure"
# metastat -p
d15 -m d16 1
d16 1 1 c1t0d0s6
d9 -m d10 1
d10 1 1 c1t0d0s4
d6 -m d7 1
d7 1 1 c1t0d0s3
d3 -m d4 1
d4 1 1 c1t0d0s1
d0 -m d1 1
d1 1 1 c1t0d0s0
d12 -m d13 1
d13 1 1 c1t0d0s5
d17 1 1 c1t1d0s6
d14 1 1 c1t1d0s5
d11 1 1 c1t1d0s4
d8 1 1 c1t1d0s3
d5 1 1 c1t1d0s1
d2 1 1 c1t1d0s0
# metattach d9 d11
d9: submirror d11 is attached
# metattach d6 d8
d6: submirror d8 is attached
# metattach d3 d5
d3: submirror d5 is attached
# metattach d0 d2
d0: submirror d2 is attached
# metastat -p
d15 -m d16 d17 1
d16 1 1 c1t0d0s6
d17 1 1 c1t1d0s6
d9 -m d10 d11 1
d10 1 1 c1t0d0s4
d11 1 1 c1t1d0s4
d6 -m d7 d8 1
d7 1 1 c1t0d0s3
d8 1 1 c1t1d0s3
d3 -m d4 d5 1
d4 1 1 c1t0d0s1
d5 1 1 c1t1d0s1
d0 -m d1 d2 1
d1 1 1 c1t0d0s0
d2 1 1 c1t1d0s0
d12 -m d13 d14 1
d13 1 1 c1t0d0s5
d14 1 1 c1t1d0s5
# cd /
# /opt/VRTSpbx/bin/vxpbx_exchanged stop
Stopped Symantec Private Branch Exchange
# bp.kill_all
# /usr/openv/netbackup/bin/bpps -x
NB Processes
------------
MM Processes
------------
# cp /etc/init.d/netbackup_proj /etc/init.d/netbackup
# /opt/VRTSpbx/bin/vxpbx_exchanged start
Started Symantec Private Branch Exchange
# /etc/init.d/netbackup start
NetBackup network daemon started.
NetBackup client daemon started.
NetBackup SAN Client Fibre Transport daemon started.
NetBackup Database Server started.
NetBackup Event Manager started.
NetBackup Audit Manager started.
NetBackup Deduplication Manager started.
NetBackup Deduplication Engine started.
NetBackup Enterprise Media Manager started.
NetBackup Resource Broker started.
Media Manager daemons started.
NetBackup request daemon started.
NetBackup compatibility daemon started.
NetBackup Job Manager started.
NetBackup Policy Execution Manager started.
NetBackup Storage Lifecycle Manager started.
NetBackup Remote Monitoring Management System started.
NetBackup Key Management daemon started.
NetBackup Service Layer started.
NetBackup Agent Request Server started.
NetBackup Bare Metal Restore daemon not started.
NetBackup Vault daemon started.
NetBackup Service Monitor started.
NetBackup Bare Metal Restore Boot Server daemon started.
# /usr/openv/netbackup/bin/bpps -x
NB Processes
------------
root 11653 11650 0 10:16:10 ? 0:01 /usr/openv/netbackup/bin/nbproxy dblib nbpem
root 11650 1 0 10:16:09 ? 0:00 /usr/openv/netbackup/bin/nbpem
root 11659 1 0 10:16:11 ? 0:00 /usr/openv/netbackup/bin/nbstserv
root 11619 1 0 10:16:06 ? 0:01 /usr/openv/netbackup/bin/nbrb
root 11711 1 0 10:16:18 ? 0:00 /usr/openv/netbackup/bin/nbvault
root 11458 1 0 10:15:54 ? 0:00 /usr/openv/netbackup/bin/bpcd -standalone
root 11511 1 0 10:15:59 ? 0:00 /usr/openv/netbackup/bin/nbevtmgr
MM Processes
------------
root 11631 1 0 10:16:07 ? 0:00 vmd -v
# projects -l NetBackup
NetBackup
projid : 1000
comment: "NetBackup resource project"
users : root
groups : (none)
attribs: project.max-msg-ids=(privileged,256,deny)
project.max-sem-ids=(privileged,1024,deny)
project.max-shm-ids=(privileged,256,deny)
project.max-shm-memory=(privileged,17179869184,deny)
Verification of the variance of all relevant parame ters for all Ne tBackup processes in `bpps –a`:
(If the script is not available, see section II "Addendum – NetBackup Licenses Installation" on how to create it)
# /usr/openv/netbackup/cs_goodies/installCSNetBackup_license.sh
# cd /usr/openv/netbackup
# ./set_policy_active_flag.sh active
number of policies found on old server: 301
number of policies found on this server: 301
** these numbers may differ if you created test policies on the new server **
activating policy Hot_Catalog_Backup.
activating policy O_SMR_hg.
activating policy O_SMR_hg_sched01.
activating policy O_SMR_uh.
activating policy O_SMR_uh_sched01.
activating policy O_SQR_hg.
activating policy O_SQR_hg_sched01.
activating policy O_SQR_uh.
.
.
.
policy unix_zus93d-1105_uh_00_ibz_cl22 was already inactive on old server, will not activate.
policy unix_zus93d-1106_uh_00_ibz_cl23 was already inactive on old server, will not activate.
policy unix_zus93d-1107_uh_00_ibz_cl24 was already inactive on old server, will not activate.
policy unix_zus93d-1108_uh_00_ibz_cl25 was already inactive on old server, will not activate.
policy unix_zus93d-1109_uh_00_ibz_cl26 was already inactive on old server, will not activate.
policy unix_zus93d-1110_uh_00_ibz_cl27 was already inactive on old server, will not activate.
policy unix_zus93d-1111_uh_00_ibz_cl28 was already inactive on old server, will not activate.
policy unix_zus93d-1112_uh_00_ibz_cl29 was already inactive on old server, will not activate.
activating policy unix_zus93d-4001_uh_00_ibz_cl08.
activating policy unix_zus93d-4002_uh_00_ibz_cl09.
activating policy unix_zus93d-4801_uh_00_ibz_cl10.
activating policy unix_zus94d-3401_uh_00_ibz_cl11.
activating policy unix_zus95d-2211_uh_00_ibz_cl12.
activating policy unix_zus95d-2212_uh_00_ibz_cl13.
activating policy unix_zus95d-3005_uh_00_ibz_cl14.
activating policy unix_zus95d-3006_uh_00_ibz_cl15.
activating policy unix_zus95d-3101_uh_00_ibz_cl16.
activating policy unix_zus95d-5601_uh_00_ibz.
activating policy unix_zus96d-0104_uh_00_ibz_cl17.
activating policy win_add_hg_00_bz.
activating policy win_add_uh_00_bz.
See below example for vnetd under NBU 6.5.4, where vnetd is under SMF control and run via inetd
# svcprop -p inetd_start/exec svc:/network/vnetd/tcp:default
/usr/openv/bin/vnetd
… and the same printout under NBU 7.0.1, where vnetd is independent from SMF and inetd.
# svcprop -p inetd_start/exec svc:/network/vnetd/tcp:default
svcprop: Pattern 'svc:/network/vnetd/tcp:default' doesn't match any entities
# vi /etc/hosts.allow
# bpcd : ALL : allow
# bpjava-msvc : ALL : allow
# vnetd : ALL : allow
17. Put the NBU Server into life mode via the Global Blackout Facility
(Reactivation of monitoring)
https://gbf.csintra.net:8000
Click < Search
>
Node Name search criteria
[ bkpuh10en1.csintra.ne ] Hostname of the NBU Server to be upgraded
Clickt < OK #
> >
Click < Life
Change to Life
[ Upgrade finished ]
Click < OK
>
18. Have your local Storage RDO delete the Shadow Image of your NBU Master Server's SAN storage.
4. Setup Hot catalog backup, run it and check availability of disaster recovery file and e-mail
7. Check licenses
11. Run client backups that use the NBU Media Server just upgraded
12. Do client restore tests that use the NBU Media Server just upgraded
Make a backup copy of both its Solaris Volume Manager system and vfstab files
# cp system system_md
# cp vfstab vfstab_md
Comment the md entry in order to remove Solaris Volume Manager con trol
# vi system
* Begin MDD root info (do not edit)
* rootdev:/pseudo/md@0:0,0,blk
* End MDD root info (do not edit)
Re vert the md device entries in /etc/vfstab to the roo tmirror's normal "c1t1d0" entries
# vi vfstab
# /dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 / ufs 1 no logging
# /dev/md/dsk/d3 - - swap - no -
/dev/dsk/c1t1d0s1 - - swap - no
# - /dev/md/dsk/d6 /dev/md/rdsk/d6 /var ufs 1 no logging
/dev/dsk/c1t1d0s3 /dev/rdsk/c1t1d0s3 /var ufs 1 no logging
# /dev/md/dsk/d9 /dev/md/rdsk/d9 /tmp ufs 2 yes logging
/dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /tmp ufs 2 yes logging
# /dev/md/dsk/d12 /dev/md/rdsk/d12 /export/home ufs 3 yes logging
/dev/dsk/c1t1d0s5 /dev/rdsk/c1t1d0s5 /export/home ufs 3 yes logging
# /dev/md/dsk/d15 /dev/md/rdsk/d15 /cs ufs 4 yes logging
/dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /cs ufs 4 yes logging
# reboot -- rootmirror
Login as root and stop the NetBackup processes and verify they are stopped
MM Processes
------------
Change to / directory and restore the rootmirror's slice 0 to /mnt (i.e. the rootdisk's slice 0) and repeat this
step for slices 3, 4, 5 and 6
# cd /
# ufsdump 0f - /dev/dsk/c1t1d0s0 | (cd /mnt; ufsrestore xf -)
DUMP: Date of this level 0 dump: Wed Feb 16 21:54:09 2011
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c1t1d0s0 (su83sr27:/) to standard output.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 32 Kilobyte records
DUMP: Estimated 12002060 blocks (5860.38MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
set owner/mode for '.'? [yn] y
DUMP: 12002046 blocks (5860.37MB) on 1 volume at 5726 KB/sec
DUMP: DUMP IS DONE
# cd /mnt/etc
Reactivate the rootdisk's original vfstab_md and system_md files with Solaris Volume Manager entries
# cp system_md system
# cp vfstab_md vfstab
# reboot
# metastat -p
d15 -m d16 1
d16 1 1 c1t0d0s6
d9 -m d10 1
d10 1 1 c1t0d0s4
d6 -m d7 1
d7 1 1 c1t0d0s3
d3 -m d4 1
d4 1 1 c1t0d0s1
d0 -m d1 1
d1 1 1 c1t0d0s0
d12 -m d13 1
d13 1 1 c1t0d0s5
d17 1 1 c1t1d0s6
d14 1 1 c1t1d0s5
d11 1 1 c1t1d0s4
d8 1 1 c1t1d0s3
d5 1 1 c1t1d0s1
# metattach d9 d11
d9: submirror d11 is attached
# metattach d6 d8
d6: submirror d8 is attached
# metattach d3 d5
d3: submirror d5 is attached
# metattach d0 d2
d0: submirror d2 is attached
# metastat -p
d15 -m d16 d17 1
d16 1 1 c1t0d0s6
d17 1 1 c1t1d0s6
d9 -m d10 d11 1
d10 1 1 c1t0d0s4
d11 1 1 c1t1d0s4
d6 -m d7 d8 1
d7 1 1 c1t0d0s3
d8 1 1 c1t1d0s3
d3 -m d4 d5 1
d4 1 1 c1t0d0s1
d5 1 1 c1t1d0s1
d0 -m d1 d2 1
d1 1 1 c1t0d0s0
d2 1 1 c1t1d0s0
d12 -m d13 d14 1
d13 1 1 c1t0d0s5
d14 1 1 c1t1d0s5
# netbackup stop
stopping the NetBackup Service Monitor
stopping the NetBackup Service Layer
stopping the NetBackup Remote Monitoring Management System
stopping the NetBackup Storage Service Manager
stopping the NetBackup Policy Execution Manager
stopping the NetBackup Job Manager
stopping nbproxy...
stopping the NetBackup compatibility daemon
stopping the NetBackup database daemon
stopping the Media Manager volume daemon
stopping the NetBackup Resource Broker
stopping the NetBackup Enterprise Media Manager
# /usr/openv/netbackup/bin/bpps -x
NB Processes
------------
root 9021 1 0 Nov 01 ? 1693:27 /usr/openv/netbackup/bin/nbsl
MM Processes
------------
# /usr/openv/netbackup/bin/bp.kill_all
Stop PBX
# /opt/VRTSpbx/bin/vxpbx_exchanged stop
# pgkrm SYMCnetp
# /cs/saubernbu65x/nbu650/65_solaris/install
# /cs/saubernbu65x/nbu654/
# ./NB_update.install
NB_6.5.4
NB_CLT_6.5.4
NB_DB2_6.5.4
NB_DMP_6.5.4
NB_ENC_6.5.4
NB_INX_6.5.4
NB_JAV_6.5.4
NB_LOT_6.5.4
NB_ORA_6.5.4
NB_SAP_6.5.4
NB_SNC_6.5.4
NB_SYB_6.5.4
NB_VLT_6.5.4
# cd /usr/openv/netbackup/bin/bprecover -wizard
Please make sure the devices and media that contain catalog disaster recovery
data are available
Are you ready to continue?(Y/N)
y
Please specify the full pathname to the catalog disaster recovery file:
/cs/nbu_catalog/Catalog_1284108402_FULL
bkpuh10en1.csintra.net_1284108402
All media resources were located
To recover the FULL catalog including the relational database (NBDB), select (F),
to recover the PARTIAL catalog including only the NetBackup catalog image
and configuration files as designated by the disaster recovery file, select (P), or
to recover only the RELATIONAL database (NBDB), select (R).
F
# netbackup stop
# netbackup
100%
[========================================================================================>]
2,346 --.--K/s
Content of the
script:
#!/bin/ksh
NBUHOME=/usr/openv/netbackup;
PATH=$PATH:${NBUHOME}/bin:${NBUHOME}/bin/admincmd;
export PATH;
INACTF=/usr/openv/INACTIVE_POLICIES;
NOPOLF=/usr/openv/NUMBER_OF_POLICIES;
case $1 in
inactive)
>$INACTF;
>$NOPOLF;
set -A activeflags;
let cpolicy=0;
while (( $cpolicy < ${#policies[*]} )); do
policy="${policies[$cpolicy]}";
activeflags[$cpolicy]=`bpplinfo $policy -L | egrep "^Active:.*[yes|no]$" | awk '{print
$2}'`;
sleep 1;
let cpolicy=$cpolicy+1;
done
let cpolicy=0;
while (( $cpolicy < ${#policies[*]} )); do
policy="${policies[$cpolicy]}";
activeflag=${activeflags[$cpolicy]};
active)
if [ ! -f $INACTF ] ; then
echo "ERROR: file containing inactive policies ${INACTF} does not exist, aborting!";
exit 1;
fi
let cpolicy=0;
while (( $cpolicy < ${#policies[*]} )); do
policy="${policies[$cpolicy]}";
grep ^$policy$ $INACTF >/dev/null 2>&1;
if [ $? -eq 0 ]; then
echo "policy $policy was already inactive on old server, will not activate.";
else
echo "activating policy $policy.";
bpplinfo $policy -modify -active;
if [ $? -ne 0 ]; then
echo "deactivating policy $policy failed. please retry manually."
fi
sleep 1;
fi
let cpolicy=$cpolicy+1;
done
;;
*)
echo "USAGE: $0 inactive|active"
;;
esac
1. Create the cs_goodies directory and then add the NetBackup licensing script
# /usr/ucb/whoami
root
# mkdir -p /usr/openv/netbackup/cs_goodies
# vi /usr/openv/netbackup/cs_goodies/installCSNetBackup_license.sh
#!/bin/sh
#
# add license keys for NBU 651
#
echo "OEXN-RTL4-BOWC-PPZO-8PPP-PR3R-RCPP-PPO4-WCPP-C
OEXR-3DZ4-ERU7-GOSH-SVPP-PPCC-6NPP-PPPP-PPPP-P
OEXR-W2VX-2IRZ-6NOP-BPPP-PPRC-P6PP-PCPP-PPPP-6
OEXD-RSSN-TBYP-63XC-VPPP-PPC6-NPPN-PPPP-PPPN-P
OEXD-RSSD-TBYP-63XC-UPPC-PPC6-NPPP-PPPP-PPPN-P
OEXD-RY4D-TBXD-43PP-6PPP-PRC6-NPPP-PP34-CPPN-P
OEXC-RTVY-ZDKD-PP83-4CNN-PP3B-PI4O-43PP-PPPP-P
OEXR-32RG-ERUT-CP3X-PRP6-PP8I-P8F4-ONOP-PPDC-P
OEXN-PTVM-LNJD-ZPNC-8O6C-PPCX-63G9-4P4P-PPRZ-P
OEXP-62ZY-SPYB-9PPZ-ONPR-P3XC-UNLG-O6O6-PP3O-P
OEXR-W2KV-2IRZ-6NCX-36PP-83RC-P6PP-PPNO-ZPPP-6" > /tmp/nbu651Lic
#
for lic in `cat /tmp/nbu651Lic`
do
echo "Installing Veritas License NBU 651 $lic"
/usr/openv/netbackup/bin/admincmd/bpminlicense -add_keys $lic
done
#
#
echo "Veritas License for NBU Netbackup 651 installed"
#
#
rm /tmp/nbu651Lic
#
#
#
# add upgrade license keys for NBU 701
#
echo "OEXP-W28A-8J2T-OXO4-3PPP-PPN3-PRRP-P8CP-3P8P-R
OEXD-RS8X-SBIN-4C6C-UPPP-PPC6-NNPP-N9PP-PNCN-P
OEXD-RYAD-HBYD-4PP3-XPPP-PRC6-NNPP-PP34-CPPN-P
OEXC-RTDF-Z2KD-8C4O-4CPP-PPCX-P33P-PPP8-O6PP-P
OEXD-RVOA-4B9D-RPNN-PPPP-PN3P-RPPR-PPPP-PPPR-C
OEXD-RYAX-SBIN-4C63-4PX6-PPD6-N6N3-XPPP-6PPN-P
OEXD-RYAN-HBYD-4PP3-ZPPP-PRC6-NNPP-PP34-CPPN-P
OEXR-WO2I-LO8B-OXP6-UPPP-PPXP-33PP-IZPP-P363-R
OEXR-WOEK-EK8T-OPPE-PPPP-P6XP-3PPP-PPPP-PPP3-R
OEXP-WDAM-8J2T-9XOZ-OZPP-PPN3-PRRP-P8CP-3P8P-R
OEXD-RY8X-SBIN-4C6C-NPX6-PPD6-N6N3-XPPP-6PPN-P
OEXP-3NZY-LJ3E-94C4-OX3N-P6PO-BPKS-OZ3Z-PNPW-6
OEXR-3DZG-E8UT-OZO4-O4PP-PPPC-6XNP-PPNO-SVPP-P
OEXW-F2SM-8J2T-OXO4-PZPP-PPN3-PRRP-P8CP-3P8P-R
OEXC-RWKY-Z2KD-8OPP-N3PP-PPCX-P33P-PPP8-O6PP-P
OEXC-RWFY-Z2KD-8OPP-P3PP-PPCX-P33P-PPP8-O6PP-P
OEXT-K2T4-E8UT-OZO4-O6PP-PPPC-6XNP-PPNO-SVPP-P
OEXP-WDSA-8J2T-9XOZ-OPPP-PPN3-PRRP-P8CP-3P8P-R
2. Add execute permission for root, make sure NetBackup is running and execute the script
# vi /etc/init.d/netbackup
#!/sbin/sh
#
# Date: 22. June 2009
# Author: [email protected]
#
# Modified Netbackup startup script with resource control
#
case "$1" in
'start')
newtask -p NetBackup /usr/openv/netbackup/bin/goodies/netbackup start
;;
'stop')
/usr/openv/netbackup/bin/goodies/netbackup stop
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
3. Set maximum shared memory IDs available to the "NetBackup" project to 256
5. Set maximum message queue IDs available to the "NetBackup" project to 256
6. Set maximum shared memory for the NetBackup project to 50% of the system memory size
System memory size is 32GB, shared memory for the NetBackup project shall be 16GB (=17179869184B):
MM Processes
------------
# projects -l NetBackup
NetBackup
projid : 1000
comment: "NetBackup resource project"
users : root
groups : (none)
attribs: project.max-msg-ids=(privileged,256,deny)
project.max-sem-ids=(privileged,1024,deny)
project.max-shm-ids=(privileged,256,deny)
project.max-shm-memory=(privileged,17179869184,deny)
Verification of a sp ecific parameter for a specific process (in this case max shared memory for nbsl):
Verification of the variance of all relevant parame ters for all Ne tBackup processes in `bpps –a`:
. Save As .
File name: [ C:\Temp\JavaConsole_7.0.1.zip ]
<Save>
. Download complete .
<Open
Folder>
. C:\Temp .
right click JavaConsole_7.0.1.zip WinZip Extract to here