PowerEdge: How to take a Physical Disk Offline using iDRAC CLI 


https://www.dell.com/support/kbdoc/en-us/000202557/kb-how-to-take-physical-disk-offline-using-idrac-racadm


            

Prerequisites

  
  • For 12G or 13G system, the iDRAC version should be at 2.60.60.60 or later.
  • For 14G systems and forward, the iDRAC version should be at 3.30.30.30 or later.
  

Procedure

  
  1. SSH into iDRAC to run the racadm commands.
  2. Get the disks available in the system by running the following command:
  
racadm storage get pdisks
  

output of racadm storage get pdisks command

  
  1. Run the following command to mark a disk offline
  
racadm storage forceoffline:<PD FQDD>
  

output of racadm storage forceoffline command

  
  1. You must run a configuration job using –realtime option in order for the forceoffline command to take effect. For that, get the controllers available in the system using the following command: 
  
racadm storage get controllers
  

output of racadm storage get controllers command

  
  1. Run the following command against the controller that the disk is associated to: 
  
racadm jobqueue create <controller instance ID> -s TIME_NOW  --realtime
  

output of racadm jobqueue create command

  
  1. Run the following command to query the job status:
  
racadm jobqueue view -i JID_xxxxxxxx
  

Where JID_xxxxxxxx is the job ID from step 2.

  

The status is displayed as Pending. Continue to query the job ID until you see Completed as the status (this process may take up to three minutes).