PowerStore:如何使节点进入和退出服务模式

Summary: 本文介绍如何在 PowerStore 节点上进入和退出服务模式,以及如何验证 PowerStore 节点是否处于服务模式。 服务模式是 PowerStore 节点可以置于其状态,以允许进行维护活动。将节点置于服务模式需要重新启动,并且在启动时进入服务模式。当置于服务模式时,节点不会向客户端提供数据。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

 

注意:将节点置于服务模式会阻止该节点提供数据服务。将两个节点都置于服务模式会导致所有数据访问不可用。

验证是否在管理控制台上启用了 SSH:

  1. 在管理控制台上,转至左侧面板上的设置 > SSH 管理
  2. 选中 Appliance旁边的复选框,单击 Enable SSH 按钮
    • 要禁用 SSH 访问,请按照上述相同步骤操作,然后单击 “禁用 SSH” 按钮。

使用 SSH 连接。

  1. 使用群集或节点管理 IP 地址,通过任何 SSH 终端连接到设备
    • 要在管理控制台上获取 IP 地址,请转至设置 > 网络 IP管理 > 选项卡

使用 Putty 的 SSH 连接示例

 

PUTTY 屏幕shot.png

 

登录您的服务帐户。

  1. 使用用户名:服务和密码
    • 要从管理控制台创建或重置服务帐户密码,请转至设置 >服务帐户>键入新服务密码上的密码验证>新服务密码

 

使用 PuTTY 的 SSH 登录示例

 

SSH 会话login.png

 

如何检查节点是否处于服务模式。

 

  1. 在节点上,输入命令: 
    # svc_rescue_state list
    
     

 

 正常模式下的节点示例 

[SVC:service@XXXXXX-B user]$ svc_rescue_state list
Current Base OS status is Normal Mode, rc = 1.
Bootcount indicates the number of boots since the last successful boot.
current bootcount = 0, threshold is 3

 

提醒:bootcount = 0,节点处于 正常模式。如果启动计数等于 4 或更高,则在节点重新启动后应处于服务模式。

 

重新启动后处于服务模式的节点示例

[SVC:service@XXXXXX-B user]$ svc_rescue_state list
Current CoreOS status is Service Mode, rc = 0.
current bootcount = 4
UI requested Service Mode

*** WARNING *** This Node is currently in Service Mode WARNING

 

如何使节点进入服务模式。

 

  1. 在节点上,输入命令: 
    svc_rescue_state set

     

  2. 要检查 bootcount = 4 或更高,请运行命令:
    # svc_rescue_state list

     

  3. 要完成此过程,请重新启动本地节点,输入命令: 
    # svc_node reboot local
    

     

    • 或者,也可以运行以下命令: 

 

    • 如果节点未在 15 分钟后重新启动,则可以使用 --force 选项。除非必须,否则不应使用 force 选项。在节点未就绪时强制重新启动可能会导致不可预知的结果: 
      # svc_node reboot local --force
      

       

    • 如果必须重新启动对等节点,请输入以下命令: 
      # svc_node reboot peer
      
       
    • 要在节点之间导航,请使用以下命令: 
      # svc_ssh_peer
      

 

要检查节点是否处于服务模式,请按照如何检查节点是否处于服务模式中的 步骤操作,并查找输出: 

*** WARNING *** This Node is currently in Service Mode WARNING

 

如何将节点从服务模式变为正常模式。

 

  1. 在处于服务模式的节点上,输入命令: 
    # svc_rescue_state clear
    

     

    • 命令输出应报告 bootcount = 0
  2. 要完成此过程,请重新启动节点,输入命令: 
    # svc_node reboot local

     

      • 或者,可以使用 --force 选项重新启动节点,或使用前面提到的命令从对等节点重新启动节点。

处于正常模式的节点示例:输出显示状态为Normal Mode, 并且 bootcount = 0

 

[SVC:service@XXXXXX-B user]$ svc_rescue_state list
Current Base OS status is Normal Mode, rc = 1.
Bootcount indicates the number of boots since the last successful boot.
current bootcount = 0, threshold is 3

 

 

Affected Products

PowerStore
Article Properties
Article Number: 000240713
Article Type: How To
Last Modified: 07 Nov 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.