NBU 7.5 SAN Client 实施文档

更新时间:2023-04-23 04:58:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

NBU 7.5 SAN Client 实施文档

NBU 7.5 SAN Client 实施文档

1 安装前环境准备准备

NBU SAN Client功能是NBU 6.5时候推出的,主要是减轻LAN-Free 备份中客户端的压力的一种方式。

在实施之前需要对FT Meida server 和SAN Client 做规划。

首先看上图,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 Client 实施文档

推荐的方式是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

NBU 7.5 SAN Client 实施文档

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.

NBU 7.5 SAN Client 实施文档

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)

NBU 7.5 SAN Client 实施文档

2.2.4.3 修改HBA模式 Command: nbhba –modify –wwn<HBA WWPN> -mode target

[root@ 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口卡算成一个。

2.2.4.4 确认模式更改成功 [root@ 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 服务

[root@ admincmd]# ./nbftsrv_config

NBU 7.5 SAN Client 实施文档

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

/boot/initrd-2.6.18-194.el5.img.03-23-

12.13:20:23.

SSID Change: MUST REBOOT TO COMPLETE INSTALLATION. at

完成后重启 FT Media Server.

2.2.4.6 验证服务

重启完成后验证FT Media Server针对SAN Client的服务是否启动

查看是否有下面标红的服务 [root@ ~]# cd /usr/openv/netbackup/bin/

[root@ 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

NBU 7.5 SAN Client 实施文档

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端就配置完成了。

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 的驱动器

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

NBU 7.5 SAN Client 实施文档

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设备,正常识别为正常。

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 Client 实施文档

2.2.4.9 策略配置

配置完成后可以设置策略,SAN Client 相关策略设置和一般的没有什么区别,策略执行是,系统检测到客户端的SAN Client,即优先走FC来传输数据。类似如下图:

NBU 7.5 SAN Client 实施文档

至此SAN client 配置完成。

本文来源:https://www.bwwdw.com/article/3wvq.html

Top