重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6585|回复: 6
打印 上一主题 下一主题

安装Oracle secure backup + 虚拟磁带机(mhvtl)

[复制链接]
跳转到指定楼层
楼主
发表于 2013-5-1 13:25:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

新版本的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

 

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2013-5-1 14:18:26 | 只看该作者

很累了 弄这个帖子花了两个多小时了 还没弄好 丢个PDF到群共享 大伙去看吧

[此贴子已经被作者于2013-7-10 21:59:43编辑过]
回复 支持 反对

使用道具 举报

板凳
发表于 2013-5-6 15:16:14 | 只看该作者
--//检查虚拟磁带库信息
lsscsi -g
lsscsi -l
mtx -f /dev/sg9 status

--//根据 lsscsi -g 的查询结果依次修改添加执行(xt-test为主机名)

mkdev -t library -o -a xt-test:/dev/sg9 lib01

mkdev -t tape -o -a xt-test:/dev/sg1 -l lib01 -d 1 tape01
mkdev -t tape -o -a xt-test:/dev/sg2 -l lib01 -d 2 tape02
mkdev -t tape -o -a xt-test:/dev/sg3 -l lib01 -d 3 tape03
mkdev -t tape -o -a xt-test:/dev/sg4 -l lib01 -d 4 tape04

 

 

在操作系统上没有看到mkdev命令?

回复 支持 反对

使用道具 举报

地板
 楼主| 发表于 2013-5-10 05:23:42 | 只看该作者

mkdev 是OSB的obtool的命令 需要首先登录OSB再执行

如:

sh /usr/local/oracle/backup/bin/obtool

即可启动obtool

回复 支持 反对

使用道具 举报

5#
发表于 2013-5-10 13:24:19 | 只看该作者
哦,看来文档没有说清楚啥,跟着你的贴子步骤走不通哈.
回复 支持 反对

使用道具 举报

6#
 楼主| 发表于 2013-6-10 18:22:22 | 只看该作者

OSB官方安装教程:

http://st-curriculum.oracle.com/obe/db/11g/r1/prod/ha/osb10_2install/osb1.htm

 

Installing the Oracle Secure Backup Software

In this topic you install the unzipped, staged Oracle Secure Backup software.

To install the Oracle Secure Backup software, perform the following steps:

1.

As the root user, create the OSB home directory by executing the following command:

# mkdir -p /usr/local/oracle/backup

 

2.

Navigate into your OSB home directory:

# cd /usr/local/oracle/backup

Note: It is important for a correct setup that you remain in this directory for the following steps.

 

3.

Ensure that the uncompress utility is available:

# ln -s /bin/gunzip /bin/uncompress

 

4.

In your OSB home directory start the Oracle Secure Backup installation as the root user.

# /stage/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.2.0.2.0_linux32.
Please wait a moment while I learn about this host... done.
- - - - - - - - - - - - - - - - - - - - - - - - - - -
   1. linux32
   administrative server, media server, client
- - - - - - - - - - - - - - - - - - - - - - - - - - -
         Loading Oracle Secure Backup installation tools... done.
         Using your previous obparameters file. The new file shipped with this
   distribution of Oracle Secure Backup is called install/obparameters.new.
   Loading linux32 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]: 

5.

Enter yes to continue with your installation:

Please answer 'yes' or 'no' [yes]: yes
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Welcome to installob, Oracle Secure Backup's UNIX installation program.
It installs Oracle Secure Backup onto one or more UNIX or Linux systems
         on your network. (Install Oracle Secure Backup for Windows using the
         CD-ROM from which you loaded this software.)
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]?

6.

Enter no, because you have not customized any parameters:

Have you already reviewed and customized install/obparameters for your
         Oracle Secure Backup installation [yes]? no
Would you like to do this now [yes]?       
7.

Enter no again, because you are performing a default installation.

Would you like to do this now [yes]? no

-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
Oracle Secure Backup is not yet installed on this machine.
Oracle Secure Backup's Web server has been loaded, but is not yet configured.
You can install this host one of three ways:
   (a) administrative server
   (the host will also be able to act as a media server or client)
   (b) media server
   (the host will also be able to act as a client)
   (c) client
If you are not sure which way to install, please refer to the Oracle
       Secure Backup Installation Guide. (a,b or c) [a]?

8.

First you install the administrative server. Enter a to do so:

If you are not sure which way to install, please refer to the Oracle
       Secure Backup Installation Guide. (a,b or c) [a]? a
Beginning the installation. This will take just a minute and will produce
         several lines of informational output.
Installing Oracle Secure Backup on edrsr4p1 (Linux version 2.6.9-55.0.0.0.2.ELsmp)
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:

9.

Choose passwords appropriate for your environment and ensure that you remember them. Enter your chosen password twice as the key store password and for verification:

Please enter the key store password: keystore_password 
Re-type password for verification: keystore_password

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:

10.

Enter your chosen password twice as the admin password and for verification:

Please enter the admin password: admin_password
Re-type password for verification: admin_password 

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:
11.

Press the Enter key without any entry, because this tutorial does not use email notification. The installation continues:

 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 /usr/local/oracle/backup 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 /usr/local/oracle/backup/admin 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 host01 connected to any tape libraries that you'd like to use with
       Oracle Secure Backup [no]?

12.

You will connect tape libraries and tape drives in one of the following steps, so enter no twice:

Is host01 connected to any tape libraries that you'd like to use with
       Oracle Secure Backup [no]? no
Is host01 connected to any tape drives that you'd like to use with
       Oracle Secure Backup [no]? no
Installation summary:
 Installation Host     OS        Driver      OS Move     Reboot
   Mode       Name     Name    Installed?   Required?  Required?
   admin      host01   Linux   no           no         no
Oracle Secure Backup is now ready for your use.
# 
13.

Log off as the root user:

# exit
$

回复 支持 反对

使用道具 举报

7#
发表于 2013-9-5 01:49:55 | 只看该作者

注意:如果是oel 6以上版本,还需要执行以下包:

rpm -ivh kernel-uek-devel-2.6.39-400.17.1.el6uek.i686.rpm

 

rpm -ivh zlib-devel-1.2.3-29.el6.i686.rpm

 

否则,mhvtl编译会抱错,并不能成功.

 

[root@dbserver kernel]# make&&make install
make -C /lib/modules/2.6.39-400.17.1.el6uek.i686/build SUBDIRS=/u01/app/setup/mhvtl-1.4/kernel modules
make: *** /lib/modules/2.6.39-400.17.1.el6uek.i686/build: No such file or directory.  Stop.
make: *** [default] Error 2

[此贴子已经被作者于2013-9-5 1:51:31编辑过]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-6-1 18:48 , Processed in 0.112735 second(s), 23 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表