Storage Lab-EBS
docx
keyboard_arrow_up
School
University of Texas, Dallas *
*We aren’t endorsed by this school
Course
2302
Subject
Information Systems
Date
Apr 3, 2024
Type
docx
Pages
9
Uploaded by CommodoreNeutron102
EBS Lab
Before, going into the lab, let’s fix this first.
Do you remember, you were not getting the DNS when you did the EC2 assignment. That is totally fine as you can use IP address in place, but let’s make the changes to see the DNS.
Make sure you enable the DNS settings. That’s it.
EBS Lab
Storage Lab – EBS
Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes behave like raw, unformatted block devices. You can mount these volumes as devices on your instances. EBS volumes that are attached to an instance are exposed
as storage volumes that persist independently from the life of the instance. You can create a file system on top of these volumes, or use them in any way you would use a block device (such as a
hard drive). You can dynamically change the configuration of a volume attached to an instance.
We recommend Amazon EBS for data that must be quickly accessible and requires long-term persistence. EBS volumes are particularly well-suited for use as the primary storage for file systems, databases, or for any applications that require fine granular updates and access to raw,
unformatted, block-level storage. Amazon EBS is well suited to both database-style applications that rely on random reads and writes, and to throughput-intensive applications that perform long, continuous reads and writes.
Learn more
.
Points to Remember before doing this Lab:
1.
Please ensure that you attach all the screenshots labeled with “
Note: This is a Deliverable
” under each of them.
2.
When capturing each screenshot, be certain that your AWS account name is visible. Locate the name at the top-right corner of your AWS console.
Pre-requisite for this lab
:
a.)
Your file and folder names should start with <name>_<resource_name>.
b.)
All labs must be performed in US East (N.Virginia) us-east-1 region Learning Outcome:
Understands EBS and its applications.
Overview on creating and mounting the EBS volume to a Linux Server.
EBS Lab
PART1:
1.
Create an EC2 server. You can take reference from EC2Lab
(Lab2 where we worked on EC2 and AMI) and follow the same steps till Step5. Note: In the Step4, select the private key that we created earlier instead of creating it again. If you don’t have it, create one.
Once the instance is created, connect to the instance.
For Mac users, please follow the instructions by clicking here
or here
For Windows users, please follow the instructions by clicking here
or here
After successful login to EC2 server, share the screenshot of the successful login and ec2 server dashboard with Networking tab.
Note: This is a deliverable (Place the terminal/putty window as shown above)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
EBS Lab
PART 2:
Create a Volume and attach it to EC2 server.
2.
Make note of the availability zone in which your EC2 server is created. We are going to create a volume in the same availability zone as Amazon EBS volumes are Availability Zone specific. (You can find it in the networking tab of the ec2 dashboard)
3.
Choose volumes
from the left menu. Choose Create volume. Let’s create a 6 GiB volume.
Availability zone should be the same as the ec2’s az. In my case, it’s us-east-1b. Choose Create volume. The volume is created in no time.
EBS Lab
4.
Attach the volume to the ec2 server. Select the newly created volume and click on Actions
. Select Attach volume from the drop down.
5.
Select the instance and choose Attach volume
.
EBS Lab
Once the volume is attached, open the Instances
dashboard and take the screenshot as shown below.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
EBS Lab
Note: This is a deliverable. Should see the server and the two volumes.
Part3: Create and Configure Your File System
In this task, you will add the new volume to a Linux instance as an ext3 file system under the /mnt/data-store mount point.
If you are using Putty or terminal, you can paste text by right-clicking in it
6.
View the storage available on your instance:
df -h
You should see output similar to:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 488M 60K 488M 1% /dev
tmpfs 497M 0 497M 0% /dev/shm
/dev/xvda1 7.8G 982M 6.7G 13% /
This is showing the original 8GB disk volume. Your new volume is not yet shown.
7.
Create an ext3 file system on the new volume:
EBS Lab
sudo mkfs -t ext3 /dev/sdf
8.
Create a directory for mounting the new storage volume:
sudo mkdir /mnt/data-store
9.
Mount the new volume:
sudo mount /dev/sdf /mnt/data-store
To configure the Linux instance to mount this volume whenever the instance is started, you will need to add a line to /etc/fstab
.
echo "/dev/sdf /mnt/data-store ext3 defaults,noatime 1 2" | sudo tee -a /etc/fstab
10. View the configuration file to see the setting on the last line:
cat /etc/fstab
11. View the available storage again:
df -h
The output will now contain an additional line - /dev/xvdf
: Filesystem Size Used Avail Use% Mounted on
devtmpfs 488M 60K 488M 1% /dev
tmpfs 497M 0 497M 0% /dev/shm
/dev/xvda1 7.8G 982M 6.7G 13% /
/dev/xvdf 5.9G 92K 5.6G 1% /mnt/data-store
12. On your mounted volume, create a file and add some text to it.
sudo sh -c "echo some text has been written > /mnt/data-store/file.txt"
13. Verify that the text has been written to your volume.
cat /mnt/data-store/file.txt
Note: This is a deliverable. Capture the screenshot of the terminal after running the above command.
EBS Lab
Learning Outcome:
In this lab you learnt, how to create an EBS volume and configure it as a usable storage device. Important:
Once the lab is finished, delete the resources that you have created.
i.e., EBS (detach it first and then delete it), EC2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help