Lab 5: To Manage Elastic Block Store(EBS)

                                               Lab 5: To Manage Elastic Block Store(EBS)

Objective  : To Configure and use AWS EBS  service

Topology




Pre-Requistes:

user Should have AWS account ,or IAM user With EC2 full Access
User Should have basic knowledge of managing partitions in windows or Linux


To configure EBS with following task :

Create EBS volume
Attaching and Detaching EBS volume
Expanding the size of EBS volume
Taking the snapshot of EBS volume


1.To create an EBS volumes
open the Amazon console 
select compute ,choose EC2 service 
on the EC2 Dashboard panel
Choose "Elastic Block Store"Click on volumes



Click on create volume button



in the create volume dialog box,



Verify volume successfully created
click on Close button


To monitoring the State of your volume
select volume check state ---------->available



in the Name column give name for your volume----------->2gb 2a


2.To Attaching and Detaching EBS volume in windows instance
on the EC2 Dashboard panel
Choose "ELASTIC BLOCK STORE"click on volume

Note: The volume which you want to attach to an instance should be in same Availability Zone
Drop Down Action button,
select Attach volume.  



Select instance ------------->Winvm1


click on Attach



verify the availability of new volume

3.To check availability of drive login to your windows instance
Login to windows instance
Run---------->diskmgmt.msc


Verifies that 2 GB volume available as unallocated space


New disk is offline 
So turn it to online by right check and select online



Format the unallocated disk



Verify
 New volume to 2GB is available to use 



4.To Detach the volume
in windows select Disk 1
Right click select offline



On the EC2 Dashboard panel
Choose "Elastic Block Store"
Click on volume
select volume to be detached under Name column
Drop Down Action Button
Select "Detach volume"



Click on "Yes,Detach "button


verification
Login to window instance
Check that D:drive is removed




5.To create snapshot and Restore EBS volume
To create a snapshot
in the current D Drive two folders are available 
No create a snapshot of this volume



on the EC2 dashboard panel
Click on "Elastic Block Store"
Choose volume
Drop down Action button select create snapshot



Provide  snapshot details 
click on Create button




verify that snapshot is created



6.To Detach the volume
First select the disk 1 from Disk Management  
Right click select offline



On click EC2 Dashboard panel
Expand "Elastic Block Store ",Choose volume.
Select volume to be Detached under the Name Column
Drop down Action button ,select "Delete volume"  



Verify from window  instance open disk management tool
Now D drive is Detached



Now delete the volume



Verify volume is deleted



7.To Restore the volume
From the Console EC2 Dashboard 
Expand "Elastic Block Store" ,Choose Snapshots
select The Snapshot
Drop Down Action button,select Create volume



Accept the Default values in wizard

Note: Check the right availability Zone.


Verify volume is created



7.To expanding the size of EBS volume.
To expand EBS volume first take snapshot,now select the snapshot
on the EC2 Dashboard panel
Expand "Elastic Block Store",choose snapshots
Drop Down Action button
Select Create volume



Give the required size-------------->4GB
Check the right availability Zone
Click Create volume button



Verify that 4 GB is created



Now attach this expanded volume to your instance



Select instance

Click Attach button



Verify 4GB drive is available


Now with respect to windows operating system
Right click on D drive Expand your volume to your desired size



Verify 4GB drive is available



Verify that D drive contains two folders that was there in 2B drive earlier



similar check volume in linux instance
From Action Select Attach volume



Select Linux instance



Now connect to Linux Instance



To verify
Switch to root user and run fdisk-1
$ Sudo su

To check list of drivers and partitions
#fdisk -1




Comments