ゾーン設定
ゾーン設定の手順
- エイリアスの作成(必要に応じて)
- ゾーンの作成
- ゾーンコンフィグの作成
- ゾーンコンフィグの有効化
- デフォルトゾーンの設定(必要に応じて)
- ゾーン設定の保存
デバイスの WWN の確認
■ファブリックにログインしているデバイスの情報を表示
nsshow
switch:admin> nsshow
{
Type Pid COS PortName NodeName SCR(sec)
N 010800; 2,3;30:03:50:eb:1a:bb:6c:fd;10:00:50:eb:1a:bb:6c:fd; 0x0000000f
SCR: Fabric-Detected Nx-Port-Detected Fabric-Name Peer-Zone
FC4s: FCP FC-NVMe Application-Services
Fabric Port Name: 20:08:c4:f5:7c:00:a3:20
Permanent Port Name: 30:03:50:eb:1a:bb:6c:fd
Device type: Physical Initiator
Port Index: 8
Share Area: No
Redirect: No
Partial: No
LSAN: No
Slow Drain Device: No
Device link speed: 16G
Connected through AG: No
Real device behind AG: No
FCoE: No
FC4 Features [FCP]: Initiator
FC4 Features [FC-NVMe]: Initiator Discovery-Service
- PortName
- デバイスのポート WWN
- NodeName
- デバイスのノード WWN
- Fabric Port Name
- デバイスの接続先スイッチのポート WWN
- Permanent Port Name
- デバイスのポート WWN(PortName と同じ)
エイリアスの設定
■エイリアスの作成
alicreate "aliace_name", "member_1; member_2; ..."
alicreate "aliace_name", "domain,port; domain,port; ..."
alicreate "aliace_name", "WWN_1; WWN_2; ..."
#ドメインとポートの組を指定する場合
switch:admin> alicreate "array1", "2,32; 2,33; 2,34"
#WWNを指定する場合
switch:admin> alicreate "array2", "21:00:00:20:37:0c:66:23"
■エイリアスの削除
alidelete "aliace_name"
switch:admin> alidelete "array2"
■エイリアス設定の確認
alishow [pattern]
switch:admin> alishow "arr*"
alias: array1 21:00:00:20:37:0c:76:8c
alias: array2 21:00:00:20:37:0c:66:23
ゾーンの設定
■ゾーンの作成
zonecreate "zone_name", "member_1; member_2; ..."
#ドメインとポートの組を指定する場合
switch:admin> zonecreate "Purple_zone", "1,0"
#エイリアス、およびドメインとポートの組を指定する場合
switch:admin> zonecreate "Blue_zone", "1,1; array1; 1,2; array2"
switch:admin> zonecreate "Green_zone", "1,0; 1,2; array2"
■ゾーンの削除
zonedelete "zone_name"
switch:admin> zonedelete "Blue_zone"
■ゾーン設定の確認
zoneshow [pattern]
switch:admin> zoneshow
Defined configuration:
cfg: cfg1 red
zone: blue 44,5; 10:00:00:00:00:01:00:00; 3,4
zone: red 3,4; 1,2; 4,5; 2,3
Effective configuration:
cfg: cfg1
zone: red 3,4
1,2
4,5
2,3
ゾーンコンフィグの設定
■ゾーンコンフィグの作成
cfgcreate "cfg_name", "member_1; member_2; ..."
switch:admin> cfgcreate "USA_cfg", "Purple_zone; Blue_zone; Green_zone"
■ゾーンコンフィグの削除
cfgdelete "cfg_name"
switch:admin> cfgdelete "USA_cfg"
■ゾーンコンフィグ設定の確認
cfgshow [pattern]
switch:admin> cfgshow
Defined configuration:
cfg: USA1 Blue_zone
cfg: USA_cfg Red_zone; Blue_zone
zone: Blue_zone
1,1; array1; 1,2; array2
zone: Red_zone
1,0; loop1
alias: array1 21:00:00:20:37:0c:76:8c; 21:00:00:20:37:0c:71:02
alias: array2 21:00:00:20:37:0c:76:22; 21:00:00:20:37:0c:76:28
alias: loop1 21:00:00:20:37:0c:76:85; 21:00:00:20:37:0c:71:df
Effective configuration:
cfg: USA_cfg
zone: Blue_zone
1,1
21:00:00:20:37:0c:76:8c
21:00:00:20:37:0c:71:02
1,2
21:00:00:20:37:0c:76:22
21:00:00:20:37:0c:76:28
zone: Red_zone
1,0
21:00:00:20:37:0c:76:85
21:00:00:20:37:0c:71:df
■ゾーンコンフィグの有効化
cfgenable "cfg_Name"
switch:admin> cfgenable "USA_cfg"
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 'USA_cfg' configuration (yes, y, no, n): [no] y
zone config "USA_cfg" is in effect
Updating flash ...
■ゾーンコンフィグの無効化
cfgdisable
switch:admin> cfgdisable
You are about to disable zoning configuration. This
action will disable any previous zoning configuration.
Do you want to disable zoning configuration? (yes, y, no, n): [no] y
■アクティブなゾーンコンフィグの表示
cfgactvshow
switch:admin> cfgactvshow
Effective configuration:
cfg: c4
zone: z3 33:07:06:05:04:03:02:01
zone: z4 44:01:23:45:67:89:a0:bc
40:01:23:45:67:89:a0:bc
デフォルトゾーンの設定
- ゾーンコンフィグが有効化されていない場合、デフォルトゾーンの設定が適用される
- デフォルトのデフォルトゾーン設定では、全デバイス間でアクセス可能となっている
■デフォルトゾーン設定を全デバイス間でアクセス可能にする
defzone --allaccess
■デフォルトゾーン設定を全デバイス間で通信不可にする
defzone
--noaccess
■デフォルトゾーン設定の表示
defzone --show
switch:admin> defzone --show
Default Zone Access Mode
committed - No Access
transaction - No Transaction
※設定変更後、cfgsave
でフラッシュメモリにコンフィグを保存する
ゾーン設定の保存
フラッシュメモリへゾーン設定を保存する
cfgsave
switch:admin> cfgsave
WARNING!!!
The changes you are attempting to save will render the
Effective configuration and the Defined configuration
inconsistent. The inconsistency will result in different
Effective Zoning configurations for switches in the fabric if
a zone merge or HA failover happens. To avoid inconsistency
it is recommended to commit the configurations using the
cfgenable command.
Do you want to save Defined zoning configuration
only? (yes, y, no, n): [no]y
ゾーン設定の削除
ゾーン設定を削除する手順
- ゾーンコンフィグの無効化(
cfgdisable
) - ゾーン設定のクリア
- ゾーン設定の保存(
cfgsave
)
■ゾーン設定のクリア
cfgclear
switch:admin> cfgclear
The Clear All action will clear all Aliases, Zones, FA Zones
and configurations in the Defined configuration.
Run cfgSave to commit the transaction or cfgTransAbort to
cancel the transaction.
Do you really want to clear all configurations? (yes, y, no, n): [no] y
ゾーン関連コマンドまとめ
操作 | エイリアス | ゾーン | ゾーンコンフィグ | デフォルトゾーン |
作成 | alicreate | zonecreate | cfgcreate | – |
削除 | alidelete | zonedelete | cfgdelete | – |
メンバ追加 | aliadd | zoneadd | cfgadd | – |
メンバ削除 | aliremove | zoneremove | cfgremove | – |
メンバ入替 | zoneobjectreplace | 同左 | – | – |
オブジェクト名変更 | zoneobjectrename | 同左 | 同左 | – |
設定表示 | alishow | zoneshow | cfgshow | defzone -- show |
設定有効化 | – | – | cfgenable | – |
設定無効化 | – | – | cfgdisable | – |
フラッシュへ保存 | cfgsave | 同左 | 同左 | 同左 |
アクティブ設定表示 | – | – | cfgactvshow | – |
全ゾーン設定削除 | cfgclear | 同左 | 同左 | 同左 |
―――――――――――――