存储划分-交换机机配置手册
zone-绑定主
主机存储划分手册
1、 配置交换机zone 2、 存储端进行划分
3、 主机端进行硬盘识别,配置 一、 准备工作,存储连接拓扑图
二、
1.1查看HPUX服务器WWN号码: gsgkdb2:[/]#ioscan -knfNCfc
Class 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 Port 1)
/dev/fcd0 fc 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 = 0x20440027f8701400
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 Name = 0x50014380057a0ec0
Switch Port World Name = 0x20440027f8700d00
Switch Node World Name = 0x10000027f8700d00
N_Port Symbolic Name = gsgkdb2_fcd1
N_Port Symbolic Name = 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
Wide Wide Wide Port Node
50:01:43:80:24:48:dd:cd 2.1检查SAN交换机当前zone配置: admin> cfgactvshow | grep sjzx
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> zoneshow sjzx1_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> 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:10
Destination:
50:01:43:80:24:48:dd:c8
Zone Check: Not Zoned Pinging received time:298 usec
received time:202 usec
received time:218 usec
received time:259 usec
received
reply
12
from bytes
50:01:43:80:05:7a:0f:10:
reply
12
from bytes
50:01:43:80:05:7a:0f:10:
reply
12
from bytes
50:01:43:80:05:7a:0f:10:
reply
12
from bytes
50:01:43:80:05:7a:0f:10:
50:01:43:80:05:7a:0f:10
reply
12
from bytes
[0xf4400] with 12 bytes of data: 50:01:43:80:05:7a:0f:10:
time:209 usec
5 frames sent, 5 frames received, 0 frames rejected, 0 frames timeout
Round-trip 202/237/298 usec
Pinging received time:209 usec
received time:192 usec
received time:208 usec
received time:191 usec
received
reply
12
from bytes
50:01:43:80:24:48:dd:c8:
reply
12
from bytes
50:01:43:80:24:48:dd:c8:
reply
12
from bytes
50:01:43:80:24:48:dd:c8:
reply
12
from bytes
50:01:43:80:24:48:dd:c8:
50:01:43:80:24:48:dd:c8
reply
12
from bytes
[0xf1a00] with 12 bytes of data: 50:01:43:80:24:48:dd:c8:
min/avg/max
=
time:191 usec
5 frames sent, 5 frames received, 0 frames rejected, 0 frames timeout Round-trip min/avg/max = 191/198/209 usec
2.4添加zone,建议每2个端口创建一个,一个控制器口,一个主机口 admin>zonecreate
gsgkdb2_eva2_FP1,\"50:01:43:80:05:7a:0f:10;50:01:43:80:24:48:DD:C8\" admin>zonecreate
gsgkdb2_eva2_FP3,\"50:01:43:80:05:7a:0f:10;50:01:43:80:24:48:DD:CC 2.5 检查当前生效的zone名称:
admin> cfgactvshow | more
Effective configuration:
cfg: zone2015
2.6 将新添加的zone加入配置文件 admin> a2_FP3\"
cfgadd
zone2015,\"gsgkdb2_eva2_FP1;gsgkdb2_ev
admin> cfgenable zone2015
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current 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 with
the traffic isolation zone changes Do you want to enable 'zone2015' configuration (yes, y, no, n): [no] yes
zone config \"zone2015\" is in effect Updating flash ... 2.7 检查是否配置成功: admin> zoneshow | grep eva2 2.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 admin>zonecreate
gsgkdb2_eva2_FP2,\"50:01:43:80:05:7a:0e:c0;50:01:43:80:24:48:DD:C9\" admin>zonecreate
gsgkdb2_eva2_FP4,\"50:01:43:80:05:7a:0e:c0;50:01:43:80:24:48:DD:CD\" admin> a2_FP4\"
admin> cfgenable gsdl_yt2
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
cfgadd
gsdl_yt2,\"gsgkdb2_eva2_FP2;gsgkdb2_ev
current 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 with
the traffic isolation zone changes Do you want to enable 'gsdl_yt2' configuration (yes, y, no, n): [no] yes
zone config \"gsdl_yt2\" is in effect Updating flash ... 三、 存储端操作:
查看存储端WWN
四、主机端进行硬盘识别,配置 4.1检查原有硬盘状况:
#ioscan -knfNCdisk
/dev/disk/disk122 /dev/rdisk/disk122
disk 133 64000/0xfa00/0x27 esdisk CLAIMED DEVICE Optiarc DVD RW AD-5170A
/dev/disk/disk133
/dev/rdisk/disk133
disk 134 64000/0xfa00/0x28 esdisk CLAIMED DEVICE HP 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_p3
4.2刷新硬盘: #ioscan -fnNCdisk
disk 134 64000/0xfa00/0x28 esdisk CLAIMED DEVICE HP 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_p3
disk 139 64000/0xfa00/0x30 esdisk CLAIMED DEVICE HP HSV360
/dev/disk/disk139 /dev/rdisk/disk139 4.3检查新硬盘大小
#diskinfo /dev/rdisk/disk139 SCSI
describe
of
/dev/rdisk/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 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 DISK-SUBSYSTEM 7005
Symbolic Node Name =
Port Type = N_PORT
FCP-2 Support = NO
Target Port World Wide Name = 0x50060e80166eca11
Target Node World Wide Name = 0x50060e80166eca11
4.4检查聚合状况
#ioscan -m dsf
/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 -s
64
/dev/disk/disk139
4.7检查VG
#vgdisplay vgbackup 4.8创建LV
#lvcreate -l 23999 vgbackup 4.9格式化LV
vgbackup
#newfs /dev/vgbackup/rlvol1 4.10挂载文件目录
#mkdir /rmanbackup #mount /rmanbackup
4.11添加入文件分区表
gsgkdb2:[/]#vi /etc/fstab /dev/vgbackup/lvol1 vxfs defaults 0 2 4.12修改配置文件,重启激活VG
gsgkdb2:[/etc]#vi lvmrc custom_vg_activation() # e.g. /sbin/vgchange -a y -s #parallel_vg_sync /dev/vg01\"
#parallel_vg_sync /dev/vg03\"
vgchange -a y arch02 vgchange -a y vgbackup return 0 4.13修改文件夹权限
\"/dev/vg02 \"/dev/vg00 /rmanbackup
/dev/vgbackup/lvol1
#chown oracle:dba /rmanbackup 在其他节点共享文件 B号节点#share /arch1 挂载NFS共享文件
#mount gsgkdb1:/arch1 /arch1
5 使用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,3\"
cfgadd
cfg_down,A2_lenovo_R680_3_eva4400
cfgadd
cfg_down,A2_lenovo_R680_4_eva4400
cfgenable cfg_down B交换机
zonecreate
A2_lenovo_R680_3_eva4400,\"1,10;1,2;1,3\"
zonecreate
A2_lenovo_R680_4_eva4400,\"1,11;1,2;1,3\"
cfgadd
cfg_up,A2_lenovo_R680_3_eva4400
cfgadd
cfg_up,A2_lenovo_R680_4_eva4400 cfgenable cfg_up
删除一条错误配置
cfgremove
gsdl_yt2,\"yjzyc_243_17_2_eva6300_3\"
zonedelete
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:25\"
cfgenable gsdl_yt2
因篇幅问题不能全部显示,请点此查看更多更全内容