日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

fc oracle,使用 CLI 配置 FC

發布時間:2025/3/12 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 fc oracle,使用 CLI 配置 FC 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

使用 CLI 配置 FC

更改 FC 端口的模式

dory:configuration san fc targets> set targets="wwn.2101001B32A11639"

targets = wwn.2101001B32A11639 (uncommitted)

dory:configuration san fc targets> commit

查看搜索到的 FC 端口

dory:configuration san fc targets> show

Properties:

targets = wwn.2100001B32811639,wwn.2101001B32A12239

Targets:

NAME MODE WWN PORT SPEED

target-000 target wwn.2100001B32811639 PCIe 5: Port 1 4 Gbit/s

target-001 initiator wwn.2101001B32A11639 PCIe 5: Port 2 0 Gbit/s

target-002 initiator wwn.2100001B32812239 PCIe 2: Port 1 0 Gbit/s

target-003 target wwn.2101001B32A12239 PCIe 2: Port 2 0 Gbit/s

dory:configuration san fc targets> select target-000

dory:configuration san fc targets target-000> show

Properties:

wwn = wwn.2100001B32811639

port = PCIe 5: Port 1

mode = target

speed = 4 Gbit/s

discovered_ports = 6

link_failure_count = 0

loss_of_sync_count = 0

loss_of_signal_count = 0

protocol_error_count = 0

invalid_tx_word_count = 0

invalid_crc_count = 0

Ports:

PORT WWN ALIAS MANUFACTURER

port-000 wwn.2100001B3281A339 longjaw-1 QLogic Corporation

port-001 wwn.2101001B32A1A339 longjaw-2 QLogic Corporation

port-002 wwn.2100001B3281AC39 thicktail-1 QLogic Corporation

port-003 wwn.2101001B32A1AC39 thicktail-2 QLogic Corporation

port-004 wwn.2100001B3281E339 QLogic Corporation

port-005 wwn.2101001B32A1E339 QLogic Corporation

創建 FC 啟動器組

dory:configuration san fc initiators> create

dory:configuration san fc initiators (uncommitted)> set name=lefteye

dory:configuration san fc initiators (uncommitted)>

set initiators=wwn.2101001B32A1AC39,wwn.2100001B3281AC39

dory:configuration san fc initiators (uncommitted)> commit

dory:configuration san fc initiators> list

GROUP NAME

group-001 lefteye

|

+-> INITIATORS

wwn.2101001B32A1AC39

wwn.2100001B3281AC39

將 LUN 與 FC 啟動器組關聯

以下示例演示如何創建名為 lefty 的 LUN,并將其與 fera 啟動器組關聯。

dory:shares default> lun lefty

dory:shares default/lefty (uncommitted)> set volsize=10

volsize = 10 (uncommitted)

dory:shares default/lefty (uncommitted)> set initiatorgroup=fera

initiatorgroup = default (uncommitted)

dory:shares default/lefty (uncommitted)> commit

編寫用于創建啟動器和啟動器組別名的腳本

有關如何修改和使用以下示例腳本的信息,請參閱CLI 用法和簡單 CLI 腳本和批處理命令部分。

script

/*

* This script creates both aliases for initiators and initiator

* groups, as specified by the below data structure. In this

* particular example, there are five initiator groups, each of

* which is associated with a single host (thicktail, longjaw, etc.),

* and each initiator group consists of two initiators, each of which

* is associated with one of the two ports on the FC HBA. (Note that

* there is nothing in the code that uses this data structure that

* assumes the number of initiators per group.)

*/

groups = {

thicktail: {

'thicktail-1': 'wwn.2100001b3281ac39',

'thicktail-2': 'wwn.2101001b32a1ac39'

},

longjaw: {

'longjaw-1': 'wwn.2100001b3281a339',

'longjaw-2': 'wwn.2101001b32a1a339'

},

tecopa: {

'tecopa-1': 'wwn.2100001b3281e339',

'tecopa-2': 'wwn.2101001b32a1e339'

},

spinedace: {

'spinedace-1': 'wwn.2100001b3281df39',

'spinedace-2': 'wwn.2101001b32a1df39'

},

fera: {

'fera-1': 'wwn.2100001b32817939',

'fera-2': 'wwn.2101001b32a17939'

}

};

for (group in groups) {

initiators = [];

for (initiator in groups[group]) {

printf('Adding %s for %s ... ',

groups[group][initiator], initiator);

try {

run('select alias=' + initiator);

printf('(already exists)\n');

run('cd ..');

} catch (err) {

if (err.code != EAKSH_ENTITY_BADSELECT)

throw err;

run('create');

set('alias', initiator);

set('initiator', groups[group][initiator]);

run('commit');

printf('done\n');

}

run('select alias=' + initiator);

initiators.push(get('initiator'));

run('cd ..');

}

printf('Creating group for %s ... ', group);

run('groups');

try {

run('select name=' + group);

printf('(already exists)\n');

run('cd ..');

} catch (err) {

if (err.code != EAKSH_ENTITY_BADSELECT)

throw err;

run('create');

set('name', group);

run('set initiators=' + initiators);

run('commit');

printf('done\n');

}

run('cd ..');

}

總結

以上是生活随笔為你收集整理的fc oracle,使用 CLI 配置 FC的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。