存储划分交换机zone绑定主机配置手册.docx
- 文档编号:29303127
- 上传时间:2023-07-22
- 格式:DOCX
- 页数:12
- 大小:182.27KB
存储划分交换机zone绑定主机配置手册.docx
《存储划分交换机zone绑定主机配置手册.docx》由会员分享,可在线阅读,更多相关《存储划分交换机zone绑定主机配置手册.docx(12页珍藏版)》请在冰豆网上搜索。
存储划分交换机zone绑定主机配置手册
存储划分-交换机zone-绑定主机配置手册
主机存储划分手册
1、配置交换机zone
2、存储端进行划分
3、主机端进行硬盘识别,配置
一、准备工作,存储连接拓扑图
二、
1.1查看HPUX服务器WWN号码:
gsgkdb2:
[/]#ioscan-knfNCfc
ClassIH/WPathDriverS/WStateH/WTypeDescription
=================================================================
fc01/0/4/1/0fcdCLAIMEDINTERFACEHPAB378-601014GbSinglePortPCI/PCI-XFibreChannelAdapter(FCPort1)
/dev/fcd0
fc11/0/6/1/0fcdCLAIMEDINTERFACEHPAB378-601014GbSinglePortPCI/PCI-XFibreChannelAdapter(FCPort1)
/dev/fcd1
#fcmsutil/dev/fcd0
N_PortNodeWorldWideName=0x50014380057a0f11
N_PortPortWorldWideName=0x50014380057a0f10
SwitchPortWorldWideName=0x20440027f8701400
SwitchNodeWorldWideName=0x10000027f8701400
N_PortSymbolicPortName=gsgkdb2_fcd0
N_PortSymbolicNodeName=gsgkdb2_HP-UX_B.11.31
#fcmsutil/dev/fcd1
N_PortNodeWorldWideName=0x50014380057a0ec1
N_PortPortWorldWideName=0x50014380057a0ec0
SwitchPortWorldWideName=0x20440027f8700d00
SwitchNodeWorldWideName=0x10000027f8700d00
N_PortSymbolicPortName=gsgkdb2_fcd1
N_PortSymbolicNodeName=gsgkdb2_HP-UX_B.11.31
二、SAN交换机操作
A交换机接口WWN
50:
01:
43:
80:
24:
48:
dd:
c8
50:
01:
43:
80:
24:
48:
dd:
c9
B交换机接口WWN
50:
01:
43:
80:
24:
48:
dd:
c9
50:
01:
43:
80:
24:
48:
dd:
cd
2.1检查SAN交换机当前zone配置:
admin>cfgactvshow|grepsjzx
zone:
gs_sjzx1_wwnhba1_gs_mdsk_wwnhp95007B
zone:
gs_sjzxdb2_old_wwnhba1_gs_mdsk_wwnhp95007B
zone:
sjzx1_old_eva2_FP1
zone:
sjzx1_old_eva2_FP3
zone:
sjzx1_old_eva8400
zone:
sjzx2_old_eva8400
2.2检查zone成员的WWN号码:
admin>zoneshowsjzx1_old_eva2_FP1
zone:
sjzx1_old_eva2_FP1
50:
01:
43:
80:
09:
77:
d0:
3c;50:
01:
43:
80:
24:
48:
dd:
c8
2.3测试WWN号是否连通:
gscc-c10-mSAN-hpdc04_yt1:
FID128:
admin>fcping50:
01:
43:
80:
05:
7a:
0f:
1050:
01:
43:
80:
24:
48:
DD:
C8
Source:
50:
01:
43:
80:
05:
7a:
0f:
10
Destination:
50:
01:
43:
80:
24:
48:
dd:
c8
ZoneCheck:
NotZoned
Pinging50:
01:
43:
80:
05:
7a:
0f:
10[0xf4400]with12bytesofdata:
receivedreplyfrom50:
01:
43:
80:
05:
7a:
0f:
10:
12bytestime:
298usec
receivedreplyfrom50:
01:
43:
80:
05:
7a:
0f:
10:
12bytestime:
202usec
receivedreplyfrom50:
01:
43:
80:
05:
7a:
0f:
10:
12bytestime:
218usec
receivedreplyfrom50:
01:
43:
80:
05:
7a:
0f:
10:
12bytestime:
259usec
receivedreplyfrom50:
01:
43:
80:
05:
7a:
0f:
10:
12bytestime:
209usec
5framessent,5framesreceived,0framesrejected,0framestimeout
Round-tripmin/avg/max=202/237/298usec
Pinging50:
01:
43:
80:
24:
48:
dd:
c8[0xf1a00]with12bytesofdata:
receivedreplyfrom50:
01:
43:
80:
24:
48:
dd:
c8:
12bytestime:
209usec
receivedreplyfrom50:
01:
43:
80:
24:
48:
dd:
c8:
12bytestime:
192usec
receivedreplyfrom50:
01:
43:
80:
24:
48:
dd:
c8:
12bytestime:
208usec
receivedreplyfrom50:
01:
43:
80:
24:
48:
dd:
c8:
12bytestime:
191usec
receivedreplyfrom50:
01:
43:
80:
24:
48:
dd:
c8:
12bytestime:
191usec
5framessent,5framesreceived,0framesrejected,0framestimeout
Round-tripmin/avg/max=191/198/209usec
2.4添加zone,建议每2个端口创建一个,一个控制器口,一个主机口
admin>zonecreategsgkdb2_eva2_FP1,"50:
01:
43:
80:
05:
7a:
0f:
10;50:
01:
43:
80:
24:
48:
DD:
C8"
admin>zonecreategsgkdb2_eva2_FP3,"50:
01:
43:
80:
05:
7a:
0f:
10;50:
01:
43:
80:
24:
48:
DD:
CC
2.5检查当前生效的zone名称:
admin>cfgactvshow|more
Effectiveconfiguration:
cfg:
zone2015
2.6将新添加的zone加入配置文件
admin>cfgaddzone2015,"gsgkdb2_eva2_FP1;gsgkdb2_eva2_FP3"
admin>cfgenablezone2015
Youareabouttoenableanewzoningconfiguration.
Thisactionwillreplacetheoldzoningconfigurationwiththe
currentconfigurationselected.Iftheupdateincludeschanges
tooneormoretrafficisolationzones,theupdatemayresultin
localizeddisruptiontotrafficonportsassociatedwith
thetrafficisolationzonechanges
Doyouwanttoenable'zone2015'configuration(yes,y,no,n):
[no]yes
zoneconfig"zone2015"isineffect
Updatingflash...
2.7检查是否配置成功:
admin>zoneshow|grepeva2
2.8配置2号SAN交换机
admin>zoneshow|grepeva2
evap6300C_evasma_x1800_porta;sjzx1_old_eva2_FP2;
sjzx1_old_eva2_FP4;dnzl1_wwnhp95004B;dnzl2_wwnhp95004B;
zone:
sjzx1_old_eva2_FP2
zone:
sjzx1_old_eva2_FP4
zone:
sjzx1_old_eva2_FP2
zone:
sjzx1_old_eva2_FP4
admin>zonecreategsgkdb2_eva2_FP2,"50:
01:
43:
80:
05:
7a:
0e:
c0;50:
01:
43:
80:
24:
48:
DD:
C9"
admin>zonecreategsgkdb2_eva2_FP4,"50:
01:
43:
80:
05:
7a:
0e:
c0;50:
01:
43:
80:
24:
48:
DD:
CD"
admin>cfgaddgsdl_yt2,"gsgkdb2_eva2_FP2;gsgkdb2_eva2_FP4"
admin>cfgenablegsdl_yt2
Youareabouttoenableanewzoningconfiguration.
Thisactionwillreplacetheoldzoningconfigurationwiththe
currentconfigurationselected.Iftheupdateincludeschanges
tooneormoretrafficisolationzones,theupdatemayresultin
localizeddisruptiontotrafficonportsassociatedwith
thetrafficisolationzonechanges
Doyouwanttoenable'gsdl_yt2'configuration(yes,y,no,n):
[no]yes
zoneconfig"gsdl_yt2"isineffect
Updatingflash...
三、存储端操作:
查看存储端WWN
四、主机端进行硬盘识别,配置
4.1检查原有硬盘状况:
#ioscan-knfNCdisk
/dev/disk/disk122/dev/rdisk/disk122
disk13364000/0xfa00/0x27esdiskCLAIMEDDEVICEOptiarcDVDRWAD-5170A
/dev/disk/disk133/dev/rdisk/disk133
disk13464000/0xfa00/0x28esdiskCLAIMEDDEVICEHP300GST3300655LC
/dev/disk/disk134/dev/disk/disk134_p2/dev/rdisk/disk134/dev/rdisk/disk134_p2
/dev/disk/disk134_p1/dev/disk/disk134_p3/dev/rdisk/disk134_p1/dev/rdisk/disk134_p3
4.2刷新硬盘:
#ioscan-fnNCdisk
disk13464000/0xfa00/0x28esdiskCLAIMEDDEVICEHP300GST3300655LC
/dev/disk/disk134/dev/disk/disk134_p2/dev/rdisk/disk134/dev/rdisk/disk134_p2
/dev/disk/disk134_p1/dev/disk/disk134_p3/dev/rdisk/disk134_p1/dev/rdisk/disk134_p3
disk13964000/0xfa00/0x30esdiskCLAIMEDDEVICEHPHSV360
/dev/disk/disk139/dev/rdisk/disk139
4.3检查新硬盘大小
#diskinfo/dev/rdisk/disk139
SCSIdescribeof/dev/rdisk/disk139:
vendor:
HP
productid:
HSV360
type:
directaccess
size:
1572864000Kbytes
bytespersector:
512
查看对端存储控制器的WWN号码:
(可以不做)
#fcmsutil/dev/fcd0getremoteall
TargetPortWorldWideName=0x500143802448ddc9
TargetNodeWorldWideName=0x500143802448ddc0
TargetN_Port_idis=0x101b00
Targetstate=DSM_READY
SymbolicPortName=HSV360-EVA2-CR229C
SymbolicNodeName=
PortType=N_PORT
FCP-2Support=NO
TargetPortWorldWideName=0x500143802448ddcd
TargetNodeWorldWideName=0x500143802448ddc0
TargetN_Port_idis=0x100400
Targetstate=DSM_READY
SymbolicPortName=HPDISK-SUBSYSTEM7005
SymbolicNodeName=
PortType=N_PORT
FCP-2Support=NO
TargetPortWorldWideName=0x50060e80166eca11
TargetNodeWorldWideName=0x50060e80166eca11
4.4检查聚合状况
#ioscan-mdsf
/dev/rdisk/disk134_p2/dev/rdsk/c58t6d0s2
/dev/rdisk/disk139/dev/rdsk/c67t0d1
/dev/rdsk/c69t0d1
/dev/rdsk/c63t0d1
/dev/rdsk/c65t0d1
4.5创建PV
#pvcreate/dev/rdisk/disk139
4.6创建VG
#vgcreate-s64vgbackup/dev/disk/disk139
4.7检查VG
#vgdisplayvgbackup
4.8创建LV
#lvcreate-l23999vgbackup
4.9格式化LV
#newfs/dev/vgbackup/rlvol1
4.10挂载文件目录
#mkdir/rmanbackup
#mount/dev/vgbackup/lvol1/rmanbackup
4.11添加入文件分区表
gsgkdb2:
[/]#vi/etc/fstab
/dev/vgbackup/lvol1/rmanbackupvxfsdefaults02
4.12修改配置文件,重启激活VG
gsgkdb2:
[/etc]#vilvmrc
custom_vg_activation()
#e.g./sbin/vgchange-ay-s
#parallel_vg_sync"/dev/vg00/dev/vg01"
#parallel_vg_sync"/dev/vg02/dev/vg03"
vgchange-ayarch02
vgchange-ayvgbackup
return0
4.13修改文件夹权限
#chownoracle:
dba/rmanbackup
在其他节点共享文件
B号节点#share/arch1
挂载NFS共享文件
#mountgsgkdb1:
/arch1/arch1
5使用DOMAIN-ID配置交换机
A交换机
zonecreateA2_lenovo_R680_3_eva4400,"2,15;2,2;2,3"
zonecreateA2_lenovo_R680_4_eva4400,"2,14;2,2;2,3"
cfgaddcfg_down,A2_lenovo_R680_3_eva4400
cfgaddcfg_down,A2_lenovo_R680_4_eva4400
cfgenablecfg_down
B交换机
zonecreateA2_lenovo_R680_3_eva4400,"1,10;1,2;1,3"
zonecreateA2_lenovo_R680_4_eva4400,"1,11;1,2;1,3"
cfgaddcfg_up,A2_lenovo_R680_3_eva4400
cfgaddcfg_up,A2_lenovo_R680_4_eva4400
cfgenablecfg_up
删除一条错误配置
cfgremovegsdl_yt2,"yjzyc_243_17_2_eva6300_3"
zonedeleteyjzyc_243_17_2_eva6300_3,"50:
01:
43:
80:
24:
48:
dd:
09;50:
01:
43:
80:
24:
48:
dd:
0d;10:
00:
00:
90:
fa:
35:
1f:
25"
cfgenablegsdl_yt2
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 存储 划分 交换机 zone 绑定 主机 配置 手册
![提示](https://static.bdocx.com/images/bang_tan.gif)