1、存储划分交换机zone绑定主机配置手册存储划分-交换机zone-绑定主机配置手册主机存储划分手册1、配置交换机zone 2、存储端进行划分3、主机端进行硬盘识别,配置一、准备工作,存储连接拓扑图二、1.1查看HPUX服务器WWN号码:gsgkdb2:/#ioscan -knfNCfcClass I H/W Path Driver S/W State H/W Type Description=fc 0 1/0/4/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC
2、 Port 1) /dev/fcd0fc 1 1/0/6/1/0 fcd CLAIMED INTERFACE HP AB378-60101 4Gb Single Port PCI/PCI-X Fibre Channel Adapter (FC Port 1) /dev/fcd1#fcmsutil /dev/fcd0 N_Port Node World Wide Name = 0x50014380057a0f11 N_Port Port World Wide Name = 0x50014380057a0f10 Switch Port World Wide Name = 0x20440027f87
3、01400 Switch Node World Wide Name = 0x10000027f8701400 N_Port Symbolic Port Name = gsgkdb2_fcd0 N_Port Symbolic Node Name = gsgkdb2_HP-UX_B.11.31 #fcmsutil /dev/fcd1 N_Port Node World Wide Name = 0x50014380057a0ec1 N_Port Port World Wide Name = 0x50014380057a0ec0 Switch Port World Wide Name = 0x2044
4、0027f8700d00 Switch Node World Wide Name = 0x10000027f8700d00 N_Port Symbolic Port Name = gsgkdb2_fcd1 N_Port Symbolic Node Name = gsgkdb2_HP-UX_B.11.31二、SAN交换机操作A交换机接口WWN 50:01:43:80:24:48:dd:c850:01:43:80:24:48:dd:c9 B交换机接口WWN50:01:43:80:24:48:dd:c950:01:43:80:24:48:dd:cd2.1检查SAN交换机当前zone配置:admin
5、cfgactvshow | grep sjzxzone: 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_eva84002.2检查zone成员的WWN号码:admin zoneshow sjzx1_old_eva2_FP1zone: sjzx1_old_eva2_FP1 50:01:43:80:
6、09:77:d0:3c; 50:01:43:80:24:48:dd:c82.3测试WWN号是否连通:gscc-c10-mSAN-hpdc04_yt1:FID128:admin fcping 50:01:43:80:05:7a:0f:10 50:01:43:80:24:48:DD:C8 Source: 50:01:43:80:05:7a:0f:10Destination: 50:01:43:80:24:48:dd:c8Zone Check: Not ZonedPinging 50:01:43:80:05:7a:0f:10 0xf4400 with 12 bytes of data:receive
7、d reply from 50:01:43:80:05:7a:0f:10: 12 bytes time:298 usecreceived reply from 50:01:43:80:05:7a:0f:10: 12 bytes time:202 usecreceived reply from 50:01:43:80:05:7a:0f:10: 12 bytes time:218 usecreceived reply from 50:01:43:80:05:7a:0f:10: 12 bytes time:259 usecreceived reply from 50:01:43:80:05:7a:0
8、f:10: 12 bytes time:209 usec5 frames sent, 5 frames received, 0 frames rejected, 0 frames timeoutRound-trip min/avg/max = 202/237/298 usecPinging 50:01:43:80:24:48:dd:c8 0xf1a00 with 12 bytes of data:received reply from 50:01:43:80:24:48:dd:c8: 12 bytes time:209 usecreceived reply from 50:01:43:80:2
9、4:48:dd:c8: 12 bytes time:192 usecreceived reply from 50:01:43:80:24:48:dd:c8: 12 bytes time:208 usecreceived reply from 50:01:43:80:24:48:dd:c8: 12 bytes time:191 usecreceived reply from 50:01:43:80:24:48:dd:c8: 12 bytes time:191 usec5 frames sent, 5 frames received, 0 frames rejected, 0 frames tim
10、eoutRound-trip min/avg/max = 191/198/209 usec2.4添加zone,建议每2个端口创建一个,一个控制器口,一个主机口adminzonecreate gsgkdb2_eva2_FP1,50:01:43:80:05:7a:0f:10;50:01:43:80:24:48:DD:C8 adminzonecreate gsgkdb2_eva2_FP3,50:01:43:80:05:7a:0f:10;50:01:43:80:24:48:DD:CC2.5 检查当前生效的zone名称:admin cfgactvshow | moreEffective configur
11、ation: cfg: zone20152.6 将新添加的zone加入配置文件admin cfgadd zone2015,gsgkdb2_eva2_FP1;gsgkdb2_eva2_FP3admin cfgenable zone2015You are about to enable a new zoning configuration.This action will replace the old zoning configuration with thecurrent configuration selected. If the update includes changes to one
12、 or more traffic isolation zones, the update may result in localized disruption to traffic on ports associated withthe traffic isolation zone changesDo you want to enable zone2015 configuration (yes, y, no, n): no yeszone config zone2015 is in effectUpdating flash .2.7 检查是否配置成功:admin zoneshow | grep
13、 eva22.8 配置2号SAN交换机admin zoneshow | grep eva2 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 adminzonecreate gsgkdb2_eva2_FP2,50:01:43:80:0
14、5:7a:0e:c0;50:01:43:80:24:48:DD:C9 adminzonecreate gsgkdb2_eva2_FP4,50:01:43:80:05:7a:0e:c0;50:01:43:80:24:48:DD:CDadmin cfgadd gsdl_yt2,gsgkdb2_eva2_FP2;gsgkdb2_eva2_FP4admin cfgenable gsdl_yt2You are about to enable a new zoning configuration.This action will replace the old zoning configuration w
15、ith thecurrent configuration selected. If the update includes changes to one or more traffic isolation zones, the update may result in localized disruption to traffic on ports associated withthe traffic isolation zone changesDo you want to enable gsdl_yt2 configuration (yes, y, no, n): no yeszone co
16、nfig gsdl_yt2 is in effectUpdating flash .三、存储端操作:查看存储端WWN四、主机端进行硬盘识别,配置4.1检查原有硬盘状况:#ioscan -knfNCdisk /dev/disk/disk122 /dev/rdisk/disk122disk 133 64000/0xfa00/0x27 esdisk CLAIMED DEVICE Optiarc DVD RW AD-5170A /dev/disk/disk133 /dev/rdisk/disk133disk 134 64000/0xfa00/0x28 esdisk CLAIMED DEVICE HP
17、300 GST3300655LC /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_p34.2刷新硬盘:#ioscan -fnNCdiskdisk 134 64000/0xfa00/0x28 esdisk CLAIMED DEVICE HP 300 GST3300655LC /dev/disk/disk134 /dev/d
18、isk/disk134_p2 /dev/rdisk/disk134 /dev/rdisk/disk134_p2 /dev/disk/disk134_p1 /dev/disk/disk134_p3 /dev/rdisk/disk134_p1 /dev/rdisk/disk134_p3disk 139 64000/0xfa00/0x30 esdisk CLAIMED DEVICE HP HSV360 /dev/disk/disk139 /dev/rdisk/disk1394.3检查新硬盘大小#diskinfo /dev/rdisk/disk139SCSI describe of /dev/rdis
19、k/disk139: vendor: HP product id: HSV360 type: direct access size: 1572864000 Kbytes bytes per sector: 512查看对端存储控制器的WWN号码:(可以不做) #fcmsutil /dev/fcd0 get remote all Target Port World Wide Name = 0x500143802448ddc9 Target Node World Wide Name = 0x500143802448ddc0 Target N_Port_id is = 0x101b00 Target
20、state = DSM_READY Symbolic Port Name = HSV360 - EVA2 - CR229C Symbolic Node Name = Port Type = N_PORT FCP-2 Support = NO Target Port World Wide Name = 0x500143802448ddcd Target Node World Wide Name = 0x500143802448ddc0 Target N_Port_id is = 0x100400 Target state = DSM_READY Symbolic Port Name = HP D
21、ISK-SUBSYSTEM 7005 Symbolic Node Name = Port Type = N_PORT FCP-2 Support = NO Target Port World Wide Name = 0x50060e80166eca11 Target Node World Wide Name = 0x50060e80166eca114.4检查聚合状况#ioscan -m dsf/dev/rdisk/disk134_p2 /dev/rdsk/c58t6d0s2/dev/rdisk/disk139 /dev/rdsk/c67t0d1 /dev/rdsk/c69t0d1 /dev/r
22、dsk/c63t0d1 /dev/rdsk/c65t0d14.5创建PV#pvcreate /dev/rdisk/disk1394.6创建VG#vgcreate -s 64 vgbackup /dev/disk/disk1394.7检查VG #vgdisplay vgbackup4.8创建LV#lvcreate -l 23999 vgbackup4.9格式化LV#newfs /dev/vgbackup/rlvol14.10挂载文件目录#mkdir /rmanbackup#mount /dev/vgbackup/lvol1 /rmanbackup4.11添加入文件分区表gsgkdb2:/#vi
23、/etc/fstab/dev/vgbackup/lvol1 /rmanbackup vxfs defaults 0 2 4.12修改配置文件,重启激活VGgsgkdb2:/etc#vi lvmrccustom_vg_activation()# e.g. /sbin/vgchange -a y -s #parallel_vg_sync /dev/vg00 /dev/vg01 #parallel_vg_sync /dev/vg02 /dev/vg03 vgchange -a y arch02vgchange -a y vgbackup return 04.13修改文件夹权限#chown oracl
24、e:dba /rmanbackup在其他节点共享文件B号节点#share /arch1挂载NFS共享文件#mount gsgkdb1:/arch1 /arch15 使用DOMAIN-ID配置交换机A交换机zonecreate A2_lenovo_R680_3_eva4400,2,15;2,2;2,3 zonecreate A2_lenovo_R680_4_eva4400,2,14;2,2;2,3cfgadd cfg_down,A2_lenovo_R680_3_eva4400cfgadd cfg_down,A2_lenovo_R680_4_eva4400cfgenable cfg_down B交
25、换机zonecreate A2_lenovo_R680_3_eva4400,1,10;1,2;1,3zonecreate A2_lenovo_R680_4_eva4400,1,11;1,2;1,3cfgadd cfg_up,A2_lenovo_R680_3_eva4400cfgadd cfg_up,A2_lenovo_R680_4_eva4400cfgenable cfg_up删除一条错误配置cfgremove gsdl_yt2,yjzyc_243_17_2_eva6300_3zonedelete yjzyc_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:25cfgenable gsdl_yt2
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1