Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find how much of my EBS allocated size I am currently using

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.

like image 407
Krishna Kumar Avatar asked Mar 08 '11 06:03

Krishna Kumar


People also ask

How do I check my unused EBS volume?

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.

Can CloudWatch monitor EBS disk size utilization?

It will collect memory, swap and disk space utilisation data on the current system and then send it to CloudWatch.

How do I check my EBS throughput?

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.


2 Answers

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

like image 66
Ryan Fernandes Avatar answered Nov 15 '22 23:11

Ryan Fernandes


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
like image 35
rdickeyvii Avatar answered Nov 16 '22 00:11

rdickeyvii