Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

在 node3 上设置 FC 或 UTA/UTA2 配置

贡献者

如果 node3 具有板载 FC 端口,板载统一目标适配器( UTA/UTA2 )端口或 UTA/UTA2 卡,则必须先配置这些设置,然后才能完成其余操作步骤。

关于此任务

您可能需要完成此部分 在 node3 上配置 FC 端口,部分 检查并配置 node3 上的 UTA/UTA2 端口或这两个部分。

备注 NetApp 营销材料可能会使用术语 UTA2 来指代融合网络适配器( CNA )适配器和端口。但是,命令行界面使用术语 CNA 。
  • 如果 node3 没有板载 FC 端口,板载 UTA/UTA2 端口或 UTA/UTA2 卡,并且您要升级具有存储磁盘的系统,则可以跳至 "将端口从 node1 映射到 node3" 部分。

  • 但是,如果您使用的是 V 系列系统或安装了 FlexArray 虚拟化软件和存储阵列的系统,并且 node3 没有板载 FC 端口,板载 UTA/UTA 端口或 UTA/UTA2 卡,请返回到 Install and boot node3 部分并继续执行 "第 23 步"

在 node3 上配置 FC 端口

如果 node3 具有板载或 FC 适配器上的 FC 端口,则必须先在节点上设置端口配置,然后再将其投入使用,因为这些端口未经过预配置。如果未配置端口,则可能会发生服务中断。

开始之前

您必须具有在部分中保存的 node1 中的 FC 端口设置值 "准备要升级的节点"

关于此任务

如果您的系统没有 FC 配置,则可以跳过此部分。如果您的系统具有板载 UTA/UTA2 端口或 UTA/UTA2 卡,则可以在中对其进行配置 检查并配置 node3 上的 UTA/UTA2 端口

重要说明 如果您的系统具有存储磁盘、请在集群提示符处输入本节中的命令。如果您使用的是 V 系列系统或 FlexArray 虚拟化软件并连接到存储阵列,请在维护模式下在此部分中输入命令。
  1. 【第 1 步】将 node3 上的 FC 设置与先前从 node1 中捕获的设置进行比较。

  2. 【第 2 步】执行以下操作之一:

    如果要升级的系统 …​ 然后选择…

    具有存储磁盘

    在维护模式(启动菜单中的选项 5 )下,根据需要修改 node3 上的 FC 端口:

    • 要对目标端口进行编程:

    ucadmin modify -m fc -t target adapter

    • 要对启动程序端口进行编程:

    ucadmin modify -m fc -t initiator adapter

    ` -t` 是 FC4 类型: target 或 initiator 。

    是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

    在维护模式(启动菜单中的选项 5 )下,根据需要修改 node3 上的 FC 端口:

    ucadmin modify -m fc -t initiator -f adapter_port_name

    -t 是FC4类型、目标或启动程序。

    备注 FC端口必须编程为启动程序。
  3. 【第 3 步】执行以下操作之一:

    如果要升级的系统 …​ 然后选择…

    具有存储磁盘

    使用以下命令并检查输出,以验证新设置: ucadmin show

    是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

    使用以下命令并检查输出,以验证新设置: ucadmin show

  4. 【第 4 步】退出维护模式:

    halt

  5. 从 LOADER 提示符启动系统:

    boot_ontap 菜单

  6. 【第 6 步】输入命令后,请等待系统在启动环境提示符处停止。

  7. 从维护模式的启动菜单中选择选项 5

  8. 【 auto_check3_step8]] 执行以下操作之一:

    如果要升级的系统 …​ 然后选择…

    具有存储磁盘

    是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

检查并配置 node3 上的 UTA/UTA2 端口

如果 node3 具有板载 UTA/UTA2 端口或 UTA/UTA2 卡,则必须检查这些端口的配置,并可能对其进行重新配置,具体取决于您希望如何使用升级后的系统。

开始之前

您必须为 UTA/UTA2 端口配备正确的 SFP+ 模块。

关于此任务

如果要对 FC 使用统一目标适配器( UTA/UTA2 )端口,则必须先验证此端口的配置方式。

备注 NetApp 营销材料可能会使用术语 UTA2 来指代 CNA 适配器和端口。但是,命令行界面使用术语 CNA 。

您可以使用 ucadmin show 命令验证当前端口配置:

*> ucadmin show
         Current  Current    Pending   Pending      Admin
Adapter  Mode     Type       Mode      Type         Status
-------  -------  -------    --------  ----------   --------
0e      fc        target     -         initiator    offline
0f      fc        target     -         initiator    offline
0g      fc        target     -         initiator    offline
0h      fc        target     -         initiator    offline
1a      fc        target     -         -            online
1b      fc        target     -         -            online
6 entries were displayed.

UTA/UTA2 端口可以配置为原生 FC 模式或 UTA/UTA2 模式。FC 模式支持 FC 启动程序和 FC 目标; UTA/UTA2 模式允许并发 NIC 和 FCoE 流量共享相同的 10GbE SFP+ 接口并支持 FC 目标。

UTA/UTA2 端口可能位于适配器或控制器上,并且具有以下配置,但您应检查 node3 上的 UTA/UTA2 端口的配置,并根据需要进行更改:

  • 订购控制器时订购的 UTA/UTA2 卡会在发货前配置为具有您请求的个性化设置。

  • 与控制器分开订购的 UTA/UTA2 卡附带了默认的 FC 目标特性。

  • 新控制器上的板载 UTA/UTA2 端口会在发货前配置为具有您请求的个性化设置。

    警告 * 注意 * :如果您的系统具有存储磁盘,除非指示您进入维护模式,否则您可以在集群提示符处输入本节中的命令。如果您使用的是 V 系列系统或 FlexArray 虚拟化软件并连接到存储阵列,则可以在维护模式提示符处在此部分中输入命令。要配置 UTA/UTA2 端口,您必须处于维护模式。
步骤
  1. 【第 1 步】在 node3 上输入以下命令,以检查端口当前的配置方式:

    如果系统 …​ 然后选择…

    具有存储磁盘

    无需执行任何操作。

    是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

    ucadmin show

    系统将显示类似于以下示例的输出:

    *> ucadmin show
             Current  Current     Pending   Pending    Admin
    Adapter  Mode     Type        Mode      Type       Status
    -------  -------  ---------   -------   --------   ---------
    0e      fc        initiator   -         -          online
    0f      fc        initiator   -         -          online
    0g      cna       target      -         -          online
    0h      cna       target      -         -          online
    0e      fc        initiator   -         -          online
    0f      fc        initiator   -         -          online
    0g      cna       target      -         -          online
    0h      cna       target      -         -          online
    *>
  2. 【第 2 步】如果当前 SFP+ 模块与所需用途不匹配,请将其更换为正确的 SFP+ 模块。

    请联系您的 NetApp 代表以获取正确的 SFP+ 模块。

  3. 步骤 3]] 查看 ucadmin show 命令的输出,并确定 UTA/UTA2 端口是否具有所需的个性化设置。

  4. 【第 4 步】执行以下操作之一:

    如果 UTA/UTA2 端口 …​ 然后选择…

    没有所需的个性化设置

    转至 第 5 步

    拥有所需的个性化特性

    跳过步骤 5 到步骤 12 ,然后转到 第 13 步

  5. 【 auto_check3_step5]] 执行以下操作之一:

    如果要配置 然后选择…

    UTA/UTA2 卡上的端口

    转至 第 7 步

    板载 UTA/UTA2 端口

    跳过第 7 步,转到 第 8 步

  6. 【第 6 步】如果适配器处于启动程序模式,并且 UTA/UTA2 端口处于联机状态,请使 UTA/UTA2 端口脱机:

    storage disable adapter adapter_name

    目标模式下的适配器会在维护模式下自动脱机。

  7. 【 auto_check3_step7]] 如果当前配置与所需用途不匹配,请根据需要更改配置:

    ucadmin modify -m fc|cna -t initiators|target adapter_name

    • ` -m` 是特性模式, fcCNA

    • ` -t` 是 FC4 类型, targetinitiator

      备注 您必须对磁带驱动器, FlexArray 虚拟化系统和 MetroCluster 配置使用 FC 启动程序。您必须对 SAN 客户端使用 FC 目标。
  8. 【 auto_check3_step8]] 验证设置:

    ucadmin show

  9. 【第 9 步】验证设置:

    如果系统 …​ 然后选择…

    具有存储磁盘

    ucadmin show

    是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

    ucadmin show

    以下示例中的输出显示, FC4 类型的适配器 "1b" 更改为 initiator ,适配器 "2a" 和 "2b" 的模式更改为 CNA

    *> ucadmin show
             Current    Current     Pending  Pending     Admin
    Adapter  Mode       Type        Mode     Type        Status
    -------  --------   ----------  -------  --------    --------
    1a       fc         initiator   -        -           online
    1b       fc         target      -        initiator   online
    2a       fc         target      cna      -           online
    2b       fc         target      cna      -           online
    *>
  10. 【第 10 步】输入以下命令之一,使所有目标端口联机,每个端口输入一次:

    如果系统 …​ 然后选择…

    具有存储磁盘

    network fcp adapter modify -node node_name-adapter adapter_name-state up

    是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

    FCP config adapter_name up

  11. 【第 11 步】为端口布线。

  12. 执行以下操作之一:

如果系统 …​ 那么 …​

具有存储磁盘

转至 "将端口从 node1 映射到 node3"

是 V 系列系统或具有 FlexArray 虚拟化软件并连接到存储阵列

返回到 Install and boot node3 并继续中的部分 "第 23 步"

  1. 【 auto_check3_step13]] 退出维护模式:

    halt

  2. 【第 14 步】运行 boot_ontap menu 将节点启动到启动菜单。如果要升级到 A800 ,请转至 第 23 步

  3. 在 node3 上,转到启动菜单并使用 22/7 并选择隐藏选项 boot_after_controller_replacement 。在提示符处,输入 node1 将 node1 的磁盘重新分配给 node3 ,如下例所示。

    展开控制台输出示例
    LOADER-A> boot_ontap menu
    ...
    *******************************
    *                             *
    * Press Ctrl-C for Boot Menu. *
    *                             *
    *******************************
    .
    .
    Please choose one of the following:
    (1) Normal Boot.
    (2) Boot without /etc/rc.
    (3) Change password.
    (4) Clean configuration and initialize all disks.
    (5) Maintenance mode boot.
    (6) Update flash from backup config.
    (7) Install new software first.
    (8) Reboot node.
    (9) Configure Advanced Drive Partitioning.
    Selection (1-9)? 22/7
    .
    .
    (boot_after_controller_replacement)   Boot after controller upgrade
    (9a)                                  Unpartition all disks and remove their ownership information.
    (9b)                                  Clean configuration and initialize node with partitioned disks.
    (9c)                                  Clean configuration and initialize node with whole disks.
    (9d)                                  Reboot the node.
    (9e)                                  Return to main boot menu.
    
    Please choose one of the following:
    
    (1) Normal Boot.
    (2) Boot without /etc/rc.
    (3) Change password.
    (4) Clean configuration and initialize all disks.
    (5) Maintenance mode boot.
    (6) Update flash from backup config.
    (7) Install new software first.
    (8) Reboot node.
    (9) Configure Advanced Drive Partitioning.
    Selection (1-9)? boot_after_controller_replacement
    .
    This will replace all flash-based configuration with the last backup to
    disks. Are you sure you want to continue?: yes
    .
    .
    Controller Replacement: Provide name of the node you would like to replace: <name of the node being replaced>
    .
    .
    Changing sysid of node <node being replaced> disks.
    Fetched sanown old_owner_sysid = 536953334 and calculated old sys id = 536953334
    Partner sysid = 4294967295, owner sysid = 536953334
    .
    .
    .
    Terminated
    <node reboots>
    .
    .
    System rebooting...
    .
    Restoring env file from boot media...
    copy_env_file:scenario = head upgrade
    Successfully restored env file from boot media...
    .
    .
    System rebooting...
    .
    .
    .
    WARNING: System ID mismatch. This usually occurs when replacing a boot device or NVRAM cards!
    Override system ID? {y|n} y
    Login:
    ...
  4. 如果系统进入重新启动循环并显示消息 no disks found ,这是因为它已将端口重置回目标模式,因此无法看到任何磁盘。继续 第 17 步 to 第 22 步 以解决此问题。

  5. 在自动启动期间按 Ctrl-CLOADER> 提示符处停止节点。

  6. 在 LOADER 提示符处,进入维护模式:

    boot_ontap maint

  7. 在维护模式下,显示先前设置的所有启动程序端口,这些端口现在均处于目标模式:

    ucadmin show

    将端口改回启动程序模式:

    ucadmin modify -m fc -t initiator -f adapter name

  8. 【第 20 步】验证端口是否已更改为启动程序模式:

    ucadmin show

  9. 【第 21 步】退出维护模式:

    halt

    备注

    如果要从支持外部磁盘的系统升级到也支持外部磁盘的系统、请转至 第 22 步

    如果要从支持外部磁盘的系统升级到同时支持内部和外部磁盘的系统、例如AFF A800系统、请转至 第 23 步

  10. 在LOADER提示符处、启动:

    boot_ontap 菜单

    现在,在启动时,节点可以检测到先前分配给它的所有磁盘,并可按预期启动。

    如果要替换的集群节点使用根卷加密、则ONTAP 软件将无法从磁盘读取卷信息。还原根卷的密钥:

    1. 返回到特殊的启动菜单:
      LOADER> boot_ontap menu

      Please choose one of the following:
      (1) Normal Boot.
      (2) Boot without /etc/rc.
      (3) Change password.
      (4) Clean configuration and initialize all disks.
      (5) Maintenance mode boot.
      (6) Update flash from backup config.
      (7) Install new software first.
      (8) Reboot node.
      (9) Configure Advanced Drive Partitioning.
      (10) Set Onboard Key Manager recovery secrets.
      (11) Configure node for external key management.
      
      Selection (1-11)? 10
    2. 选择*(10)设置板载密钥管理器恢复密钥*

    3. 输入 …​ y 在以下提示符处:

      This option must be used only in disaster recovery procedures. Are you sure? (y or n): y

    4. 在提示符处、输入密钥管理器密码短语。

    5. 出现提示时、输入备份数据。

      备注 您必须已在中获取密码短语和备份数据 "准备要升级的节点" section of this procedure.
    6. 系统重新启动到特殊启动菜单后、运行选项*(1) Normal Boot*

      备注 您可能会在此阶段遇到错误。如果发生错误、请重复中的子步骤 第 22 步 直到系统正常启动。
  11. 【 { auto_check3_step23]] 如果要从具有外部磁盘的系统升级到支持内部和外部磁盘的系统(例如, AFF A800 系统),请将 node1 聚合设置为根聚合,以确认 node3 从 node1 的根聚合启动。要设置根聚合,请转到启动菜单并选择选项 5 以进入维护模式。

    注意 * 您必须按所示的确切顺序执行以下子步骤;否则可能发生原因会导致中断甚至数据丢失。 *

    以下操作步骤会将 node3 设置为从 node1 的根聚合启动:

    1. 进入维护模式。

      boot_ontap maint

    2. 检查 node1 聚合的 RAID ,丛和校验和信息:

      aggr status -r

    3. 检查 node1 聚合的状态:

      聚合状态

    4. 如有必要,将 node1 聚合置于联机状态:

      aggr_online root_aggr_from__node1_

    5. 阻止 node3 从其原始根聚合启动:

      aggr offline root_aggr_on_node3

    6. 将 node1 根聚合设置为 node3 的新根聚合:

      aggr options aggr_from__node1_ root

    7. 验证 node3 的根聚合是否脱机,从 node1 接管的磁盘的根聚合是否联机并设置为 root :

      聚合状态

      备注 如果不执行上一个子步骤,发生原因 node3 可能会从内部根聚合启动,或者它可能会发生原因系统以假定存在新的集群配置或提示您确定一个集群配置。

      下面显示了命令输出的示例:

     -----------------------------------------------------------------
     Aggr                 State    Status             Options
    
     aggr0_nst_fas8080_15 online   raid_dp, aggr      root, nosnap=on
                                   fast zeroed
                                   64-bit
    
     aggr0                offline  raid_dp, aggr      diskroot
                                   fast zeroed
                                   64-bit
     -----------------------------------------------------------------