JavaScript is required to for searching.
跳过导航链接
退出打印视图
Oracle® ZFS Storage Appliance 管理指南
Oracle 技术网
文档库
PDF
打印视图
反馈
search filter icon
search icon

文档信息

使用本文档

 1 Oracle ZFS Storage Appliance 概述

 2 状态

 3 初始配置

 4 网络配置

 5 存储配置

 6 存储区域网络配置

SAN 目标和启动器

SAN 目标和启动器组

使用 BUI 配置 SAN

使用 CLI 配置 SAN

SAN 术语

SAN 光纤通道

FC 端口目标配置

群集注意事项

FC 启动器配置

群集注意事项

性能注意事项

FC 故障排除

FC 队列溢出

FC 链路级别问题

使用 BUI 配置 FC

更改 FC 端口的模式

查看搜索到的 FC 端口

创建 FC 启动器组

将 LUN 与 FC 启动器组关联

使用 CLI 配置 FC

更改 FC 端口的模式

查看搜索到的 FC 端口

创建 FC 启动器组

将 LUN 与 FC 启动器组关联

编写用于创建启动器和启动器组别名的脚本

iSCSI

目标配置

群集注意事项

启动器配置

规划客户机配置

iSCSI 故障排除

监测 iSCSI 性能

使用 BUI 配置 iSCSI

创建 Analytics 工作表

iSER 目标配置

使用 CLI 配置 iSCSI

使用自动生成的 IQN 添加 iSCSI 目标

添加使用特定 IQN 和 RADIUS 验证的 iSCSI 目标

添加使用 CHAP 验证的 iSCSI 启动器

添加 iSCSI 目标组

添加 iSCSI 启动器组

SRP

SRP 目标配置

群集注意事项

启动器配置

监测 SRP 性能

使用 BUI 配置 SRP 目标

SRP 目标配置

使用 CLI 配置 SRP 目标

 7 用户配置

 8 设置 ZFSSA 首选项

 9 警报配置

 10 群集配置

 11 ZFSSA 服务

 12 共享资源、项目和模式

 13 复制

 14 影子迁移

 15 CLI 脚本化

 16 维护工作流

 17 集成

索引

使用 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  <none>             QLogic Corporation
port-005  wwn.2101001B32A1E339  <none>             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 ..');
       }