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 或更新版本。
- 若為 14G 系統及更新版本,iDRAC 版本應為 3.30.30.30 或更新版本。
程序
- SSH 進入 iDRAC 以執行 racadm 命令。
- 執行下列命令,取得系統中可用的磁碟:
racadm storage get pdisks

- 執行 下列命令以 將磁碟標記為離線:
racadm storage forceoffline:<PD FQDD>

- 您必須使用下列方法 執行 組態工作:
–realtime選項的順序forceoffline命令生效。為此,請使用下列命令取得系統中可用的控制器:
racadm storage get controllers

- 針對磁碟相關聯的控制器執行下列命令:
racadm jobqueue create <controller instance ID> -s TIME_NOW --realtime

- 執行以下命令查詢工作狀態:
racadm jobqueue view -i JID_xxxxxxxx
其中 JID_xxxxxxxx 是步驟 2 的工作 ID。
狀態會顯示為 擱置中。繼續查詢作業 ID,直到看到 “已完成”狀態(此過程最多可能需要三分鐘)。
Affected Products
PowerEdge R230, PowerEdge R240, PowerEdge R330, PowerEdge R340, PowerEdge R430, PowerEdge R440, PowerEdge R530, PowerEdge R530xd, PowerEdge R540Article 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.