Work with an impaired Amazon EBS volume - Amazon EBS
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Work with an impaired Amazon EBS volume

Use the following options if a volume is impaired because the volume's data is potentially inconsistent.

Option 1: Perform a consistency check on the volume attached to its instance

The simplest option is to enable I/O and then perform a data consistency check on the volume while the volume is still attached to its Amazon EC2 instance.

To perform a consistency check on an attached volume
  1. Stop any applications from using the volume.

  2. Enable I/O on the volume. Use one of the following methods.

    Console
    To enable I/O for a volume
    1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

    2. In the navigation pane, choose Events.

    3. Select the volume.

    4. Choose Actions, Enable I/O.

    Amazon CLI
    To enable I/O for a volume

    Use the enable-volume-io command.

    aws ec2 enable-volume-io --volume-id vol-01234567890abcdef
    PowerShell
    To enable I/O for a volume

    Use the Enable-EC2VolumeIO cmdlet.

    Enable-EC2VolumeIO -VolumeId vol-01234567890abcdef
  3. Check the data on the volume.

    1. Run the fsck (Linux instances) or chkdsk (Windows instances) command.

    2. (Optional) Review any available application or system logs for relevant error messages.

    3. If the volume has been impaired for more than 20 minutes, you can contact the Amazon Support Center. Choose Troubleshoot, and then in the Troubleshoot Status Checks dialog box, choose Contact Support to submit a support case.

Option 2: Perform a consistency check on the volume using another instance

Use the following procedure to check the volume outside your production environment.

Important

This procedure may cause the loss of write I/Os that were suspended when volume I/O was disabled.

To perform a consistency check on a volume in isolation
  1. Stop any applications from using the volume.

  2. Detach the volume from the instance. For more information, see Detach an Amazon EBS volume from an Amazon EC2 instance.

  3. Enable I/O on the volume. Use one of the following methods.

    Console
    To enable I/O for a volume
    1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

    2. In the navigation pane, choose Events.

    3. Select the volume that you detached in the previous step.

    4. Choose Actions, Enable I/O.

    Amazon CLI
    To enable I/O for a volume

    Use the enable-volume-io command.

    aws ec2 enable-volume-io --volume-id vol-01234567890abcdef
    PowerShell
    To enable I/O for a volume

    Use the Enable-EC2VolumeIO cmdlet.

    Enable-EC2VolumeIO -VolumeId vol-01234567890abcdef
  4. Attach the volume to another instance. For more information, see Launch your instance and Attach an Amazon EBS volume to an Amazon EC2 instance.

  5. Check the data on the volume.

    1. Run the fsck (Linux instances) or chkdsk (Windows instances) command.

    2. (Optional) Review any available application or system logs for relevant error messages.

    3. If the volume has been impaired for more than 20 minutes, you can contact the Amazon Support Center. Choose Troubleshoot, and then in the troubleshooting dialog box, choose Contact Support to submit a support case.

Option 3: Delete the volume if you no longer need it

If you want to remove the volume from your environment, simply delete it. For information about deleting a volume, see Delete an Amazon EBS volume.

If you have a recent snapshot that backs up the data on the volume, you can create a new volume from the snapshot. For more information, see Create an Amazon EBS volume.