mhvtl和nbu配置最新版

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

MHVTLandNBUMHVTL为开源虚拟带库软件,下载地址为:MHVTL,搭配上gui可模拟多款厂商带库,我唯一管理过的带库为HPMSL6000,而备份软件则为Netbackup。本文以这两种产品为例,对一些简单的配置进行说明。1、安装MHVTLOS版本为RHEL6.5,以最小安装,通过配置yum本地源安装其他所需的包,其中,有三个rpm包需要自行下载,可从=lzo这里搜索对应版本或者在本站下载:lzo-2.03-3.1.el6_5.1.x86_64.rpm,lzo-devel-2.03-3.1.el6_5.1.x86_64.rpm,lzo-minilzo-2.03-3.1.el6_5.1.x86_64.rpm1.1关闭firewall和selinux#关闭防火墙[root@mhvtl~]#/etc/init.d/iptablesstopiptables:SettingchainstopolicyACCEPT:filter[OK]iptables:Flushingfirewallrules:[OK]iptables:Unloadingmodules:[OK][root@mhvtl~]#/etc/init.d/ip6tablesstopip6tables:SettingchainstopolicyACCEPT:filter[OK]ip6tables:Flushingfirewallrules:[OK]ip6tables:Unloadingmodules:[OK][root@mhvtl~]#chkconfigiptablesoff[root@mhvtl~]#chkconfigip6tablesoff#关闭selinux[root@mhvtl~]#sed-i'/^SELINUX/s/enforcing/disabled/g'/etc/selinux/config[root@mhvtl~]#cat/etc/selinux/config#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.SELINUX=disabled#SELINUXTYPE=cantakeoneofthesetwovalues:#targeted-Targetedprocessesareprotected,#mls-MultiLevelSecurityprotection.SELINUXTYPE=targeted[root@mhvtl~]#shutdown-ry01.2配置yum本地源[Server]name=Serverbaseurl=file:///mnt/Serverenabled=1gpgcheck=0挂载光盘,安装所需软件包[root@mhvtl~]#mount/dev/sr1/mntmount:blockdevice/dev/sr1iswrite-protected,mountingread-only[root@mhvtl~]#yum-yinstallzlib-develmtxmt-stlsscsikernel-develkernel-headerssg3_utilsgccperlunzip[root@mhvtlworktmp]#ls-ltrtotal708-rw-r--r--.1rootroot283656Jul1614:12mhvtl-2015-04-14.tgz-rw-r--r--.1rootroot12876Jul1615:14lzo-minilzo-2.03-3.1.el6_5.1.x86_64.rpm-rw-r--r--.1rootroot31784Jul1615:17lzo-devel-2.03-3.1.el6_5.1.x86_64.rpm-rw-r--r--.1rootroot56308Jul1615:20lzo-2.03-3.1.el6_5.1.x86_64.rpm-rw-r--r--.1rootroot329355Jul1615:54mhvtl-gui-master.zip[root@mhvtlworktmp]#rpm-ivh*.rpmwarning:lzo-2.03-3.1.el6_5.1.x86_64.rpm:HeaderV3RSA/SHA1Signature,keyIDc105b9de:NOKEYPreparing...###########################################[100%]1:lzo-minilzo###########################################[33%]2:lzo###########################################[67%]3:lzo-devel###########################################[100%][root@mhvtlworktmp]#1.3编译安装MHVTL创建vtl相关用户:[root@mhvtlmhvtl-1.5]#groupaddvtl-g600[root@mhvtlmhvtl-1.5]#useradd-gvtl-u600vtl[root@mhvtlmhvtl-1.5]#echooracle|passwdvtl--stdin/dev/null2&1编译安装vtl[root@mhvtlmhvtl-1.5]#pwd/worktmp/mhvtl-1.5[root@mhvtlmhvtl-1.5]#cdkernel/[root@mhvtlkernel]#make[root@mhvtlkernel]#makeinstall[root@mhvtlkernel]#[root@mhvtlkernel]#cd../[root@mhvtlmhvtl-1.5]#make[root@mhvtlmhvtl-1.5]#makeinstall启动服务,并且查看虚拟磁带:[root@mhvtlmhvtl-1.5]#mkdir-p/opt/mhvtl[root@mhvtlmhvtl-1.5]#chownvtl:vtl/opt/mhvtl/[root@mhvtlmhvtl-1.5]#/etc/init.d/mhvtlstartvtllibraryprocessPIDis3722vtllibraryprocessPIDis3725[root@mhvtlmhvtl-1.5]#ll/opt/mhvtl/total288drwxrwx---2vtlvtl4096Jul2012:39CLN101L4drwxrwx---2vtlvtl4096Jul2012:39CLN102L5drwxrwx---2vtlvtl4096Jul2012:39CLN303TAdrwxrwx---2vtlvtl4096Jul2012:39E01001L4drwxrwx---2vtlvtl4096Jul2012:39E01002L4drwxrwx---2vtlvtl4096Jul2012:39E01003L4drwxrwx---2vtlvtl4096Jul2012:39E01004L4[root@mhvtlmhvtl-1.5]#lsscsi-g[0:0:0:0]cd/dvdVBOXCD-ROM1.0/dev/sr0/dev/sg0[0:0:1:0]cd/dvdVBOXCD-ROM1.0/dev/sr1/dev/sg1[1:0:0:0]cd/dvdVBOXCD-ROM1.0/dev/sr2/dev/sg2[2:0:0:0]diskATAVBOXHARDDISK1.0/dev/sda/dev/sg3[3:0:0:0]mediumxSTKL7000105/dev/sch0/dev/sg12[3:0:1:0]tapeIBMULT3580-TD50105/dev/st0/dev/sg4[3:0:2:0]tapeIBMULT3580-TD50105/dev/st1/dev/sg5[3:0:3:0]tapeIBMULT3580-TD40105/dev/st2/dev/sg6[3:0:4:0]tapeIBMULT3580-TD40105/dev/st3/dev/sg7[3:0:8:0]mediumxSTKL800105/dev/sch1/dev/sg13[3:0:9:0]tapeSTKT10000B0105/dev/st4/dev/sg8[3:0:10:0]tapeSTKT10000B0105/dev/st5/dev/sg9[3:0:11:0]tapeSTKT10000B0105/dev/st6/dev/sg10[3:0:12:0]tapeSTKT10000B0105/dev/st7/dev/sg11从lssci可以看到,默认配置是两台带库,STK的L700和STK的L80。我们能够通过gui进行添加和删除带库,但最后一个带库不能被删除。2、GUI配置GUI下载及安装说明:,也可以从本站下载:MHVL-GUI。2.1.设置http[root@mhvtlmhvtl-gui-master]#pwd/worktmp/mhvtl-gui-master[root@mhvtlmhvtl-gui-master]#ls-ltotal64-rw-r--r--1rootroot1150Nov282012favicon.ico-rwxr-xr-x1rootroot750Nov282012go.phpdrwxr-xr-x3rootroot12288Nov282012html-rw-r--r--1rootroot343Nov282012index.php-rw-r--r--1rootroot18006Nov282012LICENSE-rw-r--r--1rootroot2961Nov282012login.php-rw-r--r--1rootroot2379Nov282012mhvtl.cfg.db-rw-r--r--1rootroot2931Nov282012READMEdrwxr-xr-x2rootroot4096Nov282012scripts-rw-r--r--1rootroot14Nov282012version[root@mhvtlmhvtl-gui-master]#yuminstallhttpd-y[root@mhvtlmhvtl-gui-master]#chkconfighttpdon[root@mhvtlmhvtl-gui-master]#cp-r*/var/设置GUI[root@mhvtlmhvtl-gui-master]#echoapacheALL=(ALL)NOPASSWD:ALL/etc/sudoers屏蔽掉/et/sudoers中的Defaultsrequiretty[root@mhvtlmhvtl-gui-master]#grep'Defaultsrequiretty'/etc/sudoersDefaultsrequiretty[root@mhvtlmhvtl-gui-master]#sed-i'/^Defaultsrequiretty/s/^/#/g'/etc/sudoers[root@mhvtlmhvtl-gui-master]#grep'Defaultsrequiretty'/etc/sudoers#Defaultsrequiretty安装所需rpm

1 / 22
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功