Veritas Netbackup简介
Veritas NetBackup 简称 NBU 是一款商业化的备份和恢复软件,在金融行业占据了 86%以上的市场份额,除了软件产品以外也开始推自家的备份一体机。关于产品方面的介绍交给 NBU 的售前就行了,行业内负责备份恢复的朋友基本也都清楚我就不再赘述了。文章重点记录了 NBU 培训时的原理和三层架构,比较核心的内容当然是 Policy 部分,上述内容都在 PPT 里有详细的介绍,此外还增加了简单的动手实践环节方便大家在自己的虚拟机中练习和理解。
Vistor简介
Vistor虚拟带库系统是cofio公司的一款虚拟带库软件解决方案,用来实现高性能的磁盘备份,同真实带库一样的磁带管理机制提高了管理效率。Vistor支持iscsi和FC,可以模拟多种型号的磁带库,允许创建多个不同的带库,支持TSM、NBU、LegatoNetworker、Bakbone等多款备份软件。
Vistor配置虚拟带库
系统版本:Centos 5.2 x32位
软件版本:vistor 2.1.1
安装Vistor
1.将vistor_2_1_1.tgz上传到vistor服务器中
2.解压vistor
[root@vistor vistor]# tar xf vistor_2_1_1.tgz
3.运行./vs-install
root@viistor opt]# ./vs-install ViStor Virtual Tape Library Installation. Copyright Cofio Software Inc. 2006 Checking for correct installation platform and packages ... Checking target platform Linux viistor 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux ViStor is supported on this platform, checking installed packages ... The kernel-devel package must be installed prior to installation
4.将系统盘挂载到系统下,手动安装所需系统包
kernel-devel-2.6.18-128.el5.i686.rpm libgomp-4.1.2-42.el5.i386.rpm kernel-headers-2.6.18-92.el5.i386.rpm glibc-headers-2.5-24.i386.rpm glibc-devel-2.5-24.i386.rpm gcc-4.1.2-42.el5.i386.rpm [root@vistor CentOS]# rpm -ivh kernel-devel-2.6.18-92.el5.i686.rpm warning: kernel-devel-2.6.18-92.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:kernel-devel ########################################### [100%] [root@vistor CentOS]# rpm -ivh libgomp-4.1.2-42.el5.i386.rpm warning: libgomp-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:libgomp ########################################### [100%] [root@vistor CentOS]# rpm -ivh kernel-headers-2.6.18-92.el5.i386.rpm warning: kernel-headers-2.6.18-92.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:kernel-headers ########################################### [100%] [root@vistor CentOS]# rpm -ivh glibc-headers-2.5-24.i386.rpm warning: glibc-headers-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:glibc-headers ########################################### [100%] [root@vistor CentOS]# rpm -ivh glibc-devel-2.5-24.i386.rpm warning: glibc-devel-2.5-24.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:glibc-devel ########################################### [100%] [root@vistor CentOS]# rpm -ivh gcc-4.1.2-42.el5.i386.rpm warning: gcc-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897 Preparing... ########################################### [100%] 1:gcc ########################################### [100%]
5.安装完成后再次运行vm-install
[root@viistor opt]# ./vs-install ViStor Virtual Tape Library Installation. Copyright Cofio Software Inc. 2006 Checking for correct installation platform and packages ... Checking target platform Linux viistor 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux ViStor is supported on this platform, checking installed packages ... Packages required for installation were found This product contains copyright and patented material licensed by Bridgeworks Ltd (UK) Enter library name [Library1]: VTL //输入带库名称 TAPE LIBRARIES: 1.EXABYTE 110 2.EXABYTE 221 3.EXABYTE X80 4.EXABYTE X200 5.STK 9710 6.STK 9714 7.STK 9730 8.STK 9740 9.OVERLAND PowerLoader 10.OVERLAND LoaderXpress 11.OVERLAND NEO SERIES 2000 12.OVERLAND NEO SERIES 4100 13.OVERLAND NEO SERIES 4200 14.SPECTRA PYTHON SERIES T50 15.SPECTRA PYTHON SERIES T120 16.QUANTUM PX502 17.QUANTUM PX720 18.QUANTUM Scalar i500 Select tape Library [1-18]: 10 //选择磁带库类型 Enter number of slots [1-2000]: 10 //磁带库设置插槽个数 TAPE DRIVES: 1.IBM ULT3580-TD2, 3580 LTO 2 2.IBM ULT3580-TD3, 3580 LTO 3 3.IBM ULTRIUM-TD1, LTO Ultrium 1 4.IBM ULTRIUM-TD2, LTO Ultrium 2 5.IBM ULTRIUM-TD3, LTO Ultrium 3 6.CERTANCE ULTRIUM06242-XXX, Ultrium 1 7.CERTANCE ULTRIUM 2, CL 400 - Ultrium 2 8.CERTANCE ULTRIUM 3, CL 800 - Ultrium 3 9.HP Ultrium 1-SCSI, Ultrium 215e LTO 10.HP Ultrium 2-SCSI, Ultrium 215e LTO 11.STK 9840 Select tape drive type [1-11]: 5 //磁带机类型 Enter number of tape drives [1-15]: 4 //磁带机数量 Enter number of media cartridges [1-20]: 10 //磁带库中放入磁盘数量 Enter media size [1-10000 GB]: 2 //设置每盘磁带的容量 Barcode prefix format is [0 - 2] characters Enter media barcode prefix : kb //磁带条形码的前缀 Enter media location [/usr/cofio/vistor/media]: /opt //磁带存放的位置 LANGUAGES 1.English 2.Korean 3.Chinese Select GUI language : 3 //选择WEB界面GUI语言 CONNECTION METHOD 1. Direct SCSI Device 2. iSCSI 3. Fibre Channel Select connection method : 2 //选择连接模式 LIBRARY: QUANTUM Scalar i500 TAPE DRIVE: IBM ULTRIUM-TD3, LTO Ultrium 3 DRIVE Count: 4 SLOT Count: 20 MEDIA Count: 10 MEDIA Size: 2 GB MEDIA Home: /libv Gui language: Chinese Connection: ISCSI Is this information correct ? [y or n]: y //确认配置信息 running script /usr/cofio/vistor/src/MakeScript Installing SCSI driver module ... Installing ViStor Virtual Tape Library module ... Created group ‘cofio‘ Created user ‘cofio‘ ViStor Software installation has completed successfully The ViStor web server has been started and to run the ViStor user interface, direct a web browser to <this machine ip address>:5050
6.vistor安装完成后默认安装在目录/usr/cofio/vistor
查看web是否可用,使用http:192.168.1.101:5050登陆,首次登陆无密码,直接点击login登陆。
[root@vistor vistor]# netstat -anpt | grep 5050 tcp 0 0 :::5050 :::* LISTEN 6689/httpd tcp 0 0 ::ffff:192.168.1.60:5050 ::ffff:192.168.1.108:60573 ESTABLISHED 6705/httpd
点击setting 进入设置页面
输入vistor软件的key,需要将系统时间改为2008年
主页里显示可以管理磁带库
在Linux操作系统可以启动和停止Vistor虚拟磁带库
[root@vistor vistor]# ./vs-httpd start [root@vistor vistor]# ./vistor start Load iscsi transport modules ViStor services started successfully
配置ISCSI TargetAddress:
[root@vistor iscsi]# cd/usr/cofio/vistor/iscsi [root@vistor iscsi]# ./bw_core_cfg -L 192.168.1.60 1 Bridgeworks Protocol-Neutral APPl (v3_01_ALPHA26 Jan 31 2008 13:43:40)
使用lsmod验证磁带库及磁带机驱动加载状态
[root@vistor vistor]# lsmod | grep st st 38749 0 scsi_mod 134605 7 st,sg,initiator_wrapper,vs_mls,vs_drv,libata,sd_mod [root@vistor vistor]# lsmod | grep sg sg 36189 0 scsi_mod 134605 7 st,sg,initiator_wrapper,vs_mls,vs_drv,libata,sd_mod
至此Vistor虚拟磁带库配置就完成了,紧接着配置客户,这里的客户端是安装Netbackup 7.7.3的Nbumaster Server服务器,首先在控制面板中选择iscsi发起协议,点击发现门户,将vistor的targetaddress地址输入进去
点击目标选择刚才添加的iqn,点击连接
iqn连接完成后,在设备管理器中就能查看到磁带驱动器和媒体更换其设备,至此就可以对虚拟带库进行使用了
接下来配置NBU,识别添加磁带存储设备
添加配置存储设备
选择对应的主机添加存储设备
扫描设备发现4个驱动器以及1个机械手
上拉驱动器到配置选项,点击NEXT继续配置完成
配置完成后在Media选项菜单点击右键选择清点磁带设备
首先清点磁带,然后选择更新卷组配置
至此,NBU磁带设备全部添加完成识别,所需用的时候可以新建不同的磁带Pool分配使用
本文出自 “Sound's Blog” 博客,请务必保留此出处http://sound.blog.51cto.com/11960199/1962968
Veritas NetBackup 7.7.3 + Vistor 虚拟带库
原文地址:http://sound.blog.51cto.com/11960199/1962968