如何在Linux系统上安装和配置Backup Exec 12.5 Oracle Agent

来源:互联网 发布:个人域名转让给企业 编辑:程序博客网 时间:2024/05/16 06:46

如何在Linux系统上安装和配置Backup Exec 12.5 Oracle Agent

Veritas backexec   2009-08-31 15:24   阅读43   评论0  
字号:    
一、安装部分
Backup Exec是一款主要用于Windows平台的数据保护产品,但是它也包含了用于Linux或Unix的代理程序。要清楚你所使用的Backup Exec支持哪些Linux或Unix系统,请访问技术支持网站上的软件兼容性列表,以现在用户数量最多的BE10d为例,它的兼容性列表网址是:

http://support.veritas.com/docs/278254

你可以在软件兼容性列表中发现两个用于Linux或Unix的代理产品,它们的兼容性不同:
Remote Agent for Linux and UNIX Servers (RALUS) Compatibility // 即RALUS,新的代理程序,收费,性能较高。
Legacy Linux/UNIX/Mac Compatibility  // 传统的代理程序,免费,性能较低,以后会被RALUS取代。

查过兼容性列表之后,如果你所使用的操作系统包括在兼容性列表之中,就可以考虑采用Backup Exec来保护你的系统。如果兼容性列表中没有列出你所使用的系统,则可能存在兼容性问题,建议先进行测试,确认可以使用再购买。

下面将介绍RALUS的安装(Legacy Agent现在很少有人使用,就不介绍了)

下面假定你的Media Server(安装有Backup Exec的备份服务器)己经安装好,并且安装了RALUS选件。

首先,RALUS的安装程序较大,被放在单独的光盘中提供。如果没有安装光盘,也可以通过Symantec网站下载

http://support.veritas.com/docs/279329

下载的安装包是压缩的,需要先解包,光盘中的安装程序不是压缩的,可以直接安装。下面是我的安装记录(用的是BE11d RALUS安装程序),中间加了一些解释(红色部分)。

[root@redhatas3 /]# mount /mnt/cdrom
[root@redhatas3 /]# cd /mnt/cdrom
[root@redhatas3 cdrom]# ./installralus     // 执行安装脚本

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235
Enter the system names separated by spaces on which to install RALUS: (redhatas3)  // 输入目标主机名称
Checking system communication:
    Checking OS version on redhatas3 ........................ Linux 2.4.21-32.EL
    Checking system support for redhatas3 ... Linux 2.4.21-32.EL supported by RALUS
Initial system check completed successfully.
Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235
installralus will install the following RALUS packages on Linux target system: redhatas3
VRTSvxmsa        VERITAS - VxMS Mapping Service, Application Libraries.  // 两个安装包需要安装
VRTSralus        VERITAS Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers
Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235
Checking system installation requirements:
Checking RALUS installation requirements on Linux target systems: redhatas3
Checking RALUS installation requirements on redhatas3:
    Checking file system space ................... required space is available
Installation requirements checks completed successfully.
Press [Return] to continue:

    Checking for Port 10000 ............................................. Done   // RALUS服务监视在TCP 10000端口,确保没有其它应用使用该端口。

                      Remote Agent Media Server Configuration                     
To display the Remote Agent as a selection in a media server's backup selection tree, and to be able to specify a local network for use between the Remote Agent and a media server, enter the names or IP addresses of the media servers that you want the Remote Agent to communicate with.
        An IP Address: XXX.XXX.XXX.XXX
        A Host Name: COMPUTERNAME
Enter a directory host:mybeserver   // 输入备份服务器的名称,RALUS会定期向备份服务器通告自己的存在,收到通知后备份服务器会在备份选择窗口中显示该Linux/Unix主机。

      

Do you want to add another name or address for this agent? [y, n] (n)

                      Remote Agent Media Server Configuration                     
Hostnames and/or IP addresses verification:
        Address: mybeserver
Is this information correct? [y, n] (y)

                           Remote Agent User Group Setup                           
To perform backups, you must have a 'beoper' user group. This user group can be created only if you are not using NIS server. Your system will be scanned to detect a NIS server, group and membership.

Press [Return] to continue:
    Checking if system uses NIS server: .................................. No
The installer will now check your system for the 'beoper' user group and root membership.

Press [Return] to continue:
    Checking for 'beoper' user group: .............................. Not Found
    Checking for 'root' user membership in 'beoper' user group: .... Not Found
You can create 'beoper' user group manually or you can choose to have it created automatically.
Do you want installer to create 'beoper' user group? [y, n] (y)
Do you want to use specific group ID when creating 'beoper' user group? [y, n] (n)

    Creating group 'beoper': ............................................ Done  // 如果系统不采用NIS管理用户,安装向导会在本地组中添加beoper组,属于beoper组中的用户可以用于备份该主机上的资源,在备份服务器连接该主机时使用。

Do you want to add the 'root' user to 'beoper' user group? [y, n] (y)

    Adding 'root' user to 'beoper' user group: ......................... Done  // 如果将root用户加入beoper组,则可以在备份服务器使用root用户连接到该主机,可备份或恢复根下的所有文件和目录。

Press [Return] to continue:
Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235
will upgrade from Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers.
    Checking VRTSvxmsa package ................................. not installed
    Checking VRTSralus package ................................. not installed
Press [Return] to continue:

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235
Base pre Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers. uninstall failed!
    Installing VRTSvxmsa 4.4 on redhatas3 .................... done 1 of 2 steps
    Installing VRTSralus 11.00.6235 on redhatas3 ............. done 2 of 2 steps
Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers. installation completed successfully.

Press [Return] to continue:   // 创建启动脚本,并在rc2.d,rc3.d和rc5.d中创建软链接,以便在系统启动时自动启动RALUS服务。

    Copying new initialization scripts .................................. Done
    Creating RALUS linkedname in rc2.d .................................. Done
    Creating RALUS linkedname in rc3.d .................................. Done
    Creating RALUS linkedname in rc5.d .................................. Done
    Updating RALUS files for beoper ..................................... Done

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers 11.00.6235
Configuring Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers.:
    Creating configuration files ........................................ Done

Symantec Backup Exec for Windows Servers Remote Agent for Linux/Unix Servers. configured successfully.
Press [Return] to continue:
The response file is saved at:
    /var/tmp/vxif/installralus206140849/installralus206140849.response
The installralus log is saved at:
    /var/tmp/vxif/installralus206140849/installralus.log

// 最后给出了安装日志的位置,可以通过查看这些日志了解安装完成情况。

二、配置部分
BE11d的Oracle Agent与以前的版本有本质的不同,它采用RMAN来备份Oracle数据库,也支持Linux系统上的Oracle数据库,很多用户对它的配置还不熟悉,特别是在Linux系统上的配置,下面是我所做的一个配置实例。中文部分是我加的说明。

[root@ora10g lib]# /opt/VRTSralus/bin/AgentConfig // 安装好RALUS之后,请使用root用户来配置代理程序。

Symantec Backup Exec Remote Agent Utility
Choose one of the following options:
1. Configure database access
2. Configure Oracle instance information
3. Quit
Please enter your selection: 1 // 要完成两个部分的配置,数据库访问和Oracle实例,下面先配置数据库访问。

Configuring machine information
Choose one of the following options:
1. Add system credentials for Oracle operations
2. Edit system credentials used for Oracle operations
3. Remove system credentials used for Oracle operations
4. View system credentials used for Oracle operations
5. Quit
Please enter your selection: 1 // 添加新的Linux系统级访问凭据。
Enter a user name that has local system credentials: oracle // Oracle是Linux上面的用户,它必须是beoper组的成员。
Enter the password:
Re-enter password:
Validating credentials.......
Do you want to use the full computer name/IP address for Oracle operations? (Y/N):n // 指定名字的好处是,避免因为计算机名字或IP地址的变化导致Recovery Catalog中的记录信息混乱。
Do you want to use a custom port to connect to the media server during Oracle operations? (Y/N): n

// 默认的端口号是5633,建议不要改动它,除非这个端口己经被其它应用程序占用,如果这里做出了改变,介质服务器端也要做同样的修改。

Commit Oracle operation settings to the configuration file? (Y/N): y
SUCCESS: Successfully added the entry to the configuration file.

//上述配置中的计算机名(如果没有指定就是在介质服务器上连接这台机器时所使用的名字或IP地址),用户名和密码必须也介质服务器全局选项中Oracle选项页中配置的为Oracle和DB2所设置的验证信息完全一致。

Configuring machine information
Choose one of the following options:
1. Add system credentials for Oracle operations
2. Edit system credentials used for Oracle operations
3. Remove system credentials used for Oracle operations
4. View system credentials used for Oracle operations
5. Quit
Please enter your selection: 5

Symantec Backup Exec Remote Agent Utility
Choose one of the following options:
1. Configure database access
2. Configure Oracle instance information
3. Quit
Please enter your selection: 2 // 下面来配置Oracle实例信息。

If this computer is a RAC node, you must perform additional steps for configuration before you continue. Refer to the readme for these additional steps.

Configuring the Oracle Agent
Choose one of the following options:
1. Add a new Oracle instance to protect
2. Edit an existing Oracle instance
3. Delete an existing Oracle instance
4. View Oracle instance entries that have been added in the Remote Agent Utility
5. Quit
Please enter your selection: 1
Select an Oracle instance to configure
Entry 1. orcl // 如果RALUS检测到了系统中的Oracle实例,实例名会列在这里供用户选择,如果你的实例名没有出现在这里,请检查Listener和数据库的状态。

Enter the number 0 to go back
Enter your selection: 1
Enter the Oracle database SYSDBA user name: sys // Oralce DBA的账号,推荐使用sys。
Enter the Oracle database SYSDBA password:
Re-enter password:
Validating credentials.......
Enter the media server name or IP address: be11d // 这里输入介质服务器的名字
Do you use a recovery catalog? (Y/N):n // 如果你己经安装好了用做Recovery Catalog的实例并做了初始化,就在这里输入实例名和登录账号,如果没有Recovery Catalog就选n,RMAN编录信息将被写入控制文件。

Do you want to use a customized job template? (Y/N): n // 这里不需要定义作业模板名,因为你在RMAN脚本中可以使用send “NBBSA_JOB_TEMPLATE=模板名”命令为每个备份指定不同的模板名,当然你要预先在介质服务器端创建好这个模板。

Commit Oracle operation settings to the configuration file? (Y/N): y
Renamed file /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libobk.so to /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libobk.so.oracle.org
Created symbolic link for /opt/VRTSralus/bin/libobk.so at /u01/app/oracle/oracle/product/10.2.0/db_1/lib/libobk.so // 配置向导在Oracle数据库的库文件目录下将libobk.so链接到RALUS的文件,BE接管了RMAN向磁带机写入数据的备份接口,RMAN向 sbt或sbt_tape设备写入数据时,RALUS会把数据传送到介质服务器。

SUCCESS: Successfully added the entry to the configuration file.

Configuring the Oracle Agent
Choose one of the following options:
1. Add a new Oracle instance to protect
2. Edit an existing Oracle instance
3. Delete an existing Oracle instance
4. View Oracle instance entries that have been added in the Remote Agent Utility
5. Quit
Please enter your selection: 5

Symantec Backup Exec Remote Agent Utility
Choose one of the following options:
1. Configure database access
2. Configure Oracle instance information
3. Quit
Please enter your selection: 3

[root@ora10g lib]# /etc/init.d/VRTSralus.init start // 配置完成,启动RALUS。
Starting Symantec Backup Exec Remote Agent ......
Starting Symantec Backup Exec Remote Agent: [ OK ]
截选自:http://blog.163.com/jingh3209/blog/static/1569667200973132427119/
原创粉丝点击