PowerEdge:如何使用 iDRAC CLI 使物理磁盘脱机

Summary: 可以使用命令行界面 (CLI) 命令将磁盘标记为脱机。如果未安装 OMSA 来更换预测性故障磁盘,则不需要重新启动服务器。

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

前提条件

  • 对于 12G 或 13G 系统,iDRAC 版本应为 2.60.60.60 或更高版本。
  • 对于第 14 代系统及更高版本,iDRAC 版本应为 3.30.30.30 或更高版本。

流程

  1. 通过 SSH 登录 iDRAC 以运行 racadm 命令。
  2. 通过运行以下命令,获取系统中可用的磁盘:
racadm storage get pdisks

racadm storage get pdisks 命令的输出

  1. 运行 以下命令以 将磁盘标记为离线: 
racadm storage forceoffline:<PD FQDD>

racadm storage forceoffline 命令的输出

  1. 您必须使用 –realtime 选项,以便 forceoffline 命令以生效。为此,请使用以下命令获取系统中可用的控制器: 
racadm storage get controllers

racadm storage get controllers 命令的输出

  1. 针对磁盘关联的控制器运行以下命令: 
racadm jobqueue create <controller instance ID> -s TIME_NOW  --realtime

racadm jobqueue create 命令的输出

  1. 执行以下命令,查询作业状态。
racadm jobqueue view -i JID_xxxxxxxx

其中 JID_xxxxxxxx 是步骤 2 中的作业 ID。

状态显示为 Pending。继续查询作业 ID,直到您看到 Completed状态(此过程最多可能需要三分钟)。

Affected Products

PowerEdge R230, PowerEdge R240, PowerEdge R330, PowerEdge R340, PowerEdge R430, PowerEdge R440, PowerEdge R530, PowerEdge R530xd, PowerEdge R540
Article Properties
Article Number: 000202557
Article Type: How To
Last Modified: 14 Apr 2025
Version:  7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.