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

将 Brocade FC 交换机重置为出厂默认值

贡献者

在安装新软件版本和 RCF 文件之前,您必须擦除当前交换机配置并执行基本配置。

关于此任务

您必须对 MetroCluster 网络结构配置中的每个 FC 交换机重复这些步骤。

步骤
  1. 以管理员身份登录到交换机。

  2. 禁用 Brocade 虚拟网络结构( VF )功能:

    fosconfig 选项

    FC_switch_A_1:admin> fosconfig --disable vf
    WARNING:  This is a disruptive operation that requires a reboot to take effect.
    Would you like to continue  [Y/N]: y
  3. 断开 ISL 缆线与交换机端口的连接。

  4. 禁用交换机:

    sswitchcfgpersistentdisable

    FC_switch_A_1:admin> switchcfgpersistentdisable
  5. 禁用配置:

    cfgDisable

    FC_switch_A_1:admin> cfgDisable
    You are about to disable zoning configuration. This action will disable any previous zoning configuration enabled.
    Do you want to disable zoning configuration? (yes, y, no, n): [no] y
    Updating flash ...
    Effective configuration is empty. "No  Access" default zone mode is ON.
  6. 清除配置:

    cfgClear

    FC_switch_A_1: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
  7. 保存配置:

    cfgsave

    FC_switch_A_1:admin> cfgSave
    You are about to save the Defined zoning configuration. This
    action will only save the changes on Defined configuration.
    Do you want to save the Defined zoning configuration only?  (yes, y, no, n): [no] y
    Updating flash ...
  8. 设置默认配置:

    configDefault

    FC_switch_A_1:admin> configDefault
    WARNING:  This is a disruptive operation that requires a switch reboot.
    Would you like to continue [Y/N]: y
    Executing configdefault...Please wait
    2020/10/05-08:04:08, [FCR-1069], 1016, FID 128, INFO, FC_switch_A_1, The FC Routing service is enabled.
    2020/10/05-08:04:08, [FCR-1068], 1017, FID 128, INFO, FC_switch_A_1, The FC Routing service is disabled.
    2020/10/05-08:04:08, [FCR-1070], 1018, FID 128, INFO, FC_switch_A_1, The FC Routing configuration is set to default.
    Committing configuration ... done.
    2020/10/05-08:04:12, [MAPS-1113], 1019, FID 128, INFO, FC_switch_A_1, Policy dflt_conservative_policy activated.
    2020/10/05-08:04:12, [MAPS-1145], 1020, FID 128, INFO, FC_switch_A_1, FPI Profile dflt_fpi_profile is activated for E-Ports.
    2020/10/05-08:04:12, [MAPS-1144], 1021, FID 128, INFO, FC_switch_A_1, FPI Profile dflt_fpi_profile is activated for F-Ports.
    The switch has to be rebooted to allow the changes to take effect.
    2020/10/05-08:04:12, [CONF-1031], 1022, FID 128, INFO, FC_switch_A_1, configDefault completed successfully for switch.
  9. 将所有端口的端口配置设置为默认值:

    portcfgdefault port-number

    FC_switch_A_1:admin> portcfgdefault <port number>

    您必须为每个端口完成此步骤。

  10. 验证交换机是否正在使用动态端口按需( Port on Demand , POD )方法。

    备注 对于 8.0 之前的 Brocade Fabric OS 版本,您可以以 admin 身份运行以下命令;对于 8.0 及更高版本,您可以以 root 身份运行这些命令。
    1. 运行 license 命令:

      适用于Fabric OS 8.2.x及更早版本

      运行命令 licenseport --show

      适用于Fabric OS 9.0及更高版本

      运行命令 license --show -port

      FC_switch_A_1:admin> license --show -port
      24 ports are available in this switch
      Full POD license is installed
      Dynamic POD method is in use
    2. 如果 root 用户已被 Brocade 禁用,请启用此用户。

      FC_switch_A_1:admin> userconfig --change root -e yes
      FC_switch_A_1:admin> rootaccess --set consoleonly
    3. 运行 license 命令:

      适用于Fabric OS 8.2.x及更早版本

      运行命令 licenseport --show

      适用于Fabric OS 9.0及更高版本

      运行命令 license --show -port

      FC_switch_A_1:root> license --show -port
      24 ports are available in this switch
      Full POD license is installed
      Dynamic POD method is in use
    4. 如果您运行的是Fabric OS 8.2.x及更早版本、则必须将许可证方法更改为动态:

      licenseport -method dynamic

    FC_switch_A_1:admin> licenseport --method dynamic
    The POD method has been changed to dynamic.
    Please reboot the switch now for this change to take effect

    +

    备注 在Fabric OS 9.0及更高版本中、默认情况下、许可证方法是动态的。不支持静态许可证方法。
  11. 重新启动交换机:

    FASTBOOT

    FC_switch_A_1:admin> fastboot
    Warning: This command would cause the switch to reboot
    and result in traffic disruption.
    Are you sure you want to reboot the switch [y/n]?y
  12. 确认已实施默认设置:

    sswitchshow

  13. 验证是否已正确设置 IP 地址:

    ipAddrShow

    如果需要,可以使用以下命令设置 IP 地址:

    ipAddrSet