| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Describes the status of one or more volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume's underlying host. If the volume's underlying host experiences a power outage or system issue, once the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume action notifies you if any action needs to be taken in response to the event.
The DescribeVolumeStatus operation provides the following information
about the specified volumes:
Status: Reflects the current status of the volume. The
possible values are ok, impaired , or
insufficient-data. If all checks pass, the overall status of the
volume is ok. If the check fails, the overall status is
impaired. If the status is insufficient-data, then the
checks may still be taking place on your volume at the time. We recommend you retry
the request. For more information on volume status, see Monitoring the Status of Your
Volumes.
Events: Reflect the cause of a volume status and may require
you to take an action. For example, if your volume returns an impaired
status, then the volume event might be potential-data-inconsistency.
This means that your volume has been impacted by an issue with the underlying host,
has all I/O operations disabled, and may have inconsistent data.
Actions: Reflect the actions you may have to take in response
to an event. For example, if the status of the volume is impaired and
the volume event shows potential-data-inconsistency, then the action
will show enable-volume-io. This means that you may want to enable
the I/O operations for the volume by issuing the ec2-enable-volume-io command and then check the
volume for data consistency.
Note
Volume status is based on the volume status checks, and does not reflect the volume state.
Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)
The short version of this command is ec2dvs.
ec2-describe-volume-status [
volume_id
...]
[[--filter "name=value"] ...]
| Name | Description |
|---|---|
|
|
One or more volume IDs. Type: String Default: Describes the status of all your volumes. Required: No Example: vol-4282672b |
|
|
A filter for limiting the results. See the Supported Filters section for a list of supported filters. Use quotation marks if the value string has a space ("name=value example"). On a Windows system, use quotation marks even without a space in the value string ("name=value"). Type: String Default: Describes all your volumes, or only those you specified by ID. Required: No Example: --filter "volume-status.status=Ok" |
You can specify filters so that the response includes information for only certain volumes. For example, you can use a filter to specify that you're interested in volumes that have impaired status. You can specify multiple values for a filter. The response includes information for a volume only if it matches at least one of the filter values that you specified.
You can specify multiple filters; for example, specify volumes that are in a specific Availability Zone and have the status impaired. The response includes information for a volume only if it matches all the filters that you specified. If there's no match, no special message is returned, the response is simply empty.
You can use wildcards in a filter value. An asterisk (*) matches zero or more characters, and a question mark (?) matches exactly one character. You can escape special characters using a backslash (\) before the character. For example, a value of \*amazon\?\\ searches for the literal string *amazon?\.
The following are the available filters.
availability-zoneThe Availability Zone of the instance.
Type: String
volume-status.statusThe status of the volume.
Type: String
Valid values: ok | impaired | warning | insufficient-data
volume-status.details-nameThe cause for the volume-status.status.
Type: String
Valid values: io-enabled | io-performance
volume-status.details-statusThe status of the volume-status.details-name.
Type: String
Valid values for io-enabled: passed | failed
Valid values for io-performance: normal | degraded |
severely-degraded | stalled
event.descriptionA description of the event.
Type: String
event.not-afterThe latest end time for the event.
Type: DateTime
event.not-beforeThe earliest start time for the event.
Type: DateTime
event.event-idThe event ID.
Type: String
event.event-typeThe event type.
Type: String
Valid values for io-enabled: potential-data-inconsistency
Valid values for io-performance: io-performance:degraded |
io-performance:severely-degraded | io-performance:stalled
action.codeThe action code for the event, for example, enable-volume-io
Type: String
action.event-idThe event ID associated with the action.
Type: String
action.descriptionA description of the action.
Type: String
| Option | Description |
|---|---|
|
|
Overrides the region specified by the Default: The value of the Example: |
|
|
The uniform resource locator (URL) of the Amazon EC2 web service entry point. Default: The value of the Example: |
|
|
The private key that identifies you to Amazon EC2. For more information, see Tell the Tools Who You Are. Default: The value of the Example: |
|
|
The X.509 certificate that identifies you to Amazon EC2. Default: The value of the Example: |
|
|
The access key ID associated with your AWS account. For more information, see Tell the Tools Who You Are. Default: The value of the Example: Note For more information, see the following section, Deprecated Options. |
|
|
The secret access key associated with your AWS account. Default: The value of the Example: Note For more information, see the following section, Deprecated Options. |
|
|
The AWS delegation token. Default: The value of the environment variable (if set). |
|
|
The connection timeout, in seconds. Example: |
|
|
The request timeout, in seconds. Example: |
|
|
Displays verbose output, including the API request and response on the command line. This is useful if you are building tools to talk directly to our Query API. |
|
|
Includes column headers in the command output. |
|
|
Shows empty columns as |
|
|
Omits tags for tagged resources. |
|
|
Displays internal debugging information. This can assist us when helping you troubleshooting problems. |
|
|
Displays usage information for the command. |
|
|
Reads arguments from standard input. This is useful when piping the output from one command to the input of another. Example: |
For a limited time, you can still use the private key and X.509 certificate instead of your access key ID and secret access key. However, we recommend that you start using your access key ID (-O, --aws-access-key) and secret access key (-W, --aws-secret-key) now, as the private key (-K, --private-key) and X.509 certificate (-C, --cert) won't be supported after the transition period elapses. For more information, see Tell the Tools Who You Are.
| Option | Description |
|---|---|
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
This command returns a table that contains the following information:
The VOLUME identifier
The ID of the volume
The Availability Zone in which the volume launched
The volume status name(Ok, impaired,
io-enabled, insufficient-data)
The EVENT identifier
The ID of the event
The event type (potential-data-inconsistencies)
The description of the event
notBefore (the earliest start time of the event)
notAfter (the latest end time of the event)
The ACTION identifier
The action code (enable-volume-io)
The ID of the event associated with the action
The event type associated with the action
(potential-data-inconsistency)
The description of the event associated with the action
Amazon EC2 command line tools display errors on stderr.
This example describes the status of the volumes vol-111111 and vol-222222.
PROMPT>ec2-describe-volume-status vol-111111 vol-222222Type VolumeId AvailabilityZone VolumeStatusVOLUME vol-111111 us-east-1a okVOLUME vol-222222 us-east-1b impairedType Name StatusVOLUMESTATUS io-enabled failedType EventType NotBefore NotAfter EventId EventDescriptionEVENT potential-data-inconsistency 2011-12-01T14:00:00.000Z evol-61a54008 This is an exampleType ActionCode EventId EventType EventDescriptionACTION enable-volume-io evol-61a54008 potential-data-inconsistency This is an example
This example describes the volumes associated with your account that have failing I/O operations.
PROMPT> ec2-describe-volume-status --filter "volume-status.details-name=io-enabled" --filter "volume-status.details-status=failed"