The size property on the DescribeVolumes
returns the allocated size, but I would like to know the current used size so that I can plan for requesting an EBS size increase.
Using AWS Console 02 Navigate to Amazon EC2 console at https://console.aws.amazon.com/ec2/. 03 In the navigation panel, under Elastic Block Store, choose Volumes. 04 Select the Amazon EBS volume that you want to examine. 05 Choose the Description tab from the console bottom panel and check the State attribute value.
It will collect memory, swap and disk space utilisation data on the current system and then send it to CloudWatch.
Open the CloudWatch console. Under Metrics in the sidebar, select All metrics. Select EBS, and then select Per-Volume Metrics. To graph the actual average throughput, select VolumeReadBytes, VolumeWriteBytes, and VolumeIdleTime.
if you're looking for 'used' size, then you'll need to do this using an operating system command fired from the instance to which this EBS is attached to.
On unix you can use df -Th
and check the values against your mount point. On windows, you can just use the 'My Computer' page to check this
It sounds like the intent of this question is to determine how much allocated EBS space you are using so you can know when you're about to hit your limit. Since Amazon has a default limit of 20T, hitting it unexpectedly (as I did) is not pleasant.
If you have the command line tools, a little bash magic gets you the answer:
t=0; for i in `ec2-describe-volumes | grep VOLUME | awk '{print $3}'`; do t=`expr $t + $i`; done; echo $t
(get the ticks right!)
Though it would be nice if amazon told you in an easy-to-find spot what your current allocated and max allowed is.
EDIT: there are now standard and provisioned iops ebs. The command above shows you the cumulative allocated of both types.
For standard ebs only:
t=0; for i in `ec2-describe-volumes | grep VOLUME | grep standard | awk '{print $3}'`; do t=`expr $t + $i`; done; echo $t
for provisioned-iops ebs only:
t=0; for i in `ec2-describe-volumes | grep VOLUME | grep io1 | awk '{print $3}'`; do t=`expr $t + $i`; done; echo $t
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With