oracle磁带机(Tape Driver)

本文档详细介绍了如何在Redhat5系统上配置和使用Oracle磁带机(Tape Driver),包括安装依赖包、创建用户和目录、编译与安装mhvtl、配置mhvtl服务、操作磁带驱动器,以及通过rman进行备份的步骤。同时提到了安全备份应用obtools的安装和设置,并展示了如何备份表空间到磁带的示例。
摘要由CSDN通过智能技术生成

1)mhvtl
1@@@@install dependency packages.(redhat5)
#yum -y install zlib-devel*
#yum -y install mtx*
#yum -y install mt-st*
#yum -y install lsscsi.i386*
#yum -y install make*

2@@@@prepare user and directory.
[root@station90 mhvtl]# useradd vtl
[root@station90 mhvtl]# passwd vtl
[root@station90 mhvtl]# mkdir /opt/mhvtl
[root@station90 mhvtl]# mkdir /etc/mhvtl
[root@station90 mhvtl]# chown -R vtl:vtl /opt/mhvtl
[root@station90 mhvtl]# chown -R vtl:vtl /etc/mhvtl

3@@@@make
[root@station90 mhvtl]# tar -zxvf mhvtl.tgz
[root@station90 mhvtl]# cd mhvtl-0.18/
[root@station90 mhvtl-0.18]# ls
doc include kernel man README usr
etc INSTALL Makefile mhvtl.spec scripts
[root@station90 mhvtl-0.18]# make distclean
[root@station90 mhvtl-0.18]# cd kernel/
[root@station90 kernel]# make ;make install
[root@station90 kernel]# cd ..
[root@station90 mhvtl-0.18]# ls
doc include kernel man README usr
etc INSTALL Makefile mhvtl.spec scripts
[root@station90 mhvtl-0.18]# make ;make install

4@@@@config of mhvtl
@@@start mhvtl service (optional)
#service mhvtl start
#/etc/init.d/mhvtl start
@@@configure files
[root@station90 mhvtl]# ls /etc/mhvtl/
device.conf library_contents.10 library_contents.30 mhvtl.conf
####begin#################################################
[root@station90 mhvtl]# cat /etc/mhvtl/mhvtl.conf
# Home directory for config file(s)
MHVTL_CONFIG_PATH=/etc/mhvtl

# Default media capacity (500 M)
CAPACITY=500 @@@always modify it to 8000 for lab.

# Set default verbosity [0|1|2|3]
VERBOSE=1

# Set kernel module debuging [0|1]
VTL_DEBUG=0
######end#################################################

@@@there are virtual tapes,data store in it.
[root@station90 mhvtl]# ls /opt/mhvtl/
CLN101L4 E01005L4 E01013L4 E03001L4 E03009L4 E03017L4 F01034L5
CLN102L5 E01006L4 E01014L4 E03002L4 E03010L4 E03018L4 F01035L5
................................

@@@lsscsi info
[root@station90 mhvtl]# lsscsi -l
...........................
[root@station90 mhvtl]# lsscsi -g
[0:0:0:0] disk VMware, VMware Virtual S 1.0 /dev/sda /dev/sg0
[1:0:0:0] mediumx STK L700 550V - /dev/sg9 @@@driver1
[1:0:1:0] tape IBM ULT3580-TD5 550V /dev/st0 /dev/sg1 @@@type1
[1:0:2:0] tape IBM ULT3580-TD5 550V /dev/st1 /dev/sg2 @@@type2
[1:0:3:0] tape IBM ULT3580-TD4 550V /dev/st2 /dev/sg3 @@@type3
[1:0:4:0] tape IBM ULT3580-TD4 550V /dev/st3 /dev/sg4 @@@type4
[1:0:8:0] mediumx SPECTRA PYTHON 550V - /dev/sg10 @@@driver2
[1:0:9:0] tape IBM ULT3580-TD4 550V /dev/st4 /dev/sg5 @@@type5
[1:0:10:0] tape IBM ULT3580-TD4 550V /dev/st5 /dev/sg6 @@@type6
[1:0:11:0] tape IBM ULT3580-TD4 550V /dev/st6 /dev/sg7 @@@type7
[1:0:12:0] tape IBM ULT3580-TD4 550V /dev/st7 /dev/sg8 @@@type8

5@@@@command of tape driver
@@@load tape manually.
# mtx -f /dev/sg10 load 1 0 @@@1=> tape and 0 => slot position
# mtx -f /dev/sg10 unload 1 0 @@@remove tape from slot.
# mtx -f /dev/sg10 status @@@check the tape status
# mt -f /dev/st0 status


@@@backup something
@@@Note:distinguish /dev/nst0 with /dev/st0, nst0 do not change next write point.
# tar -cvf /dev/nst5 /boot @@@copy the /boot to tape05
# mt -f /dev/st5 rewind

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值