VSAN配置操作方法

才智咖 人氣:2.64W

VSAN是Cisco的SAN交換機上面使用的`一種虛擬化技術,把一個物理交換機虛擬成多個邏輯交換機。下面文主要介紹Cisco MDS系列交換機VSAN配置操作,主要包括VSAN建立,VSAN配置檢查,VSAN刪除,一些VSAN推薦操作。

VSAN配置操作方法

VSAN主要屬性:

VSAN ID - 用於標示VSAN的數字 (1-4094) ,使用者可使用範圍 (2-4093) , 1 和4094都是交換機自帶VSAN,有特殊用處,無法刪除。

VSAN Name - 使用文字對VSAN命名,方便管理VSAN最長32個字元。

Loading balancing - 設定VSAN的路由策略,有S_ID/D_ID和S_ID/D_ID/OX_ID兩種,預設是基於S_ID/D_ID/OX_ID。

VSAN state - VSAN工作狀態,建立後預設是Active。

VSAN membership - 屬於這個VSAN的埠。

VSAN操作演示:

1. 建立VSAN

MDS9222I-2# configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

MDS9222I-2(config)# vsan database

MDS9222I-2(config-vsan-db)# vsan 2 name Test - VSAN ID:2,名字:Test

2. 新增VSAN成員

MDS9222I-2(config-vsan-db)# vsan 2 interface fc1/1 – 新增埠fc1/2為成員

3. 刪除VSAN

MDS9222I-2(config-vsan-db)# no vsan 2 – 刪除VSAN 2

Do you want to continue? (y/n) y

4. 配置VSAN Loading balancing機制

MDS9222I-2(config-vsan-db)# vsan 2 loadbalancing ?

src-dst-id Src-id/dst-id for loadbalancing

src-dst-ox-id Ox-id/src-id/dst-id for loadbalancing(Default)

MDS9222I-2(config-vsan-db)# vsan 2 loadbalancing src-dst-id

5. 停止或者啟用

MDS9222I-2(config-vsan-db)# vsan 2 suspend

MDS9222I-2(config-vsan-db)# no vsan 2 suspend

VSAN配置檢查:

1. show vsan

MDS9222I-2(config-vsan-db)# show vsan ?

*** No matching command found in current mode, matching in (exec) mode ***

<1-4094> VSAN id range

> Redirect it to a file

>> Redirect it to a file in append mode

internal Show various event logs of VSAN Mgr

membership Show membership information

usage Show vsan usage in the system

| Pipe command output to filter

MDS9222I-2(config-vsan-db)# show vsan 2 –檢視VSAN 2資訊

vsan 2 information

name:Test state:active - 名稱:Test,狀態是active

interoperability mode:default - 互操作模式:預設(這個引數在連線不同廠商交換機時,必須修改)

loadbalancing:src-id/dst-id - 路由方式:基於src_id和dst_id

operational state:down - VSAN允許狀態,不能更改。如果是down,代表所有埠不可用,無法正常進行資料通訊。

2. show vsan membership

MDS9222I-2(config-vsan-db)# show vsan ?

*** No matching command found in current mode, matching in (exec) mode ***

<1-4094> VSAN id range

> Redirect it to a file

>> Redirect it to a file in append mode

internal Show various event logs of VSAN Mgr

membership Show membership information

usage Show vsan usage in the system

| Pipe command output to filter

MDS9222I-2(config-vsan-db)# show vsan 2

vsan 2 information

name:Test state:active

interoperability mode:default

loadbalancing:src-id/dst-id

operational state:down

預設VSAN和隔離VSAN:

VSAN 1

交換機預設VSAN,所有交換機埠最開始都屬於VSAN 1,VSAN 1不能被刪除。

VSAN 2 – 4093

使用者可自定義VSAN範圍,一臺交換機最多可以建立256個VSAN

VSAN 4094

一個特殊用途VSAN,又稱隔離VSAN,

埠從自定義VSAN刪除後,自動被分配到VSAN 4094,

VSAN 4094資訊在交換機之間不同步,

跟VSAN 1一樣由交換機自動建立,不能被刪除。

VSAN推薦操作:

避免直接使用VSAN 1用於生產環境

至少建立一個VSAN使用者生成環境

建議基於以下需求建立VSAN:

部門(HR、財務...)

應用(webserver、oracle…)

測試/生成環境(開發、測試、生產…)

在每個VSAN裡面使用zone

如果兩個不同VSAN裝置要通訊,請使用IVR