跳转到主内容

如何正常关闭和启动集群中的所有 ONTAP 节点

Views:
698
Visibility:
Public
Votes:
1
Category:
ontap-9
Specialty:
hw
Last Updated:

适用场景

  • ONTAP 9
  • AFF 系统
  • FAS 系统
  • 不包括MetroCluster配置

问题描述

一些事件可能需要正常关闭ONTAP设备、例如:

  • 计划内站点断电
  • 数据中心范围内的维护
  • 物理系统移动
  • 准备将来重新利用设备
要求
关机前
(最佳实践)
确定硬件组件

ONTAP系统由以下一个或多个组件组成。请使用以下链接获取有用的详细信息和图片、以帮助现场人员查找和识别设备。

操作步骤

警告

此操作步骤将关闭集群中的所有节点、在系统重新启动之前、无法访问集群上的数据。

ONTAP关闭过程
  1. 通过 SSH登录到集群。否则、请使用 本地控制台缆线从集群中的任何节点登录
  2. 如何在计划维护时段解决指南中禁止自动创建案例 为关闭事件的预期持续时间生成案例禁止AutoSupport消息以及任何描述性文本:

cluster1::>system node autosupport invoke -node * -type all -message "MAINT=8h Power Maintenance"

  1. 确定所有节点的SP/BMC IP地址:

cluster1::>system service-processor show -node * -fields address

node           address
-------------- ------------
cluster1-01    10.10.10.10
cluster1-02    10.10.10.20
cluster1-03    10.10.10.30
cluster1-04    10.10.10.40

  1. 退出"体内shell:

cluster1::>exit

  1. [3] 使用步骤3中任一节点的IP地址通过SSH连接到SP/BMC。否则、请将 本地控制台缆线连接 到此节点。  使用相同的集群管理员凭据登录。 

如果通过SP/BMC提示符进行访问、请切换到 system console 并提供集群管理员凭据:

login as: admin
admin@10.10.10.10's password: <password>
SP cluster1-01>system console
Type Ctrl-D to exit.
SP-login: admin
Password: <password>
cluster1::>​​​​

注意: 打开每个SP/BMC的SSH会话窗口、以便按照本步骤所述进行监控。

  1. 暂停集群中的所有节点:

对于大多数集群配置:

cluster1::>system node halt -node * -skip-lif-migration-before-shutdown true -ignore-quorum-warnings true -inhibit-takeover true

对于 在StrictSync 模式下运行SnapMirror同步的集群

cluster1::>system node halt -node * -skip-lif-migration-before-shutdown true -ignore-quorum-warnings true -inhibit-takeover true -ignore-strict-sync-warnings true

  1. 对每个节点的提示符做出响应:

Warning: Are you sure you want to halt node "cluster1-01"?
{y|n}: y

Warning: Are you sure you want to halt node "cluster1-02"?
{y|n}: y

Warning: Are you sure you want to halt node "cluster1-03"?
{y|n}: y

Warning: Are you sure you want to halt node "cluster1-04"?
{y|n}: y

4 entries were acted on.

  1. 进入加载程序 提示符,等待每个节点完全暂停

loader-A>

  1. 通过 SP/BMC (如果尚未连接)或使用 本地控制台缆线连接到集群中的每个节点 、并确认每个节点都位于 加载程序提示符处(如步骤8中所示)。
关闭电源活动

警告

在 How to perform graceful shutdown and power up of all ONTAP nodes in a cluster#ONTAP_Shutdown_Process 完成完全ONTAP关闭过程之前、请勿继续操作。

 

本地关闭电源(首选)

此处的物理活动可确保系统断电时不会发生设备损坏、并确保遵循正确的设备启动顺序、以便ONTAP系统准备好在事件完成后提供数据。

  1. 每台设备上的每个PSU摇臂开关切换到关闭位置。

:某些PSU没有摇臂开关。

  1. 拔下将每个PSU连接到PDU的电源线。
  2. 目视确认每个组件均已成功关闭电源。
  3. 确保与集群关联的所有控制器、磁盘架和交换机均已关闭。
远程关闭电源
  1. [4] 通过SSH连接到SP/BMC。
  2. 确认节点已 到达 加载程序 提示符
  3. 远程关闭节点。

SP/BMC>system power off

  1. 确认关闭。  警告“这将发生原因a dirty shutdown of your Appliance (这将导致设备异常关闭)”。 只有在完全关闭且节点位于加载程序提示符处后才能忽略此问题, 任何其他使用均可发生原因丢失数据

This will cause a dirty shutdown of your appliance. Continue? [y/n] y

  1. 确认电源显示为OFF:

SP/BMC>system power status

Chassis Power is off

在某些型号上运行命令" system power status "时、可能会返回" Host Power is off "、而不是"Chassis Power is off"

  1. 对要关闭的其他节点重复上述步骤。

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.