Table of ContentsLibraryView in Frames

Removing a data disk

How you remove a data disk depends on whether you need to remove the disk immediately, or whether you can pre-fail the disk, which allows Data ONTAP to copy the disk before you remove it so the RAID group does not have to go into degraded mode.

Before You Begin

Before you remove a data disk for use in another storage system, make sure that the aggregate to which it belonged is destroyed.

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 following the word Disk.

  2. Determine the location of the disk you want to remove by entering the following command: aggr status -r

    The location of the disk appears to the right of its name, in the columns HA, SHELF, and BAY.

  3. If the storage system is using software-based disk ownership, remove the software ownership information from the disk by entering the following commands in the specified order:priv set advanced disk remove_ownership disk_namepriv set
  4. If you do not need to remove the disk immediately, enter the following command to pre-fail the disk:disk fail -F disk_name

    Attention: You must wait for the disk copy to complete before physically removing the disk.

    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.
    Note: This copy might take several hours, depending on the size of the disk and the load on the storage system.
    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.

  5. If you need to remove the disk immediately, enter the following command:disk fail -iF disk_name

    -I fails the disk immediately.

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

  6. Remove the failed disk from the disk shelf, following the instructions in the hardware guide for your disk shelf model.
The disk you removed is available for use in another storage system, provided it was not removed due to any hardware problems.
Note: The disk has not been zeroed. If the disk is later reconstructed to replace a failed disk, the fact that it has not been zeroed will have negligible effect. However, if it is used to create a new aggregate, the aggr create command will take significantly longer while the disk is zeroed. To avoid this delay, you can pre-zero the disk using the disk zero spares command.