Table of ContentsView in Frames

Removing a data disk

The only time that you should remove a data disk from a storage system is if the disk is not functioning correctly. If you want to remove a data disk so that it can be used in another system, you must convert it to a hot spare disk first.

About this task

You can cause Data ONTAP to fail the disk immediately or allow a disk copy to finish before the disk is failed. If you do not fail the disk immediately, you must wait for the disk copy to finish before physically removing the disk. This operation might take several hours, depending on the size of the disk and the load on the storage system.

Do not immediately fail a disk unless it is causing immediate performance or availability issues for your storage system. Depending on your storage system configuration, additional disk failures could result in data loss.

Steps

  1. Determine the name of the disk you want to remove.
    If the disk is reporting errors, you can find the disk name in the log messages that report disk errors. The name is prefixed with the word "Disk".
  2. Determine the physical location of the disk you want to remove by entering the following command: storage disk set-led -disk disk_name 2
    The red LED on the face of the disk is lit for 2 minutes.
  3. Take the appropriate action based on whether you need to fail the disk immediately.
    If you... Then...
    Can wait for the copy operation to finish (recommended) Enter the following command to pre-fail the disk: storage disk fail disk_name

    Data ONTAP pre-fails the specified disk and attempts to create a replacement disk by copying the contents of the pre-failed disk to a spare disk.

    If the copy operation is successful, then Data ONTAP fails the disk and the new replacement disk takes its place. If the copy operation fails, the pre-failed disk fails and the storage system operates in degraded mode until the RAID system reconstructs a replacement disk.

    Need to remove the disk immediately Enter the following command to cause the disk to fail immediately: storage disk fail -disk disk_name -immediate

    The disk fails and the storage system operates in degraded mode until the RAID system reconstructs a replacement disk.

  4. Ensure that the disk you want to remove is shown as failed by entering the following command, and looking for its disk name:storage disk show -broken
    Do not remove the disk until its name appears in the list of failed disks.
  5. Remove the failed disk from the disk shelf, following the instructions in the hardware guide for your disk shelf model.