




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、MHVTL and NBUMHVTL 為開源虛擬帶庫軟件,下載地址為:MHVTL,搭配上gui可模擬多款廠商帶庫,我唯一管理過的帶庫為HP MSL6000,而備份軟件則為Netbackup。本文以這兩種產(chǎn)品為例,對一些簡單的配置進(jìn)行說明。1、安裝MHVTLOS版本為RHEL6.5,以最小安裝,通過配置yum本地源安裝其他所需的包,其中,有三個rpm包需要自行下載,可從3.1.el6_5.1.x86_64.rpm,lzo-minilzo-2.03-3.1.el6_5.1.x86_64.rpm1.1關(guān)閉firewall和selinux#關(guān)閉防火墻rootmhvtl # /etc/init.d/ip
2、tables stopiptables: Setting chains to policy ACCEPT: filter OK iptables: Flushing firewall rules: OK iptables: Unloading modules: OK rootmhvtl # /etc/init.d/ip6tables stopip6tables: Setting chains to policy ACCEPT: filter OK ip6tables: Flushing firewall rules: OK ip6tables: Unloading modules: OK ro
3、otmhvtl # chkconfig iptables offrootmhvtl # chkconfig ip6tables off#關(guān)閉selinuxrootmhvtl # sed -i '/SELINUX/s/enforcing/disabled/g' /etc/selinux/configrootmhvtl # cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enf
4、orcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELI
5、NUXTYPE=targeted rootmhvtl # shutdown -ry 01.2配置yum本地源Server name=Server baseurl=file:/mnt/Server enabled=1 gpgcheck=0掛載光盤,安裝所需軟件包 rootmhvtl # mount /dev/sr1 /mntmount: block device /dev/sr1 is write-protected, mounting read-onlyrootmhvtl # yum -y install zlib-devel mtx mt-st lsscsi kernel-devel ker
6、nel-headers sg3_utils gcc perl unziprootmhvtl worktmp# ls -ltrtotal 708-rw-r-r-. 1 root root 283656 Jul 16 14:12 mhvtl-2015-04-14.tgz-rw-r-r-. 1 root root 12876 Jul 16 15:14 lzo-minilzo-2.03-3.1.el6_5.1.x86_64.rpm-rw-r-r-. 1 root root 31784 Jul 16 15:17 lzo-devel-2.03-3.1.el6_5.1.x86_64.rpm-rw-r-r-.
7、 1 root root 56308 Jul 16 15:20 lzo-2.03-3.1.el6_5.1.x86_64.rpm-rw-r-r-. 1 root root 329355 Jul 16 15:54 mhvtl-gui-master.ziprootmhvtl worktmp# rpm -ivh *.rpmwarning: lzo-2.03-3.1.el6_5.1.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEYPreparing. # 100% 1:lzo-minilzo # 33% 2:lzo # 67
8、% 3:lzo-devel # 100%rootmhvtl worktmp# 1.3編譯安裝MHVTL創(chuàng)建vtl相關(guān)用戶: rootmhvtl mhvtl-1.5# groupadd vtl -g 600rootmhvtl mhvtl-1.5# useradd -g vtl -u 600 vtlrootmhvtl mhvtl-1.5# echo "oracle" | passwd vtl -stdin > /dev/null 2>&1編譯安裝vtlrootmhvtl mhvtl-1.5# pwd/worktmp/mhvtl-1.5rootmhvtl mh
9、vtl-1.5# cd kernel/rootmhvtl kernel# makerootmhvtl kernel# make installrootmhvtl kernel#rootmhvtl kernel# cd ./rootmhvtl mhvtl-1.5# make rootmhvtl mhvtl-1.5# make install啟動服務(wù),并且查看虛擬磁帶:rootmhvtl mhvtl-1.5# mkdir -p /opt/mhvtlrootmhvtl mhvtl-1.5# chown vtl:vtl /opt/mhvtl/rootmhvtl mhvtl-1.5# /etc/init
10、.d/mhvtl startvtllibrary process PID is 3722vtllibrary process PID is 3725rootmhvtl mhvtl-1.5# ll /opt/mhvtl/total 288drwxrwx- 2 vtl vtl 4096 Jul 20 12:39 CLN101L4drwxrwx- 2 vtl vtl 4096 Jul 20 12:39 CLN102L5drwxrwx- 2 vtl vtl 4096 Jul 20 12:39 CLN303TAdrwxrwx- 2 vtl vtl 4096 Jul 20 12:39 E01001L4dr
11、wxrwx- 2 vtl vtl 4096 Jul 20 12:39 E01002L4drwxrwx- 2 vtl vtl 4096 Jul 20 12:39 E01003L4drwxrwx- 2 vtl vtl 4096 Jul 20 12:39 E01004L4rootmhvtl mhvtl-1.5# lsscsi -g0:0:0:0 cd/dvd VBOX CD-ROM 1.0 /dev/sr0 /dev/sg00:0:1:0 cd/dvd VBOX CD-ROM 1.0 /dev/sr1 /dev/sg11:0:0:0 cd/dvd VBOX CD-ROM 1.0 /dev/sr2 /
12、dev/sg22:0:0:0 disk ATA VBOX HARDDISK 1.0 /dev/sda /dev/sg33:0:0:0 mediumx STK L700 0105 /dev/sch0 /dev/sg123:0:1:0 tape IBM ULT3580-TD5 0105 /dev/st0 /dev/sg43:0:2:0 tape IBM ULT3580-TD5 0105 /dev/st1 /dev/sg53:0:3:0 tape IBM ULT3580-TD4 0105 /dev/st2 /dev/sg63:0:4:0 tape IBM ULT3580-TD4 0105 /dev/
13、st3 /dev/sg73:0:8:0 mediumx STK L80 0105 /dev/sch1 /dev/sg133:0:9:0 tape STK T10000B 0105 /dev/st4 /dev/sg83:0:10:0 tape STK T10000B 0105 /dev/st5 /dev/sg93:0:11:0 tape STK T10000B 0105 /dev/st6 /dev/sg103:0:12:0 tape STK T10000B 0105 /dev/st7 /dev/sg11從lssci可以看到,默認(rèn)配置是兩臺帶庫,STK的L700和STK的L80。我們能夠通過gui
14、進(jìn)行添加和刪除帶庫,但最后一個帶庫不能被刪除。2、GUI配置GUI下載及安裝說明:2.1. 設(shè)置httprootmhvtl mhvtl-gui-master# pwd/worktmp/mhvtl-gui-masterrootmhvtl mhvtl-gui-master# ls -ltotal 64-rw-r-r- 1 root root 1150 Nov 28 2012 favicon.ico-rwxr-xr-x 1 root root 750 Nov 28 2012 go.phpdrwxr-xr-x 3 root root 12288 Nov 28 2012 html-rw-r-r- 1 r
15、oot root 343 Nov 28 2012 index.php-rw-r-r- 1 root root 18006 Nov 28 2012 LICENSE-rw-r-r- 1 root root 2961 Nov 28 2012 login.php-rw-r-r- 1 root root 2379 Nov 28 2012 mhvtl.cfg.db-rw-r-r- 1 root root 2931 Nov 28 2012 READMEdrwxr-xr-x 2 root root 4096 Nov 28 2012 scripts-rw-r-r- 1 root root 14 Nov 28 2
16、012 versionrootmhvtl mhvtl-gui-master# yum install httpd -yrootmhvtl mhvtl-gui-master# chkconfig httpd onrootmhvtl mhvtl-gui-master# cp -r * /var/www/html/2.2.設(shè)置GUIrootmhvtl mhvtl-gui-master# echo "apache ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers屏蔽掉/et/sudoers中的"Defaults requirett
17、y" rootmhvtl mhvtl-gui-master# grep 'Defaults requiretty' /etc/sudoersDefaults requirettyrootmhvtl mhvtl-gui-master# sed -i '/Defaults requiretty/s/#/g' /etc/sudoersrootmhvtl mhvtl-gui-master# grep 'Defaults requiretty' /etc/sudoers#Defaults requiretty安裝所需rpm包:rootmhvtl
18、mhvtl-gui-master# yum install php sysstat git iscsi-initiator-utils* scsi-target-utils -yrootmhvtl mhvtl-gui-master# yum groupinstall "Desktop" -y配置html網(wǎng)站的alias,將如下內(nèi)容添加到/etc/httpd/conf/httpd.confAlias /mhvtl "/var/www/html/mhvtl"<Directory "/var/www/html/mhvtl"> O
19、ptions None AllowOverride None Order allow,deny Allow from all</Directory>創(chuàng)建所需目錄 rootmhvtl mhvtl-gui-master# mkdir -p /var/www/html/mhvtlOK,httpd服務(wù),并測試連接: rootmhvtl mhvtl-gui-master# /etc/init.d/httpd restartStopping httpd: FAILEDStarting httpd: httpd: apr_sockaddr_info_get() failed for mhvtlh
20、ttpd: Could not reliably determine the server's fully qualified domain name, using for ServerName OK 上述報錯是忘記在/etc/hosts添加主機(jī)名及IP了,添加后重啟httpd服務(wù)正常。mhvtl-gui1 默認(rèn)密碼為mhvtlmhvtl-gui2 圖中紅框處為默認(rèn)兩臺帶庫,下面開始配置自己的帶庫。3、配置帶庫及iscsi target點(diǎn)擊setup=>Remove,選中要刪除的帶庫,同時刪除磁帶:完成后,因?yàn)樽詈笠粋€帶庫不能被刪除,因此,添加一個我們所需的帶
21、庫,然后再刪除默認(rèn)帶庫。 點(diǎn)擊setup=>Add=>Standard=>Next,在brand選中HP,最后我的配置如下,只選了LTO3的磁帶然后可以將默認(rèn)磁帶庫刪除了。同時,在vtl主機(jī)端可以看到設(shè)備類型: rootmhvtl html# cat /etc/mhvtl/device.confVERSION: 5# VPD page format:# <page #> <Length> <x> <x+1>. <x+n># NAA format is an 8 hex byte value seperated by
22、':'# Note: NAA is part of inquiry VPD 0x83# Each 'record' is separated by one (or more) blank lines.# Each 'record' starts at column 1# Serial num max len is 10.# Compression: factor X enabled 0|1# Where X is zlib compression factor 1 = Fastest compression# 9 = Best compressi
23、on# enabled 0 = off, 1 = on# fifo: /var/tmp/mhvtl# If enabled, data must be read from fifo, otherwise daemon will block# trying to write.# e.g. cat /var/tmp/mhvtl (in another terminal)Library: 50 CHANNEL: 1 TARGET: 00 LUN: 00 Vendor identification: HP Product identification: MSL6000 Series -帶庫型號 Pro
24、duct revision level: 2.00 Unit serial number: 80000050 NAA: 50:11:22:33:ab:1:00:00 Home directory: /opt/mhvtl Backoff: 400Drive: 51 CHANNEL: 1 TARGET: 00 LUN: 01 Library ID: 50 Slot: 01 Vendor identification: HP Product identification: Ultrium 3-SCSI -driver型號 Product revision level: N11G Unit seria
25、l number: 80000051 NAA: 50:11:22:33:ab:1:00:01 Compression: factor 1 enabled 1 Compression type: lzo Backoff: 400.最后狀態(tài)如圖:可以看到,iscsi target是offline的狀態(tài),下面開始配置iscsi target:點(diǎn)擊iscsi,將打叉的服務(wù)全部安裝或enable最后狀態(tài)如圖:配置iscsi target,點(diǎn)擊new,然后點(diǎn)擊create,名字可以自己取,如下圖:至此,gui界面配置完畢,在vtl主機(jī)端,可以看到iscsi target:rootmhvtl html# t
26、gtadm -lld iscsi -op show -mode targetTarget 1: iqn.1994-.redhat:mhvtl:mhvtl:tgt:1 System information: Driver: iscsi State: ready I_T nexus information: LUN information: LUN: 0 Type: controller SCSI ID: IET 00010000 SCSI SN: beaf10 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent re
27、moval: No Readonly: No Backing store type: null Backing store path: None Backing store flags: Account information: ACL information:最后,尚須手動添加磁帶機(jī)及drivers信息到iscsi target中: rootmhvtl html# lsscsi -g0:0:0:0 cd/dvd VBOX CD-ROM 1.0 /dev/sr0 /dev/sg00:0:1:0 cd/dvd VBOX CD-ROM 1.0 /dev/sr1 /dev/sg11:0:0:0 cd
28、/dvd VBOX CD-ROM 1.0 /dev/sr2 /dev/sg22:0:0:0 disk ATA VBOX HARDDISK 1.0 /dev/sda /dev/sg33:1:0:0 mediumx HP MSL6000 Series 2.00 /dev/sch0 /dev/sg83:1:0:1 tape HP Ultrium 3-SCSI N11G /dev/st0 /dev/sg43:1:0:2 tape HP Ultrium 3-SCSI N11G /dev/st1 /dev/sg53:1:0:3 tape HP Ultrium 3-SCSI N11G /dev/st2 /d
29、ev/sg63:1:0:4 tape HP Ultrium 3-SCSI N11G /dev/st3 /dev/sg7將標(biāo)記有HP的設(shè)備信息寫入/etc/tgt/targets.conf,如下:<target iqn.1994-.redhat:mhvtl:mhvtl:tgt:1>backing-store /dev/sg8backing-store /dev/sg4backing-store /dev/sg5backing-store /dev/sg6backing-store /dev/sg7device-type ptbs-type sg</target>initi
30、ator-address ALL重啟iscsi target服務(wù),并且驗(yàn)證rootmhvtl html# /etc/init.d/tgtd restartStopping SCSI target daemon: OK Starting SCSI target daemon: OK rootmhvtl html# chkconfig tgtd onrootmhvtl html# tgtadm -lld iscsi -op show -mode targetTarget 1: iqn.1994-.redhat:mhvtl:mhvtl:tgt:1 System information: Driver
31、: iscsi State: ready I_T nexus information: LUN information: LUN: 0 Type: controller SCSI ID: IET 00010000 SCSI SN: beaf10 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No Backing store type: null Backing store path: None Backing store flags: LUN: 1 Type: pa
32、ssthrough SCSI ID: IET 00010001 SCSI SN: beaf11 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No Backing store type: sg Backing store path: /dev/sg4 Backing store flags: LUN: 2 Type: passthrough SCSI ID: IET 00010002 SCSI SN: beaf12 Size: 0 MB, Block size: 1
33、 Online: Yes Removable media: No Prevent removal: No Readonly: No Backing store type: sg Backing store path: /dev/sg5 Backing store flags: LUN: 3 Type: passthrough SCSI ID: IET 00010003 SCSI SN: beaf13 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No Backing store type: sg Backing store path: /dev/sg6 Backing store flags: LUN: 4 Type: passthrough SCSI ID: IET 00010004 SCSI SN: beaf14 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No Backing sto
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025至2030年中國雙層不銹鋼保溫杯數(shù)據(jù)監(jiān)測研究報告
- 廣東省揭陽市新華中學(xué)2024-2025學(xué)年高一下學(xué)期3月第一次月考化學(xué)試卷(含答案)
- 2025年軍隊(duì)文職人員招聘之軍隊(duì)文職管理學(xué)通關(guān)試題庫(有答案)
- 2019-2025年消防設(shè)施操作員之消防設(shè)備基礎(chǔ)知識押題練習(xí)試題A卷含答案
- 2019-2025年消防設(shè)施操作員之消防設(shè)備基礎(chǔ)知識考前沖刺模擬試卷A卷含答案
- 2025年軍隊(duì)文職人員招聘之軍隊(duì)文職教育學(xué)綜合練習(xí)試卷B卷附答案
- 2025年軍隊(duì)文職人員招聘之軍隊(duì)文職法學(xué)每日一練試卷A卷含答案
- 營養(yǎng)與食品衛(wèi)生學(xué)-營養(yǎng)學(xué)566
- 2025年大學(xué)生防詐騙知識競賽題庫試題及答案(共90題)
- 專業(yè)知識培訓(xùn)課件模板
- 2016-2023年大慶醫(yī)學(xué)高等專科學(xué)校高職單招(英語/數(shù)學(xué)/語文)筆試歷年參考題庫含答案解析
- 泛微協(xié)同OA與SAP集成應(yīng)用解決方案V講訴
- 探討電磁感應(yīng)現(xiàn)象對電能轉(zhuǎn)化效率的影響
- EHS法律法規(guī)清單及合規(guī)性評估
- 橋梁定期檢查-主要部件檢查要點(diǎn)與評定標(biāo)準(zhǔn)
- 長途汽車客運(yùn)站調(diào)研報告
- 陜西各市(精確到縣區(qū))地圖PPT課件(可編輯版)
- JTG C10-2007 公路勘測規(guī)范正式版
- (完整版)國際金融法
- 近代德國的學(xué)前教育課件
- 球墨鑄鐵正火工藝
評論
0/150
提交評論