前言
Veritas NetBackup 简称 NBU 是一款商业化的备份和恢复软件,在金融行业占据了90%以上的市场份额,除了软件产品以外也开始推自家的备份一体机。关于产品方面的介绍交给NBU的售前就行了,行业内负责备份恢复的朋友基本也都清楚我就不再赘述了。文章重点记录了学NBU时的原理和三层架构,比较核心的内容当然是Policy部分,此外还增加了简单的动手实践环节方便大家在自己的虚拟机中练习和理解。
记录 Veritas NetBackup 学习心得
更新记录
2017年04月28日 - 初稿
阅读原文 - https://wsgzao.github.io/post...
扩展阅读
Veritas - https://www.veritas.com/zh/cn...
NetBackup Downloads
最新版为 NBU 8.0,生产环境推荐使用 NBU 7.7.3
Article URL:http://www.veritas.com/docs/0...
NetBackup 8.0
To obtain NetBackup 8.0 installation media:
http://www.veritas.com/docs/0...
NetBackup 7.7.3
To obtain NetBackup 7.7.3 installation media:
http://www.veritas.com/docs/0...
以下为实验环境使用测试License,切勿用于生产,申请请通过官方渠道
NBU部署
[root@rhel6-01 ~]# tar xf NetBackup_7.7.3_LinuxR_x86_64.tar.gz
[root@rhel6-01 ~]# ls
anaconda-ks.cfg Documents install.log Music NetBackup_7.7.3_LinuxR_x86_64.tar.gz Public Videos
Desktop Downloads install.log.syslog NetBackup_7.7.3_LinuxR_x86_64 Pictures Templates
[root@rhel6-01 ~]# cd NetBackup_7.7.3_LinuxR_x86_64
[root@rhel6-01 NetBackup_7.7.3_LinuxR_x86_64]# ls
Doc install LICENSE linuxR_x86
[root@rhel6-01 NetBackup_7.7.3_LinuxR_x86_64]# ./install
Symantec Installation Script
Copyright 1993 - 2016 Symantec Corporation, All Rights Reserved.
Installing NetBackup Server Software
Please review the SYMANTEC SOFTWARE LICENSE AGREEMENT located on
the installation media before proceeding. The agreement includes
details on the NetBackup Product Improvement Program.
For NetBackup installation and upgrade information specific to your
platform and to find out if your installed EEBs or hot fixes are
contained in this release, check out the Symantec Operations Readiness
Tools (SORT) Installation and Upgrade Checklist and Hot fix and EEB
Release Auditor, respectively, at https://sort.veritas.com/netbackup.
ATTENTION! To help ensure a successful upgrade to NetBackup 7.7.3,
please visit the NetBackup 7.x Upgrade Portal:
https://www.veritas.com/support/en_US/article.TECH74584.
Do you wish to continue? [y,n] (y) y
Starting NetBackup Deduplication installer
testing: /tmp/pdde_pkg_dir_27939
NetBackup Deduplication preinstall check passed
Is this host the master server? [y,n] (y)
Checking for required system conditions...
ok nbdb_maintenance_space: no NBDB maintenance required on new install: skipping
ok remote_emm: NetBackup is not installed: skipping
ok be_nb_same_host: inapplicable on linux: skipping
ok unsupported_platform: Passed checks for unsupported platforms.
ok nbdb_ntfs_dir_symlink: inapplicable on linux: skipping
Checking for recommended system conditions...
not ok ulimit_nofiles: nofiles ulimit 1024 is too low.
NetBackup Master and Media Server processes may run slower if they are
limited to fewer than 8000 open file descriptors. This test runs
'ulimit -n' and checks that the result is at least 8000 on NetBackup
servers. See
https://www.veritas.com/support/en_US/article.TECH75332
for more information.
ok hotfix_auditor: NetBackup is not installed or there is no hotfix or EEB data present. Skipping HF/EEB Auditor check.
not ok wsl_account: User existence command [id nbwebsvc 2>&1] returned status 256: [].
A user [nbwebsvc] in group [nbwebgrp] does not exist on the Master Server.
This is needed to enable web services, and will be a requirement of Master Server installation
in NetBackup 8.0 and beyond. See
http://www.veritas.com/docs/000081350
for more information.
not ok semaphore_limits: too low:
Performance of NetBackup Master and Media Servers can be affected
adversely if the system is configured with low semaphore limits. This
test checks whether the current semaphore limits are set as
recommended. See https://www.veritas.com/support/en_US/article.TECH203066 for
details.
The current SEMMNI setting is 128; at least 1024 is recommended.
The current SEMMSL setting is 250; at least 300 is recommended.
The current SEMMNS setting is 32000; at least 307200 is recommended.
WARNING: One or more non-critical preinstall checks have failed.
The NetBackup and Media Manager software is built for use on LINUX_RH_X86 hardware.
Do you want to install NetBackup and Media Manager files? [y,n] (y)
NetBackup and Media Manager are normally installed in /usr/openv.
Is it OK to install in /usr/openv? [y,n] (y)
Saving server binaries for LINUX_RH_X86.
Reading NetBackup files from /root/NetBackup_7.7.3_LinuxR_x86_64/linuxR_x86/anb
Checking for pre-existing SYMCnetbp package.
Installing SYMCnetbp package.
Installation of SYMCnetbp was successful.
More details regarding SYMCnetbp can be found in file
/tmp/install_netbppkg_trace.28059 on rhel6-01.
x openv/netbackup/client/Linux/
x openv/netbackup/client/Linux/Debian2.6.18/
x openv/netbackup/client/Linux/Debian2.6.18/nbj.conf
x openv/netbackup/client/Linux/Debian2.6.18/client_config
x openv/netbackup/client/Linux/Debian2.6.18/cp_to_client
x openv/netbackup/client/Linux/Debian2.6.18/extract_java
x openv/netbackup/client/Linux/Debian2.6.18/version
x openv/netbackup/client/Linux/Debian2.6.18/install_client
x openv/netbackup/client/Linux/Debian2.6.18/ftp_to_client
x openv/netbackup/client/Linux/Debian2.6.18/sftp_to_client
x openv/netbackup/client/Linux/Debian2.6.18/ssh_to_client
x openv/netbackup/client/Linux/Debian2.6.18/nb_init_cfg
x openv/netbackup/client/Linux/Debian2.6.18/pdinstall
x openv/netbackup/client/Linux/Debian2.6.18/nbcheck
x openv/netbackup/client/Linux/Debian2.6.18/nbbsdtar
x openv/netbackup/client/Linux/Debian2.6.18/PBX.tar.gz
x openv/netbackup/client/Linux/Debian2.6.18/installpbx
x openv/netbackup/client/Linux/Debian2.6.18/VRTSpddea.rpm
x openv/netbackup/client/Linux/Debian2.6.18/client_bin.tar.gz
x openv/netbackup/client/Linux/Debian2.6.18/.sizes_client_bin
x openv/netbackup/client/Linux/Debian2.6.18/.sizes
x openv/netbackup/client/Linux/Debian2.6.18/NB-Java.tar.gz
x openv/netbackup/client/Linux/Debian2.6.18/.sizes_NB-Java
x openv/netbackup/client/Linux/Debian2.6.18/JRE.tar.gz
x openv/netbackup/client/Linux/Debian2.6.18/.sizes_JRE
x openv/netbackup/client/Linux/RedHat2.6.18/
x openv/netbackup/client/Linux/RedHat2.6.18/nbj.conf
x openv/netbackup/client/Linux/RedHat2.6.18/client_config
x openv/netbackup/client/Linux/RedHat2.6.18/cp_to_client
x openv/netbackup/client/Linux/RedHat2.6.18/extract_java
x openv/netbackup/client/Linux/RedHat2.6.18/nb_init_cfg
x openv/netbackup/client/Linux/RedHat2.6.18/install_client
x openv/netbackup/client/Linux/RedHat2.6.18/ftp_to_client
x openv/netbackup/client/Linux/RedHat2.6.18/sftp_to_client
x openv/netbackup/client/Linux/RedHat2.6.18/ssh_to_client
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSnbpck.rpm
x openv/netbackup/client/Linux/RedHat2.6.18/pdinstall
x openv/netbackup/client/Linux/RedHat2.6.18/nbcheck
x openv/netbackup/client/Linux/RedHat2.6.18/nbbsdtar
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSnbcfg.rpm
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSnbclt.rpm
x openv/netbackup/client/Linux/RedHat2.6.18/version
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSpddea.rpm
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSpbx.rpm
x openv/netbackup/client/Linux/RedHat2.6.18/.sizes
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSnbjava.rpm
x openv/netbackup/client/Linux/RedHat2.6.18/VRTSnbjre.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/
x openv/netbackup/client/Linux/SuSE3.0.76/nbj.conf
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSnbpck.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/pdinstall
x openv/netbackup/client/Linux/SuSE3.0.76/nbcheck
x openv/netbackup/client/Linux/SuSE3.0.76/nbbsdtar
x openv/netbackup/client/Linux/SuSE3.0.76/client_config
x openv/netbackup/client/Linux/SuSE3.0.76/cp_to_client
x openv/netbackup/client/Linux/SuSE3.0.76/extract_java
x openv/netbackup/client/Linux/SuSE3.0.76/nb_init_cfg
x openv/netbackup/client/Linux/SuSE3.0.76/install_client
x openv/netbackup/client/Linux/SuSE3.0.76/ftp_to_client
x openv/netbackup/client/Linux/SuSE3.0.76/sftp_to_client
x openv/netbackup/client/Linux/SuSE3.0.76/ssh_to_client
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSnbcfg.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSnbclt.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSpddea.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/version
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSpbx.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/.sizes
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSnbjava.rpm
x openv/netbackup/client/Linux/SuSE3.0.76/VRTSnbjre.rpm
Copying RedHat2.6.18 Client Binaries
Installing VRTSnbpck ...
Installing VRTSpbx ...
Installing VRTSnbclt ...
Terminating NetBackup and/or Media Manager processes.
Installing NB-Java.
Installing VRTSnbjre ...
Installing VRTSnbjava ...
+ /bin/cp ./nbj.conf /usr/openv/java
Migrating log files in /usr/openv/logs
Migration of log files complete.
No [x]inetd process found.
Installing VRTSpddea.rpm ...
Starting NetBackup Deduplication installer
testing: /tmp/pdde_pkg_dir_29478
Checking for SYMCpddea package...
Checking for VRTSpddea package...
Package VRTSpddea found.
NetBackup Deduplication software is installed.
NetBackup Deduplication is not yet configured.
Checking for SYMCpddes package...
Checking for SYMCpddea package...
Installing NetBackup Deduplication server package (/usr/openv/pddeserver.tar.gz)...
Extracting package SYMCpddes in /tmp/pdde_pkg_dir_29478.
Package SYMCpddes extracted to /tmp/pdde_pkg_dir_29478.
Installing package SYMCpddes.
Package SYMCpddes installed.
Running NetBackup Deduplication upgrade script (server mode)...
NetBackup Deduplication install finished successfully.
Version now installed: 9.0300.0016.0512
Full NetBackup Deduplication installation log saved to: /var/log/puredisk/2017-04-19_14:27-pdde-install.log
Installing VRTSnbcfg.rpm ...
Done executing NB.inst.
If you ran NB.inst instead of <cdrom_path>/install, you must
run /usr/openv/netbackup/bin/install_bp to initiate NetBackup.
Running /usr/openv/netbackup/bin/install_bp
A NetBackup Server or Enterprise Server license key is needed
for installation to continue.
Enter license key:
Evaluation NetBackup Enterprise Server with May 19, 2017 expiration date will be registered.
Is this OK? [y,n] (y)
KJNW-P39N-WK8O-HZUW-6CPC-IR4K-SOYK-Y7FF-YUPP-P:
Evaluation NetBackup Enterprise Server Base product with the following features enabled:
Replication Director
Accelerator
PureDisk Remote Office
PureDisk Option
SAN Client
PureDisk MS Exchange Agent
Enterprise Vault Agent
PureDisk MS SQL Server Agent
Flexible Disk Option
OpenStorage Disk Option
Virtual Tape Option
Bare Metal Restore
Encryption
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
Snapshot Client
MS SharePoint Agent
Inline Tape Copy
Vault
Library Based Tape Drives
DataStore
Encryption (Legacy DES 56-bit)
Encryption (Legacy DES 40-bit)
SAP extension
Sybase extension
Informix extension
Oracle extension
Lotus Notes extension
DB2 extension
MS SQL Server extension
MS Exchange extension
Shared Storage Option
NDMP
Additional clients
has been registered.
All additional keys should be added at this time.
Do you want to add additional license keys now? [y,n] (y) n
Use /usr/openv/netbackup/bin/admincmd/get_license_key
to add, delete or list license keys at a later time.
Installing NetBackup Enterprise Server version: 7.7.3
If this machine will be using a different network interface than the
default (rhel6-01), 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 "rhel6-01" as the configured
NetBackup server name of this machine? [y,n] (y)
Media servers can be added during this installation or
to a NetBackup environment after installation completes.
Refer to the NetBackup Administrator's Guide, Volume I for
more information.
Do you want to add any media servers now? [y,n] (n)
Checking network connections.
bp.conf: IP_ADDRESS_FAMILY = AF_INET: default value, no update needed
Machine rhel6-01 is a master server, and it is the EMMSERVER.
Converting STREAMS files. This may take a few minutes.
STREAMS files conversion is complete.
Successfully updated the session cache parameters.
Done processing parameter files, no files found to convert
Starting the NetBackup Authentication daemon.
Starting the NetBackup network daemon.
Starting the NetBackup client daemon.
Starting the NetBackup SAN Client Fibre Transport daemon.
Starting the NetBackup Discovery Framework.
Configuring nbatd.
Gathering configuration information.
Waiting for the security services to start operation.
Generating identity for host 'rhel6-01'
Setting up security on target host: rhel6-01
nbatd is successfully configured on NetBackup Master Server.
Operation completed successfully.
Creating /usr/openv/tmp/sqlany
Installed SQL Anywhere Version 16.0.0.2184
Installation completed successfully
x openv/wmc/
x openv/wmc/war/
x openv/wmc/war/nbwebservice.war
x openv/wmc/config/
x openv/wmc/config/index.html
x openv/wmc/config/log4j.properties
x openv/wmc/config/tomcat.logging.properties
x openv/wmc/lib/
x openv/wmc/lib/goodies.jar
x openv/wmc/bin/
x openv/wmc/bin/install/
x openv/wmc/bin/install/configurePorts
x openv/wmc/bin/install/configureWmc
x openv/wmc/bin/install/configureWsDefaults
x openv/wmc/bin/install/createSslStore
x openv/wmc/bin/install/manageClientCerts
x openv/wmc/bin/install/setupWmc
x openv/wmc/bin/install/configureCerts
x openv/wmc/bin/install/configureEnv
x openv/wmc/webserver/
x openv/wmc/webserver/LICENSE
x openv/wmc/webserver/NOTICE
x openv/wmc/webserver/RELEASE-NOTES
x openv/wmc/webserver/RUNNING.txt
x openv/wmc/webserver/bin/
x openv/wmc/webserver/bin/bootstrap.jar
x openv/wmc/webserver/bin/catalina-tasks.xml
x openv/wmc/webserver/bin/catalina.sh
x openv/wmc/webserver/bin/commons-daemon-native.tar.gz
x openv/wmc/webserver/bin/commons-daemon.jar
x openv/wmc/webserver/bin/configtest.sh
x openv/wmc/webserver/bin/daemon.sh
x openv/wmc/webserver/bin/digest.sh
x openv/wmc/webserver/bin/setclasspath.sh
x openv/wmc/webserver/bin/shutdown.sh
x openv/wmc/webserver/bin/startup.sh
x openv/wmc/webserver/bin/tomcat-juli.jar
x openv/wmc/webserver/bin/tomcat-native.tar.gz
x openv/wmc/webserver/bin/tool-wrapper.sh
x openv/wmc/webserver/bin/version.sh
x openv/wmc/webserver/conf/
x openv/wmc/webserver/conf/catalina.policy
x openv/wmc/webserver/conf/catalina.properties
x openv/wmc/webserver/conf/context.xml.template
x openv/wmc/webserver/conf/server.xml.template
x openv/wmc/webserver/conf/tomcat-users.xml
x openv/wmc/webserver/conf/tomcat-users.xsd
x openv/wmc/webserver/conf/web.xml.template
x openv/wmc/webserver/lib/
x openv/wmc/webserver/lib/annotations-api.jar
x openv/wmc/webserver/lib/catalina-ant.jar
x openv/wmc/webserver/lib/catalina-ha.jar
x openv/wmc/webserver/lib/catalina-storeconfig.jar
x openv/wmc/webserver/lib/catalina-tribes.jar
x openv/wmc/webserver/lib/catalina.jar
x openv/wmc/webserver/lib/ecj-4.4.2.jar
x openv/wmc/webserver/lib/el-api.jar
x openv/wmc/webserver/lib/jasper-el.jar
x openv/wmc/webserver/lib/jasper.jar
x openv/wmc/webserver/lib/jsp-api.jar
x openv/wmc/webserver/lib/servlet-api.jar
x openv/wmc/webserver/lib/tomcat-api.jar
x openv/wmc/webserver/lib/tomcat-coyote.jar
x openv/wmc/webserver/lib/tomcat-dbcp.jar
x openv/wmc/webserver/lib/tomcat-i18n-es.jar
x openv/wmc/webserver/lib/tomcat-i18n-fr.jar
x openv/wmc/webserver/lib/tomcat-i18n-ja.jar
x openv/wmc/webserver/lib/tomcat-jdbc.jar
x openv/wmc/webserver/lib/tomcat-jni.jar
x openv/wmc/webserver/lib/tomcat-util-scan.jar
x openv/wmc/webserver/lib/tomcat-util.jar
x openv/wmc/webserver/lib/tomcat-websocket.jar
x openv/wmc/webserver/lib/websocket-api.jar
x openv/wmc/webserver/temp/
x openv/wmc/webserver/temp/safeToDelete.tmp
x openv/wmc/webserver/webapps/
x openv/wmc/webserver/webapps/ROOT/
x openv/wmc/webserver/webapps/ROOT/RELEASE-NOTES.txt
x openv/wmc/webserver/webapps/ROOT/WEB-INF/
x openv/wmc/webserver/webapps/ROOT/WEB-INF/web.xml
x openv/wmc/webserver/webapps/ROOT/asf-logo-wide.gif
x openv/wmc/webserver/webapps/ROOT/asf-logo.png
x openv/wmc/webserver/webapps/ROOT/bg-button.png
x openv/wmc/webserver/webapps/ROOT/bg-middle.png
x openv/wmc/webserver/webapps/ROOT/bg-nav-item.png
x openv/wmc/webserver/webapps/ROOT/bg-nav.png
x openv/wmc/webserver/webapps/ROOT/bg-upper.png
x openv/wmc/webserver/webapps/ROOT/build.xml
x openv/wmc/webserver/webapps/ROOT/favicon.ico
x openv/wmc/webserver/webapps/ROOT/index.jsp
x openv/wmc/webserver/webapps/ROOT/tomcat-power.gif
x openv/wmc/webserver/webapps/ROOT/tomcat.css
x openv/wmc/webserver/webapps/ROOT/tomcat.gif
x openv/wmc/webserver/webapps/ROOT/tomcat.png
x openv/wmc/webserver/webapps/ROOT/tomcat.svg
Creating WSL server certificate ...
set_value: Key "AZDBPasswordFilePath" successfully updated
AZ database setup complete.
Database server is NB_rhel6-01
Creating the NetBackup database.
Creating NetBackup staging directory in: /usr/openv/db/staging
Starting the NetBackup database.
Authenticating the NetBackup database.
VXDBMS_NB_DATA entry in bp.conf updated successfully.
Setting of database authentication for NBDB successful.
Change of dba password for NBDB successful.
Creating the NetBackup database files.
The NetBackup database files creation complete.
Creating the NetBackup database schema.
Verifying the running version of NBDB ...
NBDB version 7.7.3.0 verified.
Upgrading NBDB (7.7.3.0) to (7.7.3.0) ...
NBDB version remains the same.
Starting NBDB database self-tuning. This may take some time...
Found 0 fragmented records in database.
NBDB database self-tuning is complete.
Database [NBDB] validation successful.
The NetBackup database creation complete.
Database [NBDB] is alive and well on server [NB_rhel6-01].
Creating the NetBackup Authorization database.
Creation of NetBackup Authorization database is complete.
Exiting from create_nbdb, status[0].
Migrating SLP definitions into the NetBackup relational database.
Starting the NetBackup Event Manager.
Starting the NetBackup Audit Manager.
Starting the NetBackup Deduplication Manager.
Starting the NetBackup Deduplication Engine.
Starting the NetBackup database manager process (bpdbm).
Creating Directive Set for LotusNotes
Creating Directive Set for MS_Exchange_Mailbox
Creating Directive Set for MS_Exchange_Database
Creating Directive Set for MS_Exchange_Public_Folders
Creating Directive Set for MS_Exchange_Database_Availability_Groups
Creating Directive Set for MS_SharePoint_Portal_Server
Creating Template Set for Oracle_RMAN
Creating Template Set for Oracle_XML_Export
Creating Template Set for DB2
Creating Directive Set for Windows2003
Creating Directive Set for Windows2008
Creating Directive Set for Windows
Creating Directive Set for Enterprise_Vault_7.5
Creating Directive Set for Enterprise_Vault_8.0
Creating Directive Set for Enterprise_Vault_9.0
Creating Directive Set for Enterprise_Vault_10.0
Creating Directive Set for Enterprise_Vault_11.0
Creating Directive Set for NDMP
Creating Directive Set for FlashBackup
Converting snapshot policies:
Policy conversion summary:
Number of original policies: 0
Number of non-snapshot policies skipped: 0
Number of policies not needing conversion: 0
Number of policies converted to
'auto' snapshot method: 0
Number of policies converted: 0
Updating client hardware definitions:
Hardware update conversion summary:
Number of policies processed: 0
Number of policies with affected clients: 0
Number of clients processed: 0
Number of clients converted: 0
Updating policy identifiers:
Policy identifier update summary:
Number of policies processed: 0
Number of policies with duplicate identifier: 0
Number of policies with empty identifier: 0
Number of policies with affected identifier: 0
Starting the NetBackup compatibility daemon.
Starting the NetBackup Enterprise Media Manager.
Starting the NetBackup Resource Broker.
Populating the database tables. This will take some time.
Starting the Media Manager device daemon processes.
Do you want to start the job-related NetBackup daemons
so backups and restores can be initiated? [y,n] (y)
Starting the NetBackup request daemon process (bprd).
Starting the NetBackup Job Manager.
Starting the NetBackup Policy Execution Manager.
Starting the NetBackup Storage Lifecycle Manager.
Starting the NetBackup Remote Monitoring Management System.
Starting the NetBackup Key Management daemon.
Starting the NetBackup Service Layer.
Starting the NetBackup Indexing Manager.
Starting the NetBackup Agent Request Server.
Starting the NetBackup Bare Metal Restore daemon.
Starting the NetBackup Web Management Console.
Starting the NetBackup Vault daemon.
Starting the NetBackup CloudStore Service Container.
Starting the NetBackup Service Monitor.
Starting the NetBackup Bare Metal Restore Boot Server daemon.
OpsCenter is the next-generation monitoring, reporting and
administrative solution designed to centrally manage one or
more NetBackup installations from a web browser.
If an OpsCenter server already exists in your environment
or you plan to install one, enter the real hostname of that
OpsCenter server here. Do not use a virtual name. If you
do not want this local machine to be an OpsCenter server,
enter NONE.
Enter the OpsCenter server (default: NONE):
NetBackup server installation complete.
File /usr/openv/tmp/install_trace.27898 contains a trace of this install.
That file can be deleted after you are sure the install was successful.
[root@rhel6-01 NetBackup_7.7.3_LinuxR_x86_64]#
常用命令
# Console,登录用户名和密码为本地root帐号
/usr/openv/netbackup/bin/jnbSA
# 图形化配置
- 新建一个policy
- 在Attributes先确认Policy Type,修改Policy storage
- 可以配置一个或者多个Schedules
# 修改环境变量
vim /root/.bash_profile
PATH=$PATH:$HOME/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netbackup/bin/goodies:/usr/openv/volmgr/bin
# 停止服务
/usr/openv/netbackup/bin/goodies/netbackup stop
/usr/openv/netbackup/bin/bp.kill_all
# 查看进程
/usr/openv/netbackup/bin/bpps -x
# 未开启重复删除功能前的常见端口,双向+长连接
1556
13724
# 开启重删后增加2个端口
10082
10102
# 导入ovf后需要做2件事
1. 修改IP和hosts
2. 执行bpclntcmd: -clear_host_cache
3. 升级或者重新安装一定要保存好NBU catalog数据库
配置加速备份实践
# 增加独立存储空间
fdisk /dev/sdb
pvcreate /dev/sdb1
mkfs.ext4 /dev/sdb1
mkdir /pool
mount /dev/sdb1 /pool
# 图形化配置
jnbSA
Configure Disk Storage Servers
- Media Server Deduplication Pool
- Storage Path: /pool
policy: pool
- Policy type: Standard
-- Policy storage: pool-stu
-- Use Accelerator
# 测试备份加速
执行2次Manual Backup,观察增量备份时间区别
配置Oracle数据库备份和恢复实践
# 数据库打开归档
shutdown immediate
startup mount
alter database archivelog;
alter system set log_archive_dest_1='location=/archivelog/rman_backup' scope=both;
archive log start
alter database open;
archive log list;
# 配置环境变量
su - oracle
[oracle@rhel6-01 ~]$ vim .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/openv/netbackup/bin/goodies:/usr/openv/volmgr/bin
export ORACLE_SID=orcl
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export PATH
# 配置oracle_link
su - oracle
[oracle@rhel6-01 ~]$ oracle_link
Fri Apr 21 13:41:56 CST 2017
All Oracle instances should be shutdown before running this script.
Please log into the Unix system as the Oracle owner for running this script
Do you want to continue? (y/n) [n] y
LIBOBK path: /usr/openv/netbackup/bin
ORACLE_HOME: /home/oracle/app/oracle/product/11.2.0/dbhome_1
Oracle version: 11.2.0.3.0
Platform type: x86_64
Linking LIBOBK:
ln -s /usr/openv/netbackup/bin/libobk.so64 /home/oracle/app/oracle/product/11.2.0/dbhome_1/lib/libobk.so
Done
Please check the trace file located in /tmp/make_trace.15372
to make sure the linking process was successful.
# 修改备份脚本
mkdir /nbu
cp /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup.sh /nbu/
vim hot_database_backup.sh
ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
ORACLE_SID=orcl
# 图形化配置策略
policy
- Policy type: oracle
- Clients: Clients for use with scripts or templates
- Backup Selections: /nbu/hot_database_backup.sh
# NetBackup 7.6以后可以通过图形化配置备份,不依赖脚本,省去前两步,直接配置策略即可
jnbSA
NetBackup Management - Applications - Oracle - All Instances
- Discover Instances
- 右键数据库选择Register
# 配置策略
policy
- Policy type: oracle
- Clients: Protect Instances and Databases
# 开启并行优化加速
- NetBackup Management - Host Properties - Master Servers
- Properties - Global Attributes - Maximum job per client
# policy调整参数
- Number of parallel streams
# Oracle数据库恢复实践
# 模拟数据库误删除(可以跳过直接回复某个数据文件测试)
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------
/home/oracle/app/oracle/oradata/orcl/system01.dbf
/home/oracle/app/oracle/oradata/orcl/sysaux01.dbf
/home/oracle/app/oracle/oradata/orcl/undotbs01.dbf
/home/oracle/app/oracle/oradata/orcl/users01.dbf
/home/oracle/app/oracle/oradata/orcl/example01.dbf
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
# nbu查看备份列表
[root@rhel6-01 nbu]# bplist -C rhel6-01 -t 4 -l -R /
-rw-rw---- oracle oracle 9961472 Apr 21 14:32 /ctrl_dORCL_u0bs28f04_s11_p1_t941898756
-rw-rw---- oracle oracle 786432 Apr 21 14:32 /arch_dORCL_u0as28evl_s10_p1_t941898741
-rw-rw---- oracle oracle 9961472 Apr 21 14:32 /bk_dORCL_u09s28ev2_s9_p1_t941898722
-rw-r----- oracle oracle 744497152 Apr 21 14:31 /home/oracle/app/oracle/oradata/orcl/system01.dbf
-rw-r----- oracle oracle 120594432 Apr 21 14:31 /home/oracle/app/oracle/oradata/orcl/undotbs01.dbf
-rw-r----- oracle oracle 5251072 Apr 21 14:31 /home/oracle/app/oracle/oradata/orcl/users01.dbf
-rw-r----- oracle oracle 597696512 Apr 21 14:30 /home/oracle/app/oracle/oradata/orcl/sysaux01.dbf
-rw-r----- oracle oracle 328343552 Apr 21 14:30 /home/oracle/app/oracle/oradata/orcl/example01.dbf
-rw-rw---- oracle oracle 9961472 Apr 21 14:04 /cntrl_7_1_941897082
-rw-rw---- oracle oracle 262144 Apr 21 14:04 /al_6_1_941897055
-rw-rw---- oracle oracle 3407872 Apr 21 14:04 /al_5_1_941897055
-rw-rw---- oracle oracle 262144 Apr 21 14:03 /bk_4_1_941897037
-rw-rw---- oracle oracle 9961472 Apr 21 14:03 /bk_3_1_941896978
-rw-rw---- oracle oracle 690487296 Apr 21 14:01 /bk_1_1_941896912
-rw-rw---- oracle oracle 516161536 Apr 21 14:01 /bk_2_1_941896912
# 参考nbu备份脚本
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman/complete_database_restore.sh
# 恢复控制文件
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
RESTORE controfile from autobackup;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
}
# 恢复数据文件
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
RESTORE DATABASE;
RECOVER DATABASE;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
}