新版本的oracle12C和OSB以及MHVTL
所以更新一下这个帖子 ……
Oracle secure backup + Mhvtl 部署及配置
测试环境: OS:RHEL 5.9 x86_64 OSB:10.4.0.3.0 for Linux64bit DB:oracle database 12C
osb下载地址: http://www.oracle.com/technetwork/products/secure-backup/downloads/index.html
mhvtl最新版下载地址(下载源码包): http://sites.google.com/site/linuxvtl2/
可能会用到的在线翻墙地址: http://proxyie.cn/
安装Mhvtl --//安装必须的RPM包(RHEL 5.9 x86_64) rpm -ivh mt-st-0.9b-4.el5.x86_64.rpm rpm -ivh mtx-1.2.18-9.x86_64.rpm
rpm -ivh sg3_utils-libs-1.25-5.el5.i386.rpm rpm -ivh sg3_utils-libs-1.25-5.el5.x86_64.rpm rpm -ivh sg3_utils-1.25-5.el5.x86_64.rpm rpm -ivh sg3_utils-devel-1.25-5.el5.i386.rpm rpm -ivh sg3_utils-devel-1.25-5.el5.x86_64.rpm
rpm -ivh lsscsi-0.17-3.el5.x86_64.rpm
rpm -ivh iscsi-initiator-utils-6.2.0.872-16.el5.x86_64.rpm
rpm -ivh kernel-2.6.18-348.el5.x86_64.rpm rpm -ivh kernel-devel-2.6.18-348.el5.x86_64.rpm rpm -ivh kernel-headers-2.6.18-348.el5.x86_64.rpm
rpm -ivh liblzo2-2-2.06-34.1.i386.rpm rpm -ivh liblzo2-2-2.06-34.1.x86_64.rpm rpm -ivh lzo-devel-2.06-34.1.i386.rpm rpm -ivh lzo-devel-2.06-34.1.x86_64.rpm
--//编译安装mhvtl useradd vtl groupadd vtl mkdir /opt/mhvtl mkdir /etc/mhvtl chown -R vtl:vtl /opt/mhvtl/ chown -R vtl:vtl /etc/mhvtl/ cd kernel/ make && make install modprobe mhvtl lsmod |grep mhvtl cd .. make && make install
--//检查是否安装成功 ls /etc/mhvtl/
--//启动mhvtl service mhvtl start
--//停止mhvtl service mhvtl stop
--//检查磁带虚拟目录 ls /opt/mhvtl/
--//检查虚拟磁带库信息 lsscsi -g lsscsi -l mtx -f /dev/sg9 status
--//到这一步之后,暂停操作 先去安装OSB
安装OSB
--//官网下载最新版本10.4.0.3.0的Linux x86_64位版本 mkdir -p /usr/local/oracle/backup ln -s /bin/gunzip /bin/uncompress
[root@db-12c /]# mkdir -p /opt/osb [root@db-12c /]# ls /opt/ agent mhvtl oracle oraInventory ORCLfmap osb rh [root@db-12c /]# cd /opt/osb/ [root@db-12c osb]# /dvd-soft/osb-10.4.0.3.0_linux.x64_release/setup Welcome to Oracle's setup program for Oracle Secure Backup. This program loads Oracle Secure Backup software from the CD-ROM to a filesystem directory of your choosing. This CD-ROM contains Oracle Secure Backup version 10.4.0.3.0_LINUX64. Please wait a moment while I learn about this host... done. Would you like to load the Oracle Secure Backup software into your current directory /opt/osb? (Oracle recommends using /usr/local/oracle/backup as the Oracle Secure Backup home) A 'yes' answer proceeds to use the current directory [yes]: 回车 - - - - - - - - - - - - - - - - - - - - - - - - - - - 1. linux86_64 administrative server, media server, client - - - - - - - - - - - - - - - - - - - - - - - - - - - Loading Oracle Secure Backup installation tools... done. Updating Oracle Secure Backup directory name for Linux in install/obparameters... done. Loading linux86_64 administrative server, media server, client... done. - - - - - - - - - - - - - - - - - - - - - - - - - - - Loading of Oracle Secure Backup software from CD-ROM is complete. You may unmount and remove the CD-ROM. Would you like to continue Oracle Secure Backup installation with 'installob' now? (The Oracle Secure Backup Installation Guide contains complete information about installob.) Please answer 'yes' or 'no' [yes]: 回车 - - - - - - - - - - - - - - - - - - - - - - - - - - - Welcome to installob, Oracle Secure Backup's installation program. For most questions, a default answer appears enclosed in square brackets. Press Enter to select this answer. Please wait a few seconds while I learn about this machine... done. Have you already reviewed and customized install/obparameters for your Oracle Secure Backup installation [yes]? 回车 Verifying that installation parameters are correct... done. - - - - - - - - - - - - - - - - - - - - - - - - - - - Oracle Secure Backup is not yet installed on this machine. Oracle Secure Backup's Web server has been loaded, but is not yet configured. Choose from one of the following options. The option you choose defines the software components to be installed. Configuration of this host is required after installation completes. You can install the software on this host in one of the following ways: (a) administrative server, media server and client (b) media server and client (c) client If you are not sure which option to choose, please refer to the Oracle Secure Backup Installation Guide. (a,b or c) [a]? 回车 Beginning the installation. This will take just a minute and will produce several lines of informational output. Installing Oracle Secure Backup on db-12c (Linux version 2.6.18-348.el5) You must now enter a password for the Oracle Secure Backup encryption key store. Oracle suggests you choose a password of at least 8 characters in length, containing a mixture of alphabetic and numeric characters. Please enter the key store password: 输入密码后回车 Re-type password for verification: 输入密码后回车 You must now enter a password for the Oracle Secure Backup 'admin' user. Oracle suggests you choose a password of at least 8 characters in length, containing a mixture of alphabetic and numeric characters. Please enter the admin password: 输入管理员密码后回车 Re-type password for verification: 再次输入管理员密码后回车 You should now enter an email address for the Oracle Secure Backup 'admin' user. Oracle Secure Backup uses this email address to send job summary reports and to notify the user when a job requires input. If you leave this blank, you can set it later using the obtool's 'chuser' command. Please enter the admin email address: generating links for admin installation with Web server updating /etc/ld.so.conf checking Oracle Secure Backup's configuration file (/etc/obconfig) setting Oracle Secure Backup directory to /opt/osb in /etc/obconfig setting local database directory to /usr/etc/ob in /etc/obconfig setting temp directory to /usr/tmp in /etc/obconfig setting administrative directory to /opt/osb/admin in /etc/obconfig setting version to 10.4.0.3.0 in /etc/obconfig protecting the Oracle Secure Backup directory creating /etc/rc.d/init.d/observiced activating observiced via chkconfig initializing the administrative domain ****************************** N O T E ****************************** On Linux systems Oracle recommends that you answer no to the next two questions. The preferred mode of operation on Linux systems is to use the /dev/sg devices for attach points as described in the 'ReadMe' and in the 'Installation and Configuration Guide'. Is db-12c connected to any tape drives that you'd like to use with Oracle Secure Backup [no]? 回车 Installation summary: Installation Host OS Driver OS Move Reboot Mode Name Name Installed? Required? Required? admin db-12c Linux no no no Oracle Secure Backup is now ready for your use.
--//检查是否启动 启动后会有进程 [root@db-12c osb]# ps -ef|grep osb root 24791 24778 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obscheduled root 24838 24778 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obhttpd -DFOREGROUND -DSSL -d/opt/osb/apache nobody 24893 24838 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obhttpd -DFOREGROUND -DSSL -d/opt/osb/apache nobody 24894 24838 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obhttpd -DFOREGROUND -DSSL -d/opt/osb/apache nobody 24895 24838 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obhttpd -DFOREGROUND -DSSL -d/opt/osb/apache nobody 24896 24838 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obhttpd -DFOREGROUND -DSSL -d/opt/osb/apache nobody 24897 24838 0 16:17 pts/3 00:00:00 /opt/osb/.etc.linux86_64/obhttpd -DFOREGROUND -DSSL -d/opt/osb/apache root 25021 5745 0 16:19 pts/3 00:00:00 grep osb
--//登录obtool [root@db-12c bin]# ./obtool Oracle Secure Backup 10.4.0.3.0 login: admin Password: 输入管理员密码后回车
--//查看当前用户及主机角色 ob> lshost db-12c admin,client (via OB) in service
--//添加主机角色-db-12C为主机名 ob> chhost --addrole mediaserver db-12c
--//检查是否成功添加 ob> lshost db-12c admin,mediaserver,client (via OB) in service
--//启动浏览器登录web管理界面 https://127.0.0.1
|