企業空間 采購商城 存儲論壇
華為全閃存陣列 IBM云計算 Acronis 安克諾斯 安騰普 騰保數據
首頁 > 技術園地 > NBU > 正文

NBU 7.5 SAN客戶端安裝實施文檔

2016-07-07 10:28來源:中國存儲網
導讀:NBU 7.5 SAN客戶端安裝實施文檔,NBU SAN Client功能是NBU 6.5時候推出的,主要是減輕LAN-Free 備份中客戶端的壓力的一種方式。

NBU 7.5 SAN客戶端安裝實施文檔

1 安裝前環境準備準備

NBU SAN Client功能是NBU 6.5時候推出的,主要是減輕LAN-Free 備份中客戶端的壓力的一種方式。

在實施之前需要對FT Meida server 和SAN Client 做規劃。

NBU 7.5 SAN客戶端安裝實施文檔

首先看上圖,FT Meidia server 中需要兩塊支持特定功能的HBA卡,相關HBA卡型號可以在NBU的兼容性列表中找到。FT Meida Server 中一塊HBA卡修改為 target 模式,目的是 模擬虛擬的類似驅動器資源,這樣SAN Client端就能夠識別到類似Tape Drive資源,FT Meida server中另一塊 HBA卡initiator 模式保持不變,這塊 HBA卡可以連接VTL,PTL或者DISK。最終達到的目的是備份數據流從 SAN Client 端傳送到target 模式的HBA卡傳送到FT Meida server ,然后通過另一塊HBA卡傳送到 備份目標端,達到 LAN -Free備份的目的。

下面是典型的SAN Client環境系統拓撲圖:

NBU 7.5 SAN客戶端安裝實施文檔

推薦的方式是FT Media Server  不要和 Master Server是同一臺機器。實施 SAN Cleint的 客戶端的用于備份的HBA卡和FT Meida Server中target模式的HBA卡在一個 SAN Switch

zone 里面。FTMeida Server 中initiator 模式的HBA和備份目標端的Disk或者VTL或者PTL在同一個Zone中。

NBU 7.5中支持的 FT Media Server的系統版本是 Novell SuSE Enterprise Linux 10 on x86-64SP2/SP3; Red Hat Enterprise Linux 4 on x86-64Update 3/Update 5; Red Hat Enterprise Linux 5 on x86-64GA/Update 2/ Update 3; Red Hat Enterprise Linux 5 on x86-64Update 4/Update 5/ Update 6/ Update7; Red Hat Enterprise Linux 6 on x86-64GA/Update 1.只有這些系統版本才支持FT Media Server. 

2 實施過程

2.1系統環境:

Master Server :redhat 5.8 X64  also Opscenter  server

FT Meida Server:redhat 5.4 X64 2 qlogic 2560 HBA card

Clients : AIX 5300-10;redhat 5.6 X64;redhat 4.6 X64

Master Server Netbackup  Version  7.5.0.3

FT Meida Server FT Netbackup  Version  7.5.0.3

Client AIX   Netbackup  Version  7.5.0.3

Clientredhat5.4  Netbackup  Version  7.5.0.3

Clientredhat4.6  Netbackup  Version  7.1.0.4

VTL :suresave VTL5000 :虛擬出來STKL40

PTL: Dell PTL

Disk: 10T disk pool

2.2安裝過程:

2.2.3系統環境

Master Server 安裝nbu 7.5并打補丁到 7.5.0.3

FT Meida Server安裝nbu 7.5并打補丁到 7.5.0.3

AIX 客戶端 安裝nbu 7.5客戶端并打補丁到 7.5.0.3

Redhat 5.4客戶端 安裝nbu 7.5客戶端并打補丁到 7.5.0.3

Redhat 4.6客戶端 安裝nbu 7.1客戶端并打補丁到 7.1.0.4

2.2.4 SAN Client 配置過程:

2.2.4.1在FT Media Server上啟動nbhba模式:

# cd /usr/openv/openv/netbackup/bin/admincmd/

./nbftsrv_config–nbhba

Installing nbhba driver.

Uninstalled WinDriver for FT Server mode.

It may be necessary to temporarily unload your QLogicdriversto free up the ports for the nbhba

drivers.

This is an optional step.  If you choose not to do this, the 

nbhba drivers may not have access to the HBA ports until a 

subsequent reboot.

Would you like to unload and reload your native QLogic drivers now? [y,n] (y) y

Are you sure you want to unload QLogic driver: qla2xxx? [y,n] (y) y

Removing qla2xxx.

Installed driver for nbhba mode.

2.2.4.2 查看HBA模式狀態

# ./nbhba -L

4 ports recognized; 0 target mode ports; mode : driver in nbhba mode

HBA Index #1

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 0

Mode = initiator (designated for other use)(138)

HBA Index #2

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 1

Mode = initiator (designated for other use)(138)

HBA Index #3

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 0

Mode = initiator (designated for other use)(138)

HBA Index #4

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 1

Mode = initiator (designated for other use)(138)

2.2.4.3 修改HBA模式

Command: nbhba –modify –wwn<HBA WWPN> -mode target

[[email protected] admincmd]# ./nbhba -modify -wwn 21:00:00:E0:8B:9B:96:F0 -mode target

Modified port with WWN 21:00:00:E0:8B:9B:96:F0

Modified port with WWN 21:01:00:E0:8B:BB:96:F0

注意:這里改模式的時候,會同時更改同一塊HBA上的多個端口。所以規劃階段必須要兩塊物理上的HBA卡,一個雙口卡或者4口卡算成一個。

對于QLA/QLE-2462, QLE-2562 (dual port) and QLE-2564 (quad port)的光纖卡可以使用如下命令對每個端口設置Target模式

nbhba -modify -wwn<wwn string> -wwn<wwn string> -wwn<wwn string> -mode target

2.2.4.4 確認模式更改成功

[[email protected] admincmd]#./nbhba -L

4 ports recognized; 2 target mode ports; mode : driver in nbhba mode

HBA Index #1

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 0

Mode = initiator (designated for other use)(138)

HBA Index #2

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 1

Mode = initiator (designated for other use)(138)

HBA Index #3

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 0

Mode = target (designated for FT Server)(8138)

HBA Index #4

Device ID = 2432

World Wide Name = XX:XX:XX:XX:XX:XX:XX:XX

Model Name = "QLE2462 "

Port = 1

Mode = target (designated for FT Server)(8138)

2.2.4.5        配置 FT Meida Server 服務

[[email protected] admincmd]# ./nbftsrv_config

Installing the JungoWinDriver and Fibre Transport Server.

Uninstalled WinDriver for FT Server mode.

Removing ql2300_stub.

The following automatic startup and shutdown scripts (respectively) have

been installed.  They will cause the NetBackupFibre Transport Server daemon

to be automatically shut down and restarted each time the system boots.

/etc/rc.d/rc2.d/S21nbftserver

/etc/rc.d/rc3.d/S21nbftserver

/etc/rc.d/rc5.d/S21nbftserver

/etc/rc.d/rc0.d/K03nbftserver

/etc/rc.d/rc1.d/K03nbftserver

/etc/rc.d/rc6.d/K03nbftserver

Installed driver for FT Server mode.

/etc/udev/rules.d/50-windrvr.rules does not exist, creating...

/etc/udev/rules.d/50-windrvr.rules updated with JungoWinDriver permissions.

Installed WinDriver for FT Server mode.

NetBackupFibre Transport Server started.

Would you like to make these changes persist after a reboot? [y,n] (y) y

Running mkinitrd.  Previous initrd image is saved at /boot/initrd-2.6.18-194.el5.img.03-23-

12.13:20:23.

SSID Change: MUST REBOOT TO COMPLETE INSTALLATION.

完成后重啟 FT Media Server.

2.2.4.6 驗證服務

重啟完成后驗證FT Media Server針對SAN Client的服務是否啟動

查看是否有下面標紅的服務

[[email protected] ~]# cd /usr/openv/netbackup/bin/

[[email protected] bin]# ./bpps

root      2873     1  9 13:27 ?        00:00:05 /usr/openv/netbackup/bin/nbftsrvr

root      3138     1  0 13:27 ?        00:00:00 /usr/openv/netbackup/bin/vnetd -standalone

root      3143     1  0 13:27 ?        00:00:00 /usr/openv/netbackup/bin/bpcd -standalone

root      3147  3143  0 13:27 ?        00:00:00 [bpcd] <defunct>

root      3323     1  0 13:27 ?        00:00:00 /usr/openv/netbackup/bin/bpcompatd

root      3331     1  0 13:27 ?        00:00:00 /usr/openv/netbackup/bin/nbrmms

root      3353     1  0 13:27 ?        00:00:00 /usr/openv/netbackup/bin/nbsl

root      3408     1  0 13:27 ?        00:00:00 /usr/openv/netbackup/bin/nbsvcmon

root      3770  2873 12 13:27 ?        00:00:02 /usr/openv/netbackup/bin/nbfdrv64 -m=0x4a0009 -v=1 -s=256K

到這里 FT Media Server端就配置完成了。另外如下命令可以輔助查看一些信息

PS-NETBACKUP:~ # nbftconfig -lt –verbose   查看target模式光纖卡的信息

PS-NETBACKUP:~ # nbftconfig -lc–verbose查看SAN Client信息命令

PS-NETBACKUP:~ # nbftconfig -la –verbose       查看SAN Client激活機器狀態信息

2.2.4.7        配置 SAN客戶端

AIX Client配置:

執行/usr/openv/netbackup/bin/bpclntcmd–sanclient  1啟用SAN Client

執行/usr/openv/netbackup/bin/bp.kill_all停止服務

執行/usr/openv/netbackup/bin/bp.kill_al啟動NBU服務

執行/usr/openv/netbackup/bin/bpps -x確認nbftclnt服務是否正常啟動。

執行系統命令cfgmgr后利用lsdev–Cctape確認識別到ARCHIVE Python 的驅動器

命令如下:

# cfgmgr

cfgmgr: 0514-621 WARNING: The following device packages are required for

device support but are not currently installed.

devices.fcp.changer

# lsdev -Cc tape

rmt0 Available 04-08-01 Other FC SCSI Tape Drive

rmt1 Available 04-08-01 Other FC SCSI Tape Drive

rmt2 Available 04-08-01 Other FC SCSI Tape Drive

rmt3 Available 05-08-01 Other FC SCSI Tape Drive

Redhat 客戶端配置:

執行/usr/openv/netbackup/bin/bpclntcmd–sanclient  1啟用SAN Client

執行/usr/openv/netbackup/bin/bp.kill_all停止服務

執行/usr/openv/netbackup/bin/bp.kill_al啟動NBU服務

執行/usr/openv/netbackup/bin/bpps -x確認nbftclnt服務是否正常啟動。

在redhat確認內核中加載了st和sg,用lsmod查看

在/etc/rc.local中添加:

# Add the troublesome device on LUN 1 for the FT server

echo "scsi add-single-device 0 0 0 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 1 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 2 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 3 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 4 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 5 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 6 1"> /proc/scsi/scsi

echo "scsi add-single-device 0 0 7 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 0 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 1 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 2 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 3 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 4 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 5 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 6 1"> /proc/scsi/scsi

echo "scsi add-single-device 1 0 7 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 0 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 1 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 2 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 3 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 4 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 5 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 6 1"> /proc/scsi/scsi

echo "scsi add-single-device 2 0 7 1"> /proc/scsi/scsi

/dev/MAKEDEV sg

然后重啟redhat,保證FT Media Server映射過來的設備在redhat中能夠正常識別。重啟后查看/porc/scsi/scsi查看是否已經識別ARCHIVE Python設備,正常識別為正常。

Windows配置:

install_path\NetBackup\bin\bpclntcmd.exe -sanclient 1然后重啟機器

FT服務器端配置好之后會自動共享出Scsi設備,客戶端發現共享出的設備如下圖

NBU 7.5 SAN客戶端安裝實施文檔

2.2.4.8 Master Server 中配置查看SAN Client

NBconsole> Media and Device management > Devices > SAN Clients.中會自動識別SANClient,在NBU 7.5.0.3中也可以利用命令nbftconfig -ra來掃描SAN Client的管道設備配置。

正確的配置;類似下圖:

NBU 7.5 SAN客戶端安裝實施文檔

2.2.4.9 策略配置

配置完成后可以設置策略,SAN Client 相關策略設置和一般的沒有什么區別,策略執行是,系統檢測到客戶端的SAN Client,即優先走FC來傳輸數據。類似如下圖:

NBU 7.5 SAN客戶端安裝實施文檔

至此SAN client 配置完成。

繼續閱讀
關鍵詞 :
NBU 7.5
中國存儲網聲明:此文觀點不代表本站立場,如有版權疑問請聯系我們。
相關閱讀
產品推薦
頭條閱讀
欄目熱點

Copyright @ 2006-2019 ChinaStor.COM 版權所有 京ICP備14047533號

中國存儲網

存儲第一站,存儲門戶,存儲在線交流平臺

湖北十一选五任选五