Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Thursday, February 1, 2018

How to increase EBS volume size + AWS

How to increase EBS volume size + AWS


There are two ways we can extend the EBS (Elastic Block Store) volume size:

1st method:

1.1 Identify the volume (Volume ID) (eg. /dev/sdm) of an Instance which you want to                  extend.                  
        Note down the size of the volume (eg.200GB)

1.2 Take snapshot of that volume (It may take 1-2 hrs depending on the size of the                       volume).

        Note down the snapshot ID and monitor the snapshot status. It should show 100%

1.3 Detach the volume from the instance (/dev/sdm)

1.4 Extend the snapshot to the new size (eg. extend it by 300GB) New Size will be 500GB.

1.5 Attach this volume as new volume to the instance (/dev/sdn) 

        New device name will be assigned to this volume. It will get assigned in alphabetical              order.


Volume is extended from AWS end.


Note : reboot may require if the extended volume size is not visible from OS end.


2nd Method : 


2.1 Identify the volume (Volume ID) (eg. /dev/xvdm) of an Instance which you want to                  extend. 
        Note down the size of the volume (eg.200GB)

2.2 use “modify volume” option from action menu and extend the volume size to 500GB. 

        Here volume optimization will happen, it may take 2-3 hours depending on the size of the volume. Once the optimization is 100% then we can be sure that the volume/disk is extended from AWS end.


Note: On the fly we are extending the volume size here.


Login to the instance and depending on the OS (Windows + Linux) make the extended disk size visible from OS end (I'll write a post on this soon).



Regards,
Kirann Jadhav

No comments:

Post a Comment