命令列配置zone
當伺服器連線到交換機的數量較多時,用命令列配置zone的優勢就體現出來了。
1.數量多的時候,在圖形介面容易點錯。
2.速度比較快
(以下是一臺新上架的一臺交換機,新連線的伺服器和儲存VNX5400)
switchshow看到所有伺服器和儲存的埠連線到交換機的wwn(擷取的其中一部分)
Index Port Address Media Speed State Proto
==============================================
0 0 020000 id N8 Online FC F_Port 50:06:01:68:08:60:73:7a
1 1 020100 id N8 Online FC F_Port 21:00:00:24:ff:0e:4b:82
2 2 020200 id N8 Online FC F_Port 21:00:00:24:ff:0e:4d:9b
3 3 020300 id N8 Online FC F_Port 21:00:00:24:ff:0e:5d:38
4 4 020400 id N8 Online FC F_Port 50:06:01:61:08:60:73:7a
5 5 020500 id N8 Online FC F_Port 21:00:00:24:ff:0e:5c:bf
6 6 020600 id N8 Online FC F_Port 21:00:00:24:ff:0e:15:e6
7 7 020700 id N8 Online FC F_Port 21:00:00:24:ff:12:1e:2b
8 8 020800 id N8 Online FC F_Port 21:00:00:24:ff:12:1f:1e
9 9 020900 id N8 Online FC F_Port 10:00:00:90:fa:a4:74:63
10 10 020a00 id N8 Online FC F_Port 10:00:00:90:fa:a4:77:44
一、給wwn取別名,一般以裝置名稱的埠取別名
格式:alicreate "別名","別名對應的wwn"
別名:
alicreate "VNX54_0206_B0","50:06:01:68:08:60:73:7a"
alicreate "VNX54_0206_A1","50:06:01:61:08:60:73:7a"
alicreate "zbjb_jyesxi01","21:00:00:24:ff:0e:5d:38"
alicreate "zbjb_jyesxi02","21:00:00:24:ff:0e:5c:bf"
alicreate "zbjb_jyesxi03","21:00:00:24:ff:0e:4b:82"
alicreate "zbjb_jyesxi04","21:00:00:24:ff:0e:15:e6"
alicreate "zbjb_jyesxi05","21:00:00:24:ff:0e:4d:9b"
alicreate "zbjb_jyesxi06","21:00:00:24:ff:12:1e:2b"
alicreate "zbjb_jyesxi07","21:00:00:24:ff:12:1f:1e"
alicreate "zbjb_jyesxi08","21:00:00:24:ff:12:1e:28"
alicreate "zbjb_jyesxi09","10:00:00:90:fa:a4:74:63"
alicreate "zbjb_jyesxi10","10:00:00:90:fa:a4:77:44"
二、建立zone,並加入相對應的成員(zone裡面的成員可以互相通訊,與vlan類似)
格式:zonecreate "zone名","ali1;ali2;ali3"
zone命名一般以"儲存_伺服器"格式命名,一目瞭然。
zonecreate "VNX54_0206_zbjb_jyesxi01","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi01"
zonecreate "VNX54_0206_zbjb_jyesxi02","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi02"
zonecreate "VNX54_0206_zbjb_jyesxi03","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi03"
zonecreate "VNX54_0206_zbjb_jyesxi04","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi04"
zonecreate "VNX54_0206_zbjb_jyesxi05","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi05"
zonecreate "VNX54_0206_zbjb_jyesxi06","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi05"
zonecreate "VNX54_0206_zbjb_jyesxi07","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi06"
zonecreate "VNX54_0206_zbjb_jyesxi08","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi07"
zonecreate "VNX54_0206_zbjb_jyesxi09","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi08"
zonecreate "VNX54_0206_zbjb_jyesxi10","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi09"
zonecreate "VNX54_0206_zbjb_jyesxi11","VNX54_0206_B0;VNX54_0206_A1;zbjb_jyesxi10"
三、將zone新增到配置檔案裡面去
格式:cfgadd "配置檔名","zone1;zone2;zone3..."
新增zone到配置檔案:(配置檔名稱未填寫)
cfgadd"","VNX54_0206_zbjb_jyesxi01"
cfgadd"","VNX54_0206_zbjb_jyesxi02"
cfgadd"","VNX54_0206_zbjb_jyesxi03"
cfgadd"","VNX54_0206_zbjb_jyesxi04"
cfgadd"","VNX54_0206_zbjb_jyesxi05"
cfgadd"","VNX54_0206_zbjb_jyesxi06"
cfgadd"","VNX54_0206_zbjb_jyesxi07"
cfgadd"","VNX54_0206_zbjb_jyesxi08"
cfgadd"","VNX54_0206_zbjb_jyesxi09"
cfgadd"","VNX54_0206_zbjb_jyesxi10"
四、儲存:
cfgsave
五、使新的配置生效:(配置檔名稱未填寫)
cfgenable ""