ec2-describe-volumes
Syntax
ec2-describe-volumes [
volume_id
...]
Description
Lists specified Amazon EBS volumes that you own. If no volumes are specified, Amazon EBS lists all volumes that you own.
Options
Option | Description | Required |
---|---|---|
volume_id | The IDs of the Amazon EBS volume to describe. If you do not specify a value, Amazon EBS returns information about all volumes owned by you. Example: | No |
Output
Amazon EBS returns a table that contains the following volume information:
VOLUME identifier
ID of the volume
Size of the volume, in GiBs
Snapshot from which the volume was created, if applicable
Availability Zone in which the instance launched
Volume state (e.g.,
creating
,available
,in-use
)Time stamp when volume creation was initiated
For volumes that are attached to instances, Amazon EBS returns a table that contains the following attachment information:
ATTACHMENT identifier
ID of the volume
ID of the instance to which the volume is attached
Device as which the volume is exposed within the instance
Attachment state (e.g.,
attached
)Time stamp when the attachment was initiated
Amazon EBS displays errors on stderr
.
Example
This example describes all volumes associated with your account.
PROMPT>
ec2-describe-volumes
VOLUME vol-4d826724 800 us-east-1a in-use 2008-02-14T00:00:00+0000 ATTACHMENT vol-4d826724 i-6058a509 /dev/sdh attached 2008-02-14T00:00:17+0000 VOLUME vol-50957039 13 us-east-1a available 2008-02-091T00:00:00+0000 VOLUME vol-6682670f 1 us-east-1a in-use 2008-02-11T12:00:00+0000 ATTACHMENT vol-6682670f i-69a54000 /dev/sdh attached 2008-02-11T13:56:00+0000
This example describes volume vol-4d826724
and vol-50957039
.
PROMPT>
ec2-describe-volumes vol-4d826724 vol-50957039
VOLUME vol-4d826724 800 us-east-1a in-use 2008-02-14T00:00:00+0000 ATTACHMENT vol-4d826724 i-6058a509 /dev/sdh attached 2008-02-14T00:00:17+0000 VOLUME vol-50957039 13 us-east-1a available 2008-02-091T00:00:00+0000